/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import axios from '@aliasedDeps/api-services/axios'; import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; import type { AgentWorkingConditionsServiceUpdateAgentWorkingConditionsBody, WfmReadAgentWorkingConditionsResponse, WfmUpdateAgentWorkingConditionsResponse, } from '../_models'; // --- header start // export const // --- title start getAgentWorkingConditionsService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const agentWorkingConditionsServiceReadAgentWorkingConditions = ( agentId: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/wfm/agents/${agentId}/conditions`, options); }; const agentWorkingConditionsServiceUpdateAgentWorkingConditions = ( agentId: string, agentWorkingConditionsServiceUpdateAgentWorkingConditionsBody: AgentWorkingConditionsServiceUpdateAgentWorkingConditionsBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.put( `/wfm/agents/${agentId}/conditions`, agentWorkingConditionsServiceUpdateAgentWorkingConditionsBody, options, ); }; // --- footer start return { agentWorkingConditionsServiceReadAgentWorkingConditions, agentWorkingConditionsServiceUpdateAgentWorkingConditions, }; }; export type AgentWorkingConditionsServiceReadAgentWorkingConditionsResult = AxiosResponse; export type AgentWorkingConditionsServiceUpdateAgentWorkingConditionsResult = AxiosResponse; // --- footer end