[@webitel/api-services](../index.html) / [agent-service/agent-service.api.gen](../modules/agent-service_agent-service.api.gen.html) / getAgentService # kind_function: getAgentService() > **getAgentService**(): `{ agentSetState: (agentId: number, engineAgentServiceAgentSetStateBody: EngineAgentServiceAgentSetStateBody, options?: AxiosRequestConfig) => Promise; agentStateHistory: (agentId: string, params?: AgentStateHistoryParams, options?: AxiosRequestConfig) => Promise; agentTodayStatistics: (agentId: string, params?: AgentTodayStatisticsParams, options?: AxiosRequestConfig) => Promise; createAgent: (engineCreateAgentRequest: EngineCreateAgentRequest, options?: AxiosRequestConfig) => Promise; deleteAgent: (id: string, params?: DeleteAgentParams, options?: AxiosRequestConfig) => Promise; patchAgent: (id: string, engineAgentServicePatchAgentBody: EngineAgentServicePatchAgentBody, options?: AxiosRequestConfig) => Promise; readAgent: (id: string, params?: ReadAgentParams, options?: AxiosRequestConfig) => Promise; searchAgent: (params?: SearchAgentParams, options?: AxiosRequestConfig) => Promise; searchAgentCallStatistics: (params?: SearchAgentCallStatisticsParams, options?: AxiosRequestConfig) => Promise; searchAgentInQueue: (id: string, params?: SearchAgentInQueueParams, options?: AxiosRequestConfig) => Promise; searchAgentInQueueStatistics: (agentId: string, params?: SearchAgentInQueueStatisticsParams, options?: AxiosRequestConfig) => Promise; searchAgentInTeam: (id: string, params?: SearchAgentInTeamParams, options?: AxiosRequestConfig) => Promise; searchAgentStateHistory: (params?: SearchAgentStateHistoryParams, options?: AxiosRequestConfig) => Promise; searchAgentStatusStatistic: (params?: SearchAgentStatusStatisticParams, options?: AxiosRequestConfig) => Promise; searchAgentStatusStatisticItem: (agentId: string, params?: SearchAgentStatusStatisticItemParams, options?: AxiosRequestConfig) => Promise; searchLookupUsersAgentNotExists: (params?: SearchLookupUsersAgentNotExistsParams, options?: AxiosRequestConfig) => Promise; searchPauseCauseForAgent: (agentId: string, params?: SearchPauseCauseForAgentParams, options?: AxiosRequestConfig) => Promise; searchUserStatus: (params?: SearchUserStatusParams, options?: AxiosRequestConfig) => Promise; updateAgent: (id: string, engineAgentServiceUpdateAgentBody: EngineAgentServiceUpdateAgentBody, options?: AxiosRequestConfig) => Promise; updateAgentStatus: (id: string, engineAgentServiceUpdateAgentStatusBody: EngineAgentServiceUpdateAgentStatusBody, options?: AxiosRequestConfig) => Promise }` ## theme_returns ### agentSetState() > **agentSetState**: `(agentId: number, engineAgentServiceAgentSetStateBody: EngineAgentServiceAgentSetStateBody, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### agentId `number` ##### engineAgentServiceAgentSetStateBody `EngineAgentServiceAgentSetStateBody` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### agentStateHistory() > **agentStateHistory**: `(agentId: string, params?: AgentStateHistoryParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### agentId `string` ##### params? `AgentStateHistoryParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### agentTodayStatistics() > **agentTodayStatistics**: `(agentId: string, params?: AgentTodayStatisticsParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### agentId `string` ##### params? `AgentTodayStatisticsParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### createAgent() > **createAgent**: `(engineCreateAgentRequest: EngineCreateAgentRequest, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### engineCreateAgentRequest `EngineCreateAgentRequest` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### deleteAgent() > **deleteAgent**: `(id: string, params?: DeleteAgentParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### params? `DeleteAgentParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### patchAgent() > **patchAgent**: `(id: string, engineAgentServicePatchAgentBody: EngineAgentServicePatchAgentBody, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### engineAgentServicePatchAgentBody `EngineAgentServicePatchAgentBody` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### readAgent() > **readAgent**: `(id: string, params?: ReadAgentParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### params? `ReadAgentParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgent() > **searchAgent**: `(params?: SearchAgentParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### params? `SearchAgentParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentCallStatistics() > **searchAgentCallStatistics**: `(params?: SearchAgentCallStatisticsParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### params? `SearchAgentCallStatisticsParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentInQueue() > **searchAgentInQueue**: `(id: string, params?: SearchAgentInQueueParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### params? `SearchAgentInQueueParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentInQueueStatistics() > **searchAgentInQueueStatistics**: `(agentId: string, params?: SearchAgentInQueueStatisticsParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### agentId `string` ##### params? `SearchAgentInQueueStatisticsParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentInTeam() > **searchAgentInTeam**: `(id: string, params?: SearchAgentInTeamParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### params? `SearchAgentInTeamParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentStateHistory() > **searchAgentStateHistory**: `(params?: SearchAgentStateHistoryParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### params? `SearchAgentStateHistoryParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentStatusStatistic() > **searchAgentStatusStatistic**: `(params?: SearchAgentStatusStatisticParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### params? `SearchAgentStatusStatisticParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchAgentStatusStatisticItem() > **searchAgentStatusStatisticItem**: `(agentId: string, params?: SearchAgentStatusStatisticItemParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### agentId `string` ##### params? `SearchAgentStatusStatisticItemParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchLookupUsersAgentNotExists() > **searchLookupUsersAgentNotExists**: `(params?: SearchLookupUsersAgentNotExistsParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### params? `SearchLookupUsersAgentNotExistsParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchPauseCauseForAgent() > **searchPauseCauseForAgent**: `(agentId: string, params?: SearchPauseCauseForAgentParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### agentId `string` ##### params? `SearchPauseCauseForAgentParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### searchUserStatus() > **searchUserStatus**: `(params?: SearchUserStatusParams, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### params? `SearchUserStatusParams` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### updateAgent() > **updateAgent**: `(id: string, engineAgentServiceUpdateAgentBody: EngineAgentServiceUpdateAgentBody, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### engineAgentServiceUpdateAgentBody `EngineAgentServiceUpdateAgentBody` ##### options? `AxiosRequestConfig` #### theme_returns `Promise` ### updateAgentStatus() > **updateAgentStatus**: `(id: string, engineAgentServiceUpdateAgentStatusBody: EngineAgentServiceUpdateAgentStatusBody, options?: AxiosRequestConfig) => Promise` #### kind_plural_type_parameter ##### TData `TData` = `AxiosResponse` #### kind_plural_parameter ##### id `string` ##### engineAgentServiceUpdateAgentStatusBody `EngineAgentServiceUpdateAgentStatusBody` ##### options? `AxiosRequestConfig` #### theme_returns `Promise`