@webex/contact-center 3.9.0 → 3.10.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cc.js +196 -47
- package/dist/cc.js.map +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/logger-proxy.js +24 -1
- package/dist/logger-proxy.js.map +1 -1
- package/dist/metrics/MetricsManager.js +1 -1
- package/dist/metrics/MetricsManager.js.map +1 -1
- package/dist/metrics/behavioral-events.js +89 -0
- package/dist/metrics/behavioral-events.js.map +1 -1
- package/dist/metrics/constants.js +32 -2
- package/dist/metrics/constants.js.map +1 -1
- package/dist/services/AddressBook.js +271 -0
- package/dist/services/AddressBook.js.map +1 -0
- package/dist/services/EntryPoint.js +227 -0
- package/dist/services/EntryPoint.js.map +1 -0
- package/dist/services/Queue.js +261 -0
- package/dist/services/Queue.js.map +1 -0
- package/dist/services/config/constants.js +36 -2
- package/dist/services/config/constants.js.map +1 -1
- package/dist/services/config/index.js +29 -21
- package/dist/services/config/index.js.map +1 -1
- package/dist/services/config/types.js +33 -1
- package/dist/services/config/types.js.map +1 -1
- package/dist/services/core/GlobalTypes.js.map +1 -1
- package/dist/services/core/Utils.js +162 -2
- package/dist/services/core/Utils.js.map +1 -1
- package/dist/services/core/aqm-reqs.js +0 -4
- package/dist/services/core/aqm-reqs.js.map +1 -1
- package/dist/services/core/websocket/WebSocketManager.js +0 -4
- package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
- package/dist/services/task/TaskManager.js +114 -3
- package/dist/services/task/TaskManager.js.map +1 -1
- package/dist/services/task/TaskUtils.js +76 -0
- package/dist/services/task/TaskUtils.js.map +1 -0
- package/dist/services/task/constants.js +26 -1
- package/dist/services/task/constants.js.map +1 -1
- package/dist/services/task/contact.js +86 -0
- package/dist/services/task/contact.js.map +1 -1
- package/dist/services/task/index.js +418 -87
- package/dist/services/task/index.js.map +1 -1
- package/dist/services/task/types.js +14 -0
- package/dist/services/task/types.js.map +1 -1
- package/dist/types/cc.d.ts +115 -35
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/metrics/constants.d.ts +25 -1
- package/dist/types/services/AddressBook.d.ts +74 -0
- package/dist/types/services/EntryPoint.d.ts +67 -0
- package/dist/types/services/Queue.d.ts +76 -0
- package/dist/types/services/config/constants.d.ts +35 -1
- package/dist/types/services/config/index.d.ts +6 -9
- package/dist/types/services/config/types.d.ts +79 -58
- package/dist/types/services/core/GlobalTypes.d.ts +25 -0
- package/dist/types/services/core/Utils.d.ts +40 -1
- package/dist/types/services/task/TaskUtils.d.ts +28 -0
- package/dist/types/services/task/constants.d.ts +23 -0
- package/dist/types/services/task/contact.d.ts +10 -0
- package/dist/types/services/task/index.d.ts +85 -4
- package/dist/types/services/task/types.d.ts +233 -21
- package/dist/types/types.d.ts +162 -0
- package/dist/types/utils/PageCache.d.ts +173 -0
- package/dist/types.js +17 -0
- package/dist/types.js.map +1 -1
- package/dist/utils/PageCache.js +192 -0
- package/dist/utils/PageCache.js.map +1 -0
- package/dist/webex.js +1 -1
- package/package.json +10 -9
- package/src/cc.ts +221 -52
- package/src/constants.ts +1 -0
- package/src/index.ts +16 -2
- package/src/logger-proxy.ts +24 -1
- package/src/metrics/MetricsManager.ts +1 -1
- package/src/metrics/behavioral-events.ts +94 -0
- package/src/metrics/constants.ts +37 -1
- package/src/services/AddressBook.ts +291 -0
- package/src/services/EntryPoint.ts +241 -0
- package/src/services/Queue.ts +277 -0
- package/src/services/config/constants.ts +42 -2
- package/src/services/config/index.ts +30 -30
- package/src/services/config/types.ts +59 -58
- package/src/services/core/GlobalTypes.ts +27 -0
- package/src/services/core/Utils.ts +199 -1
- package/src/services/core/aqm-reqs.ts +0 -5
- package/src/services/core/websocket/WebSocketManager.ts +0 -4
- package/src/services/task/TaskManager.ts +123 -5
- package/src/services/task/TaskUtils.ts +81 -0
- package/src/services/task/constants.ts +25 -0
- package/src/services/task/contact.ts +80 -0
- package/src/services/task/index.ts +510 -71
- package/src/services/task/types.ts +251 -20
- package/src/types.ts +180 -0
- package/src/utils/PageCache.ts +252 -0
- package/test/unit/spec/cc.ts +282 -85
- package/test/unit/spec/metrics/MetricsManager.ts +0 -1
- package/test/unit/spec/metrics/behavioral-events.ts +42 -0
- package/test/unit/spec/services/AddressBook.ts +332 -0
- package/test/unit/spec/services/EntryPoint.ts +259 -0
- package/test/unit/spec/services/Queue.ts +323 -0
- package/test/unit/spec/services/config/index.ts +279 -65
- package/test/unit/spec/services/core/Utils.ts +50 -0
- package/test/unit/spec/services/core/aqm-reqs.ts +1 -3
- package/test/unit/spec/services/core/websocket/WebSocketManager.ts +0 -4
- package/test/unit/spec/services/task/TaskManager.ts +390 -1
- package/test/unit/spec/services/task/TaskUtils.ts +131 -0
- package/test/unit/spec/services/task/contact.ts +31 -1
- package/test/unit/spec/services/task/index.ts +585 -130
- package/umd/contact-center.min.js +2 -2
- package/umd/contact-center.min.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_types","require","_loggerProxy","_interopRequireDefault","_WebexRequest","_constants","_constants2","_Util","_constants3","obj","__esModule","default","AgentConfigService","constructor","webexReq","WebexRequest","getInstance","getAgentConfig","orgId","agentId","userConfigPromise","getUserUsingCI","orgInfoPromise","getOrgInfo","orgSettingsPromise","getOrganizationSetting","tenantDataPromise","getTenantData","urlMappingPromise","getURLMapping","auxCodesPromise","getAllAuxCodes","DEFAULT_PAGE_SIZE","DEFAULT_AUXCODE_ATTRIBUTES","userConfigData","LoggerProxy","info","ciUserId","module","CONFIG_FILE_NAME","method","METHODS","GET_AGENT_CONFIG","agentProfilePromise","getDesktopProfileById","agentProfileId","siteInfoPromise","getSiteInfo","siteId","userDialPlanPromise","then","agentProfileConfigData","dialPlanEnabled","getDialPlanData","userTeamPromise","teamIds","getAllTeams","Promise","resolve","siteInfo","userDialPlanData","userTeamData","orgInfo","orgSettingsData","tenantData","urlMappingData","auxCodesData","all","multimediaProfileId","multiMediaProfileId","response","parseAgentConfigs","userData","teamData","orgInfoData","auxCodes","agentProfileData","dialPlanData","urlMapping","error","GET_USER_USING_CI","resource","endPointMap","userByCI","request","service","WCC_API_GATEWAY","HTTP_METHODS","GET","statusCode","Error","log","body","desktopProfileId","GET_DESKTOP_PROFILE_BY_ID","desktopProfile","getMultimediaProfileById","GET_MULTIMEDIA_PROFILE_BY_ID","multimediaProfile","getListOfTeams","page","pageSize","filter","GET_LIST_OF_TEAMS","listTeams","allTeams","DEFAULT_PAGE","firstResponse","totalPages","meta","concat","data","requests","push","responses","GET_ALL_TEAMS","getListOfAuxCodes","attributes","GET_LIST_OF_AUX_CODES","listAuxCodes","allAuxCodes","promises","forEach","GET_ALL_AUX_CODES","GET_SITE_INFO","GET_ORG_INFO","orgSettings","GET_ORGANIZATION_SETTING","GET_TENANT_DATA","GET_URL_MAPPING","dialPlan","GET_DIAL_PLAN_DATA","getQueues","search","GET_QUEUES","queryParams","queueList","exports"],"sources":["index.ts"],"sourcesContent":["/**\n * @packageDocumentation\n * @module AgentConfigService\n */\n\nimport {HTTP_METHODS} from '../../types';\nimport LoggerProxy from '../../logger-proxy';\nimport {\n DesktopProfileResponse,\n ListAuxCodesResponse,\n AgentResponse,\n OrgInfo,\n OrgSettings,\n TenantData,\n URLMapping,\n TeamList,\n DialPlanEntity,\n Profile,\n ListTeamsResponse,\n AuxCode,\n MultimediaProfileResponse,\n SiteInfo,\n ContactServiceQueue,\n} from './types';\nimport WebexRequest from '../core/WebexRequest';\nimport {WCC_API_GATEWAY} from '../constants';\nimport {CONFIG_FILE_NAME} from '../../constants';\nimport {parseAgentConfigs} from './Util';\nimport {\n DEFAULT_AUXCODE_ATTRIBUTES,\n DEFAULT_PAGE,\n DEFAULT_PAGE_SIZE,\n endPointMap,\n METHODS,\n} from './constants';\n\n/**\n * The AgentConfigService class provides methods to fetch agent configuration data.\n * @private\n * @ignore\n */\nexport default class AgentConfigService {\n private webexReq: WebexRequest;\n constructor() {\n this.webexReq = WebexRequest.getInstance();\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<Profile>} - A promise that resolves to the agent configuration profile.\n * @throws {Error} - Throws an error if any API call fails or if the response status is not 200.\n * @public\n */\n public async getAgentConfig(orgId: string, agentId: string): Promise<Profile> {\n try {\n const userConfigPromise = this.getUserUsingCI(orgId, agentId);\n const orgInfoPromise = this.getOrgInfo(orgId);\n const orgSettingsPromise = this.getOrganizationSetting(orgId);\n const tenantDataPromise = this.getTenantData(orgId);\n const urlMappingPromise = this.getURLMapping(orgId);\n const auxCodesPromise = this.getAllAuxCodes(\n orgId,\n DEFAULT_PAGE_SIZE,\n [],\n DEFAULT_AUXCODE_ATTRIBUTES\n );\n\n const userConfigData = await userConfigPromise;\n LoggerProxy.info(`Fetched user data, userId: ${userConfigData.ciUserId}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const agentProfilePromise = this.getDesktopProfileById(orgId, userConfigData.agentProfileId);\n const siteInfoPromise = this.getSiteInfo(orgId, userConfigData.siteId);\n\n const userDialPlanPromise = agentProfilePromise.then((agentProfileConfigData) =>\n agentProfileConfigData.dialPlanEnabled ? this.getDialPlanData(orgId) : []\n );\n\n const userTeamPromise = userConfigData.teamIds\n ? this.getAllTeams(orgId, DEFAULT_PAGE_SIZE, userConfigData.teamIds)\n : Promise.resolve([]);\n\n const [\n agentProfileConfigData,\n siteInfo,\n userDialPlanData,\n userTeamData,\n orgInfo,\n orgSettingsData,\n tenantData,\n urlMappingData,\n auxCodesData,\n ] = await Promise.all([\n agentProfilePromise,\n siteInfoPromise,\n userDialPlanPromise,\n userTeamPromise,\n orgInfoPromise,\n orgSettingsPromise,\n tenantDataPromise,\n urlMappingPromise,\n auxCodesPromise,\n ]);\n\n const multimediaProfileId =\n userConfigData.multimediaProfileId ||\n userTeamData[0]?.multiMediaProfileId ||\n siteInfo.multimediaProfileId;\n\n LoggerProxy.info('Fetched all required data', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const response = parseAgentConfigs({\n userData: userConfigData,\n teamData: userTeamData,\n tenantData,\n orgInfoData: orgInfo,\n auxCodes: auxCodesData,\n orgSettingsData,\n agentProfileData: agentProfileConfigData,\n dialPlanData: userDialPlanData,\n urlMapping: urlMappingData,\n multimediaProfileId,\n });\n\n LoggerProxy.info('Parsing completed for agent-config', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n LoggerProxy.info('Fetched configuration data successfully', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n return response;\n } catch (error) {\n LoggerProxy.error(`getAgentConfig call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @ignore\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<AgentResponse>} - A promise that resolves to the agent configuration response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getUserUsingCI(orgId: string, agentId: string): Promise<AgentResponse> {\n LoggerProxy.info('Fetching user data using CI', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n\n try {\n const resource = endPointMap.userByCI(orgId, agentId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getUserUsingCI api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getUserUsingCI API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the desktop profile data for the given orgId and desktopProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the desktop profile is to be fetched.\n * @param {string} desktopProfileId - desktop profile ID for which the data is to be fetched.\n * @returns {Promise<DesktopProfileResponse>} - A promise that resolves to the desktop profile response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDesktopProfileById(\n orgId: string,\n desktopProfileId: string\n ): Promise<DesktopProfileResponse> {\n LoggerProxy.info('Fetching desktop profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.desktopProfile(orgId, desktopProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDesktopProfileById api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDesktopProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the multimedia profile data for the given orgId and multimediaProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the multimedia profile is to be fetched.\n * @param {string} multimediaProfileId - multimedia profile ID for which the data is to be fetched.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @returns {Promise<MultimediaProfileResponse>} - A promise that resolves to the multimedia profile response.\n * @private\n */\n public async getMultimediaProfileById(\n orgId: string,\n multimediaProfileId: string\n ): Promise<MultimediaProfileResponse> {\n LoggerProxy.info('Fetching multimedia profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.multimediaProfile(orgId, multimediaProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getMultimediaProfileById API success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getMultimediaProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of teams for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string[]} filter - optional filter criteria for the teams.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfTeams(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[]\n ): Promise<ListTeamsResponse> {\n LoggerProxy.info('Fetching list of teams', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n try {\n const resource = endPointMap.listTeams(orgId, page, pageSize, filter);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfTeams api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all teams from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string[]} filter - optional filter criteria for the teams.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllTeams(orgId: string, pageSize: number, filter: string[]): Promise<TeamList[]> {\n try {\n let allTeams: TeamList[] = [];\n let page = DEFAULT_PAGE;\n const firstResponse = await this.getListOfTeams(orgId, page, pageSize, filter);\n const totalPages = firstResponse.meta.totalPages;\n allTeams = allTeams.concat(firstResponse.data);\n const requests = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n requests.push(this.getListOfTeams(orgId, page, pageSize, filter));\n }\n const responses = await Promise.all(requests);\n\n for (const response of responses) {\n allTeams = allTeams.concat(response.data);\n }\n\n return allTeams;\n } catch (error) {\n LoggerProxy.error(`getAllTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of aux codes for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListAuxCodesResponse>} - A promise that resolves to the list of aux codes response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfAuxCodes(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<ListAuxCodesResponse> {\n LoggerProxy.info('Fetching list of aux codes', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n try {\n const resource = endPointMap.listAuxCodes(orgId, page, pageSize, filter, attributes);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfAuxCodes api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all aux codes from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<AuxCode[]>} - A promise that resolves to the list of aux codes.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllAuxCodes(\n orgId: string,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<AuxCode[]> {\n try {\n let allAuxCodes: AuxCode[] = [];\n let page = DEFAULT_PAGE;\n\n const firstResponse = await this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes);\n allAuxCodes = allAuxCodes.concat(firstResponse.data);\n const totalPages = firstResponse.meta.totalPages;\n\n const promises: Promise<ListAuxCodesResponse>[] = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n promises.push(this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes));\n }\n\n const responses = await Promise.all(promises);\n\n responses.forEach((response) => {\n allAuxCodes = allAuxCodes.concat(response.data);\n });\n\n return allAuxCodes;\n } catch (error) {\n LoggerProxy.error(`getAllAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the site data for the given orgId and siteId.\n * @ignore\n * @param {string} orgId - organization ID for which the site info is to be fetched.\n * @param {string} siteId - site ID for which the data is to be fetched.\n * @returns {Promise<SiteInfo>} - A promise that resolves to the site info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getSiteInfo(orgId: string, siteId: string): Promise<SiteInfo> {\n LoggerProxy.info('Fetching site information', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n try {\n const resource = endPointMap.siteInfo(orgId, siteId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getSiteInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getSiteInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the organization info for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the organization info is to be fetched.\n * @returns {Promise<OrgInfo>} - A promise that resolves to the organization info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrgInfo(orgId: string): Promise<OrgInfo> {\n try {\n const resource = endPointMap.orgInfo(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrgInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getOrgInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the organization settings for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the organization settings are to be fetched.\n * @returns {Promise<OrgSettings>} - A promise that resolves to the organization settings response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrganizationSetting(orgId: string): Promise<OrgSettings> {\n try {\n const resource = endPointMap.orgSettings(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrganizationSetting api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORGANIZATION_SETTING,\n });\n\n return Promise.resolve(response.body.data[0]);\n } catch (error) {\n LoggerProxy.error(`getOrganizationSetting API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORGANIZATION_SETTING,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the tenant data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the tenant data is to be fetched.\n * @returns {Promise<TenantData>} - A promise that resolves to the tenant data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getTenantData(orgId: string): Promise<TenantData> {\n try {\n const resource = endPointMap.tenantData(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getTenantData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_TENANT_DATA,\n });\n\n return Promise.resolve(response.body.data[0]);\n } catch (error) {\n LoggerProxy.error(`getTenantData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_TENANT_DATA,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the URL mapping data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the URL mapping is to be fetched.\n * @returns {Promise<URLMapping[]>} - A promise that resolves to the URL mapping response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getURLMapping(orgId: string): Promise<URLMapping[]> {\n try {\n const resource = endPointMap.urlMapping(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getURLMapping api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_URL_MAPPING,\n });\n\n return Promise.resolve(response.body.data);\n } catch (error) {\n LoggerProxy.error(`getURLMapping API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_URL_MAPPING,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the dial plan data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the dial plan data is to be fetched.\n * @returns {Promise<DialPlanEntity[]>} - A promise that resolves to the dial plan data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDialPlanData(orgId: string): Promise<DialPlanEntity[]> {\n try {\n const resource = endPointMap.dialPlan(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDialPlanData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDialPlanData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the list of queues for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the queues are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of queues to fetch per page.\n * @param {string} search - optional search string\n * @param {string} filter - optional filter string\n * @returns Promise<ContactServiceQueue[]> - A promise that resolves to the list of contact service queues.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getQueues(\n orgId: string,\n page: number,\n pageSize: number,\n search?: string,\n filter?: string\n ): Promise<ContactServiceQueue[]> {\n LoggerProxy.info('Fetching queue list', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_QUEUES,\n });\n\n try {\n let queryParams = `page=${page}&pageSize=${pageSize}&desktopProfileFilter=true`;\n if (search) queryParams += `&search=${search}`;\n if (filter) queryParams += `&filter=${filter}`;\n\n const resource = endPointMap.queueList(orgId, queryParams);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getQueues API success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_QUEUES,\n });\n\n return response.body?.data;\n } catch (error) {\n LoggerProxy.error(`getQueues API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_QUEUES,\n });\n throw error;\n }\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AAkBA,IAAAG,aAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAMqB,SAAAE,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF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EC,mBAAO,CAAC6F;MAClB,CAAC,CAAC;MACF,MAAMvD,KAAK;IACb;EACF;AACF;AAAC0D,OAAA,CAAA9H,OAAA,GAAAC,kBAAA"}
|
|
1
|
+
{"version":3,"names":["_types","require","_loggerProxy","_interopRequireDefault","_WebexRequest","_constants","_constants2","_Util","_constants3","obj","__esModule","default","AgentConfigService","constructor","webexReq","WebexRequest","getInstance","getAgentConfig","orgId","agentId","userConfigPromise","getUserUsingCI","orgInfoPromise","getOrgInfo","orgSettingsPromise","getOrganizationSetting","tenantDataPromise","getTenantData","urlMappingPromise","getURLMapping","auxCodesPromise","getAllAuxCodes","DEFAULT_PAGE_SIZE","DEFAULT_AUXCODE_ATTRIBUTES","userConfigData","LoggerProxy","info","ciUserId","module","CONFIG_FILE_NAME","method","METHODS","GET_AGENT_CONFIG","agentProfilePromise","getDesktopProfileById","agentProfileId","siteInfoPromise","getSiteInfo","siteId","userDialPlanPromise","then","agentProfileConfigData","dialPlanEnabled","getDialPlanData","userTeamPromise","teamIds","getAllTeams","Promise","resolve","siteInfo","userDialPlanData","userTeamData","orgInfo","orgSettingsData","tenantData","urlMappingData","auxCodesData","all","multimediaProfileId","multiMediaProfileId","response","parseAgentConfigs","userData","teamData","orgInfoData","auxCodes","agentProfileData","dialPlanData","urlMapping","error","GET_USER_USING_CI","resource","endPointMap","userByCI","request","service","WCC_API_GATEWAY","HTTP_METHODS","GET","statusCode","Error","log","body","desktopProfileId","GET_DESKTOP_PROFILE_BY_ID","desktopProfile","getMultimediaProfileById","GET_MULTIMEDIA_PROFILE_BY_ID","multimediaProfile","getListOfTeams","page","pageSize","filter","GET_LIST_OF_TEAMS","listTeams","allTeams","DEFAULT_PAGE","firstResponse","totalPages","meta","concat","data","requests","push","responses","GET_ALL_TEAMS","getListOfAuxCodes","attributes","GET_LIST_OF_AUX_CODES","listAuxCodes","allAuxCodes","promises","forEach","GET_ALL_AUX_CODES","GET_SITE_INFO","GET_ORG_INFO","orgSettings","GET_ORGANIZATION_SETTING","GET_TENANT_DATA","GET_URL_MAPPING","dialPlan","GET_DIAL_PLAN_DATA","getOutdialAniEntries","params","outdialANI","search","MAIN_METHODS","GET_OUTDIAL_ANI_ENTRIES","queryParams","undefined","queryString","length","join","outdialAniEntries","exports"],"sources":["index.ts"],"sourcesContent":["/**\n * @packageDocumentation\n * @module AgentConfigService\n */\n\nimport {HTTP_METHODS} from '../../types';\nimport LoggerProxy from '../../logger-proxy';\nimport {\n DesktopProfileResponse,\n ListAuxCodesResponse,\n AgentResponse,\n TenantData,\n OrgInfo,\n OrgSettings,\n URLMapping,\n TeamList,\n DialPlanEntity,\n Profile,\n ListTeamsResponse,\n AuxCode,\n MultimediaProfileResponse,\n SiteInfo,\n OutdialAniEntriesResponse,\n OutdialAniParams,\n} from './types';\nimport WebexRequest from '../core/WebexRequest';\nimport {WCC_API_GATEWAY} from '../constants';\nimport {CONFIG_FILE_NAME, METHODS as MAIN_METHODS} from '../../constants';\nimport {parseAgentConfigs} from './Util';\nimport {\n DEFAULT_AUXCODE_ATTRIBUTES,\n DEFAULT_PAGE,\n DEFAULT_PAGE_SIZE,\n endPointMap,\n METHODS,\n} from './constants';\n\n/**\n * The AgentConfigService class provides methods to fetch agent configuration data.\n * @private\n * @ignore\n */\nexport default class AgentConfigService {\n private webexReq: WebexRequest;\n constructor() {\n this.webexReq = WebexRequest.getInstance();\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<Profile>} - A promise that resolves to the agent configuration profile.\n * @throws {Error} - Throws an error if any API call fails or if the response status is not 200.\n * @public\n */\n public async getAgentConfig(orgId: string, agentId: string): Promise<Profile> {\n try {\n const userConfigPromise = this.getUserUsingCI(orgId, agentId);\n const orgInfoPromise = this.getOrgInfo(orgId);\n const orgSettingsPromise = this.getOrganizationSetting(orgId);\n const tenantDataPromise = this.getTenantData(orgId);\n const urlMappingPromise = this.getURLMapping(orgId);\n const auxCodesPromise = this.getAllAuxCodes(\n orgId,\n DEFAULT_PAGE_SIZE,\n [],\n DEFAULT_AUXCODE_ATTRIBUTES\n );\n\n const userConfigData = await userConfigPromise;\n LoggerProxy.info(`Fetched user data, userId: ${userConfigData.ciUserId}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const agentProfilePromise = this.getDesktopProfileById(orgId, userConfigData.agentProfileId);\n const siteInfoPromise = this.getSiteInfo(orgId, userConfigData.siteId);\n\n const userDialPlanPromise = agentProfilePromise.then((agentProfileConfigData) =>\n agentProfileConfigData.dialPlanEnabled ? this.getDialPlanData(orgId) : []\n );\n\n const userTeamPromise = userConfigData.teamIds\n ? this.getAllTeams(orgId, DEFAULT_PAGE_SIZE, userConfigData.teamIds)\n : Promise.resolve([]);\n\n const [\n agentProfileConfigData,\n siteInfo,\n userDialPlanData,\n userTeamData,\n orgInfo,\n orgSettingsData,\n tenantData,\n urlMappingData,\n auxCodesData,\n ] = await Promise.all([\n agentProfilePromise,\n siteInfoPromise,\n userDialPlanPromise,\n userTeamPromise,\n orgInfoPromise,\n orgSettingsPromise,\n tenantDataPromise,\n urlMappingPromise,\n auxCodesPromise,\n ]);\n\n const multimediaProfileId =\n userConfigData.multimediaProfileId ||\n userTeamData[0]?.multiMediaProfileId ||\n siteInfo.multimediaProfileId;\n\n LoggerProxy.info('Fetched all required data', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n const response = parseAgentConfigs({\n userData: userConfigData,\n teamData: userTeamData,\n tenantData,\n orgInfoData: orgInfo,\n auxCodes: auxCodesData,\n orgSettingsData,\n agentProfileData: agentProfileConfigData,\n dialPlanData: userDialPlanData,\n urlMapping: urlMappingData,\n multimediaProfileId,\n });\n\n LoggerProxy.info('Parsing completed for agent-config', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n LoggerProxy.info('Fetched configuration data successfully', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n\n return response;\n } catch (error) {\n LoggerProxy.error(`getAgentConfig call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_AGENT_CONFIG,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the agent configuration data for the given orgId and agentId.\n * @ignore\n * @param {string} orgId - organization ID for which the agent configuration is to be fetched.\n * @param {string} agentId - agent ID for which the configuration is to be fetched.\n * @returns {Promise<AgentResponse>} - A promise that resolves to the agent configuration response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getUserUsingCI(orgId: string, agentId: string): Promise<AgentResponse> {\n LoggerProxy.info('Fetching user data using CI', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n\n try {\n const resource = endPointMap.userByCI(orgId, agentId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getUserUsingCI api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getUserUsingCI API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_USER_USING_CI,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the desktop profile data for the given orgId and desktopProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the desktop profile is to be fetched.\n * @param {string} desktopProfileId - desktop profile ID for which the data is to be fetched.\n * @returns {Promise<DesktopProfileResponse>} - A promise that resolves to the desktop profile response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDesktopProfileById(\n orgId: string,\n desktopProfileId: string\n ): Promise<DesktopProfileResponse> {\n LoggerProxy.info('Fetching desktop profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.desktopProfile(orgId, desktopProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDesktopProfileById api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDesktopProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DESKTOP_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the multimedia profile data for the given orgId and multimediaProfileId.\n * @ignore\n * @param {string} orgId - organization ID for which the multimedia profile is to be fetched.\n * @param {string} multimediaProfileId - multimedia profile ID for which the data is to be fetched.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @returns {Promise<MultimediaProfileResponse>} - A promise that resolves to the multimedia profile response.\n * @private\n */\n public async getMultimediaProfileById(\n orgId: string,\n multimediaProfileId: string\n ): Promise<MultimediaProfileResponse> {\n LoggerProxy.info('Fetching multimedia profile', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n try {\n const resource = endPointMap.multimediaProfile(orgId, multimediaProfileId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getMultimediaProfileById API success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getMultimediaProfileById API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_MULTIMEDIA_PROFILE_BY_ID,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of teams for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string[]} filter - optional filter criteria for the teams.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListTeamsResponse>} - A promise that resolves to the list of teams response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfTeams(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[]\n ): Promise<ListTeamsResponse> {\n LoggerProxy.info('Fetching list of teams', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n try {\n const resource = endPointMap.listTeams(orgId, page, pageSize, filter);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfTeams api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all teams from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the teams are to be fetched.\n * @param {number} pageSize - the number of teams to fetch per page.\n * @param {string[]} filter - optional filter criteria for the teams.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<TeamList[]>} - A promise that resolves to the list of teams.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllTeams(orgId: string, pageSize: number, filter: string[]): Promise<TeamList[]> {\n try {\n let allTeams: TeamList[] = [];\n let page = DEFAULT_PAGE;\n const firstResponse = await this.getListOfTeams(orgId, page, pageSize, filter);\n const totalPages = firstResponse.meta.totalPages;\n allTeams = allTeams.concat(firstResponse.data);\n const requests = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n requests.push(this.getListOfTeams(orgId, page, pageSize, filter));\n }\n const responses = await Promise.all(requests);\n\n for (const response of responses) {\n allTeams = allTeams.concat(response.data);\n }\n\n return allTeams;\n } catch (error) {\n LoggerProxy.error(`getAllTeams API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_TEAMS,\n });\n throw error;\n }\n }\n\n /**\n * fetches the list of aux codes for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} page - the page number to fetch.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<ListAuxCodesResponse>} - A promise that resolves to the list of aux codes response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getListOfAuxCodes(\n orgId: string,\n page: number,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<ListAuxCodesResponse> {\n LoggerProxy.info('Fetching list of aux codes', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n try {\n const resource = endPointMap.listAuxCodes(orgId, page, pageSize, filter, attributes);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getListOfAuxCodes api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getListOfAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_LIST_OF_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches all aux codes from all pages for the given orgId\n * @ignore\n * @param {string} orgId - organization ID for which the aux codes are to be fetched.\n * @param {number} pageSize - the number of aux codes to fetch per page.\n * @param {string[]} filter - optional filter criteria for the aux codes.\n * @param {string[]} attributes - optional attributes to include in the response.\n * @returns {Promise<AuxCode[]>} - A promise that resolves to the list of aux codes.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getAllAuxCodes(\n orgId: string,\n pageSize: number,\n filter: string[],\n attributes: string[]\n ): Promise<AuxCode[]> {\n try {\n let allAuxCodes: AuxCode[] = [];\n let page = DEFAULT_PAGE;\n\n const firstResponse = await this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes);\n allAuxCodes = allAuxCodes.concat(firstResponse.data);\n const totalPages = firstResponse.meta.totalPages;\n\n const promises: Promise<ListAuxCodesResponse>[] = [];\n for (page = DEFAULT_PAGE + 1; page < totalPages; page += 1) {\n promises.push(this.getListOfAuxCodes(orgId, page, pageSize, filter, attributes));\n }\n\n const responses = await Promise.all(promises);\n\n responses.forEach((response) => {\n allAuxCodes = allAuxCodes.concat(response.data);\n });\n\n return allAuxCodes;\n } catch (error) {\n LoggerProxy.error(`getAllAuxCodes API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ALL_AUX_CODES,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the site data for the given orgId and siteId.\n * @ignore\n * @param {string} orgId - organization ID for which the site info is to be fetched.\n * @param {string} siteId - site ID for which the data is to be fetched.\n * @returns {Promise<SiteInfo>} - A promise that resolves to the site info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getSiteInfo(orgId: string, siteId: string): Promise<SiteInfo> {\n LoggerProxy.info('Fetching site information', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n try {\n const resource = endPointMap.siteInfo(orgId, siteId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getSiteInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getSiteInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_SITE_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the organization info for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the organization info is to be fetched.\n * @returns {Promise<OrgInfo>} - A promise that resolves to the organization info response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrgInfo(orgId: string): Promise<OrgInfo> {\n try {\n const resource = endPointMap.orgInfo(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrgInfo api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_INFO,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getOrgInfo API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORG_INFO,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the organization settings for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the organization settings are to be fetched.\n * @returns {Promise<OrgSettings>} - A promise that resolves to the organization settings response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOrganizationSetting(orgId: string): Promise<OrgSettings> {\n try {\n const resource = endPointMap.orgSettings(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getOrganizationSetting api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORGANIZATION_SETTING,\n });\n\n return Promise.resolve(response.body.data[0]);\n } catch (error) {\n LoggerProxy.error(`getOrganizationSetting API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_ORGANIZATION_SETTING,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the tenant data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the tenant data is to be fetched.\n * @returns {Promise<TenantData>} - A promise that resolves to the tenant data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getTenantData(orgId: string): Promise<TenantData> {\n try {\n const resource = endPointMap.tenantData(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getTenantData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_TENANT_DATA,\n });\n\n return Promise.resolve(response.body.data[0]);\n } catch (error) {\n LoggerProxy.error(`getTenantData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_TENANT_DATA,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the URL mapping data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the URL mapping is to be fetched.\n * @returns {Promise<URLMapping[]>} - A promise that resolves to the URL mapping response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getURLMapping(orgId: string): Promise<URLMapping[]> {\n try {\n const resource = endPointMap.urlMapping(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getURLMapping api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_URL_MAPPING,\n });\n\n return Promise.resolve(response.body.data);\n } catch (error) {\n LoggerProxy.error(`getURLMapping API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_URL_MAPPING,\n });\n throw error;\n }\n }\n\n /**\n * Fetches the dial plan data for the given orgId.\n * @ignore\n * @param {string} orgId - organization ID for which the dial plan data is to be fetched.\n * @returns {Promise<DialPlanEntity[]>} - A promise that resolves to the dial plan data response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getDialPlanData(orgId: string): Promise<DialPlanEntity[]> {\n try {\n const resource = endPointMap.dialPlan(orgId);\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n if (response.statusCode !== 200) {\n throw new Error(`API call failed with ${response.statusCode}`);\n }\n\n LoggerProxy.log('getDialPlanData api success.', {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n\n return Promise.resolve(response.body);\n } catch (error) {\n LoggerProxy.error(`getDialPlanData API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: METHODS.GET_DIAL_PLAN_DATA,\n });\n throw error;\n }\n }\n\n // getQueues removed - use Queue instead\n\n /**\n * Fetches outdial ANI (Automatic Number Identification) entries for the given orgId and outdial ANI ID.\n * @ignore\n * @param {string} orgId - organization ID for which the outdial ANI entries are to be fetched.\n * @param {OutdialAniParams} params - parameters object containing outdialANI and optional pagination/filtering options\n * @returns {Promise<OutdialAniEntriesResponse>} - A promise that resolves to the outdial ANI entries response.\n * @throws {Error} - Throws an error if the API call fails or if the response status is not 200.\n * @private\n */\n public async getOutdialAniEntries(\n orgId: string,\n params: OutdialAniParams\n ): Promise<OutdialAniEntriesResponse> {\n const {outdialANI, page, pageSize, search, filter, attributes} = params;\n\n LoggerProxy.info('Fetching outdial ANI entries', {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n\n try {\n const queryParams = [];\n if (page !== undefined) queryParams.push(`page=${page}`);\n if (pageSize !== undefined) queryParams.push(`pageSize=${pageSize}`);\n if (search) queryParams.push(`search=${search}`);\n if (filter) queryParams.push(`filter=${filter}`);\n if (attributes) queryParams.push(`attributes=${attributes}`);\n\n const queryString = queryParams.length > 0 ? queryParams.join('&') : '';\n const resource = endPointMap.outdialAniEntries(orgId, outdialANI, queryString);\n\n const response = await this.webexReq.request({\n service: WCC_API_GATEWAY,\n resource,\n method: HTTP_METHODS.GET,\n });\n\n LoggerProxy.log('getOutdialAniEntries API success.', {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n\n return response.body?.data;\n } catch (error) {\n LoggerProxy.error(`getOutdialAniEntries API call failed with ${error}`, {\n module: CONFIG_FILE_NAME,\n method: MAIN_METHODS.GET_OUTDIAL_ANI_ENTRIES,\n });\n throw error;\n }\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AAmBA,IAAAG,aAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAMqB,SAAAE,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAnCrB;AACA;AACA;AACA;;AAkCA;AACA;AACA;AACA;AACA;AACe,MAAMG,kBAAkB,CAAC;EAEtCC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACC,QAAQ,GAAGC,qBAAY,CAACC,WAAW,CAAC,CAAC;EAC5C;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAaC,cAAcA,CAACC,KAAa,E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CAA4CA,KAAM,EAAC,EAAE;QACtEzC,MAAM,EAAEC,4BAAgB;QACxBC,MAAM,EAAEgG,mBAAY,CAACC;MACvB,CAAC,CAAC;MACF,MAAM1D,KAAK;IACb;EACF;AACF;AAACiE,OAAA,CAAArI,OAAA,GAAAC,kBAAA"}
|
|
@@ -48,6 +48,28 @@ const CC_TASK_EVENTS = exports.CC_TASK_EVENTS = {
|
|
|
48
48
|
AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',
|
|
49
49
|
/** Event emitted when consultation conference ends */
|
|
50
50
|
AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',
|
|
51
|
+
/** Event emitted when consultation conference is in progress */
|
|
52
|
+
AGENT_CONSULT_CONFERENCING: 'AgentConsultConferencing',
|
|
53
|
+
/** Event emitted when consultation conference starts */
|
|
54
|
+
AGENT_CONSULT_CONFERENCED: 'AgentConsultConferenced',
|
|
55
|
+
/** Event emitted when consultation conference fails */
|
|
56
|
+
AGENT_CONSULT_CONFERENCE_FAILED: 'AgentConsultConferenceFailed',
|
|
57
|
+
/** Event emitted when participant joins conference */
|
|
58
|
+
PARTICIPANT_JOINED_CONFERENCE: 'ParticipantJoinedConference',
|
|
59
|
+
/** Event emitted when participant leaves conference */
|
|
60
|
+
PARTICIPANT_LEFT_CONFERENCE: 'ParticipantLeftConference',
|
|
61
|
+
/** Event emitted when participant leaving conference fails */
|
|
62
|
+
PARTICIPANT_LEFT_CONFERENCE_FAILED: 'ParticipantLeftConferenceFailed',
|
|
63
|
+
/** Event emitted when consultation conference end fails */
|
|
64
|
+
AGENT_CONSULT_CONFERENCE_END_FAILED: 'AgentConsultConferenceEndFailed',
|
|
65
|
+
/** Event emitted when conference is successfully transferred */
|
|
66
|
+
AGENT_CONFERENCE_TRANSFERRED: 'AgentConferenceTransferred',
|
|
67
|
+
/** Event emitted when conference transfer fails */
|
|
68
|
+
AGENT_CONFERENCE_TRANSFER_FAILED: 'AgentConferenceTransferFailed',
|
|
69
|
+
/** Event emitted when consulted participant is moving/being transferred */
|
|
70
|
+
CONSULTED_PARTICIPANT_MOVING: 'ConsultedParticipantMoving',
|
|
71
|
+
/** Event emitted for post-call activity by participant */
|
|
72
|
+
PARTICIPANT_POST_CALL_ACTIVITY: 'ParticipantPostCallActivity',
|
|
51
73
|
/** Event emitted when contact is blind transferred */
|
|
52
74
|
AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',
|
|
53
75
|
/** Event emitted when blind transfer fails */
|
|
@@ -328,7 +350,17 @@ const WRAP_UP_CODE = exports.WRAP_UP_CODE = 'WRAP_UP_CODE';
|
|
|
328
350
|
*/
|
|
329
351
|
|
|
330
352
|
/**
|
|
331
|
-
*
|
|
353
|
+
* Represents a single outdial ANI (Automatic Number Identification) entry
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Response structure for outdial ANI entries API call
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Parameters for fetching outdial ANI entries
|
|
332
364
|
* @public
|
|
333
365
|
*/
|
|
334
366
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CC_TASK_EVENTS","exports","AGENT_CONTACT_ASSIGN_FAILED","AGENT_CONTACT_OFFER_RONA","AGENT_CONTACT_HELD","AGENT_CONTACT_HOLD_FAILED","AGENT_CONTACT_UNHELD","AGENT_CONTACT_UNHOLD_FAILED","AGENT_CONSULT_CREATED","AGENT_OFFER_CONSULT","AGENT_CONSULTING","AGENT_CONSULT_FAILED","AGENT_CTQ_FAILED","AGENT_CTQ_CANCELLED","AGENT_CTQ_CANCEL_FAILED","AGENT_CONSULT_ENDED","AGENT_CONSULT_END_FAILED","AGENT_CONSULT_CONFERENCE_ENDED","AGENT_BLIND_TRANSFERRED","AGENT_BLIND_TRANSFER_FAILED","AGENT_VTEAM_TRANSFERRED","AGENT_VTEAM_TRANSFER_FAILED","AGENT_CONSULT_TRANSFERRING","AGENT_CONSULT_TRANSFERRED","AGENT_CONSULT_TRANSFER_FAILED","CONTACT_RECORDING_PAUSED","CONTACT_RECORDING_PAUSE_FAILED","CONTACT_RECORDING_RESUMED","CONTACT_RECORDING_RESUME_FAILED","CONTACT_ENDED","AGENT_CONTACT_END_FAILED","AGENT_WRAPUP","AGENT_WRAPPEDUP","AGENT_WRAPUP_FAILED","AGENT_OUTBOUND_FAILED","AGENT_CONTACT","AGENT_OFFER_CONTACT","AGENT_CONTACT_ASSIGNED","AGENT_CONTACT_UNASSIGNED","AGENT_INVITE_FAILED","CC_AGENT_EVENTS","WELCOME","AGENT_RELOGIN_SUCCESS","AGENT_RELOGIN_FAILED","AGENT_DN_REGISTERED","AGENT_LOGOUT","AGENT_LOGOUT_SUCCESS","AGENT_LOGOUT_FAILED","AGENT_STATION_LOGIN","AGENT_STATION_LOGIN_SUCCESS","AGENT_STATION_LOGIN_FAILED","AGENT_STATE_CHANGE","AGENT_MULTI_LOGIN","AGENT_STATE_CHANGE_SUCCESS","AGENT_STATE_CHANGE_FAILED","AGENT_BUDDY_AGENTS","AGENT_BUDDY_AGENTS_SUCCESS","AGENT_BUDDY_AGENTS_RETRIEVE_FAILED","AGENT_CONTACT_RESERVED","CC_EVENTS","IDLE_CODE","WRAP_UP_CODE"],"sources":["types.ts"],"sourcesContent":["import * as Agent from '../agent/types';\n\n/**\n * Generic type for converting a const enum object into a union type of its values\n * @internal\n */\ntype Enum<T extends Record<string, unknown>> = T[keyof T];\n\n/**\n * Events emitted on task objects\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_TASK_EVENTS = {\n /** Event emitted when assigning contact to agent fails */\n AGENT_CONTACT_ASSIGN_FAILED: 'AgentContactAssignFailed',\n /** Event emitted when agent does not respond to contact offer */\n AGENT_CONTACT_OFFER_RONA: 'AgentOfferContactRona',\n /** Event emitted when contact is put on hold */\n AGENT_CONTACT_HELD: 'AgentContactHeld',\n /** Event emitted when putting contact on hold fails */\n AGENT_CONTACT_HOLD_FAILED: 'AgentContactHoldFailed',\n /** Event emitted when contact is taken off hold */\n AGENT_CONTACT_UNHELD: 'AgentContactUnheld',\n /** Event emitted when taking contact off hold fails */\n AGENT_CONTACT_UNHOLD_FAILED: 'AgentContactUnHoldFailed',\n /** Event emitted when consultation is created */\n AGENT_CONSULT_CREATED: 'AgentConsultCreated',\n /** Event emitted when consultation is offered */\n AGENT_OFFER_CONSULT: 'AgentOfferConsult',\n /** Event emitted when agent is consulting */\n AGENT_CONSULTING: 'AgentConsulting',\n /** Event emitted when consultation fails */\n AGENT_CONSULT_FAILED: 'AgentConsultFailed',\n /** Event emitted when consulting to queue (CTQ) fails */\n AGENT_CTQ_FAILED: 'AgentCtqFailed',\n /** Event emitted when CTQ is cancelled */\n AGENT_CTQ_CANCELLED: 'AgentCtqCancelled',\n /** Event emitted when CTQ cancellation fails */\n AGENT_CTQ_CANCEL_FAILED: 'AgentCtqCancelFailed',\n /** Event emitted when consultation ends */\n AGENT_CONSULT_ENDED: 'AgentConsultEnded',\n /** Event emitted when ending consultation fails */\n AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',\n /** Event emitted when consultation conference ends */\n AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',\n /** Event emitted when contact is blind transferred */\n AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',\n /** Event emitted when blind transfer fails */\n AGENT_BLIND_TRANSFER_FAILED: 'AgentBlindTransferFailed',\n /** Event emitted when contact is transferred to virtual team */\n AGENT_VTEAM_TRANSFERRED: 'AgentVteamTransferred',\n /** Event emitted when virtual team transfer fails */\n AGENT_VTEAM_TRANSFER_FAILED: 'AgentVteamTransferFailed',\n /** Event emitted when consultation transfer is in progress */\n AGENT_CONSULT_TRANSFERRING: 'AgentConsultTransferring',\n /** Event emitted when consultation transfer completes */\n AGENT_CONSULT_TRANSFERRED: 'AgentConsultTransferred',\n /** Event emitted when consultation transfer fails */\n AGENT_CONSULT_TRANSFER_FAILED: 'AgentConsultTransferFailed',\n /** Event emitted when contact recording is paused */\n CONTACT_RECORDING_PAUSED: 'ContactRecordingPaused',\n /** Event emitted when pausing contact recording fails */\n CONTACT_RECORDING_PAUSE_FAILED: 'ContactRecordingPauseFailed',\n /** Event emitted when contact recording is resumed */\n CONTACT_RECORDING_RESUMED: 'ContactRecordingResumed',\n /** Event emitted when resuming contact recording fails */\n CONTACT_RECORDING_RESUME_FAILED: 'ContactRecordingResumeFailed',\n /** Event emitted when contact ends */\n CONTACT_ENDED: 'ContactEnded',\n /** Event emitted when ending contact fails */\n AGENT_CONTACT_END_FAILED: 'AgentContactEndFailed',\n /** Event emitted when agent enters wrap-up state */\n AGENT_WRAPUP: 'AgentWrapup',\n /** Event emitted when agent completes wrap-up */\n AGENT_WRAPPEDUP: 'AgentWrappedUp',\n /** Event emitted when wrap-up fails */\n AGENT_WRAPUP_FAILED: 'AgentWrapupFailed',\n /** Event emitted when outbound call fails */\n AGENT_OUTBOUND_FAILED: 'AgentOutboundFailed',\n /** Event emitted for general agent contact events */\n AGENT_CONTACT: 'AgentContact',\n /** Event emitted when contact is offered to agent */\n AGENT_OFFER_CONTACT: 'AgentOfferContact',\n /** Event emitted when contact is assigned to agent */\n AGENT_CONTACT_ASSIGNED: 'AgentContactAssigned',\n /** Event emitted when contact is unassigned from agent */\n AGENT_CONTACT_UNASSIGNED: 'AgentContactUnassigned',\n /** Event emitted when inviting agent fails */\n AGENT_INVITE_FAILED: 'AgentInviteFailed',\n} as const;\n\n/**\n * Events emitted on Contact Center agent operations\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_AGENT_EVENTS = {\n /** Welcome event when agent connects to websocket/backend */\n WELCOME: 'Welcome',\n /** Event emitted when agent re-login is successful */\n AGENT_RELOGIN_SUCCESS: 'AgentReloginSuccess',\n /** Event emitted when agent re-login fails */\n AGENT_RELOGIN_FAILED: 'AgentReloginFailed',\n /** Event emitted when agent DN registration completes */\n AGENT_DN_REGISTERED: 'AgentDNRegistered',\n /** Event emitted when agent initiates logout */\n AGENT_LOGOUT: 'Logout',\n /** Event emitted when agent logout is successful */\n AGENT_LOGOUT_SUCCESS: 'AgentLogoutSuccess',\n /** Event emitted when agent logout fails */\n AGENT_LOGOUT_FAILED: 'AgentLogoutFailed',\n /** Event emitted when agent initiates station login */\n AGENT_STATION_LOGIN: 'StationLogin',\n /** Event emitted when agent station login is successful */\n AGENT_STATION_LOGIN_SUCCESS: 'AgentStationLoginSuccess',\n /** Event emitted when agent station login fails */\n AGENT_STATION_LOGIN_FAILED: 'AgentStationLoginFailed',\n /** Event emitted when agent's state changes */\n AGENT_STATE_CHANGE: 'AgentStateChange',\n /** Event emitted when multiple logins detected for same agent */\n AGENT_MULTI_LOGIN: 'AGENT_MULTI_LOGIN',\n /** Event emitted when agent state change is successful */\n AGENT_STATE_CHANGE_SUCCESS: 'AgentStateChangeSuccess',\n /** Event emitted when agent state change fails */\n AGENT_STATE_CHANGE_FAILED: 'AgentStateChangeFailed',\n /** Event emitted when requesting buddy agents list */\n AGENT_BUDDY_AGENTS: 'BuddyAgents',\n /** Event emitted when buddy agents list is successfully retrieved */\n AGENT_BUDDY_AGENTS_SUCCESS: 'BuddyAgents',\n /** Event emitted when retrieving buddy agents list fails */\n AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',\n /** Event emitted when contact is reserved for agent */\n AGENT_CONTACT_RESERVED: 'AgentContactReserved',\n} as const;\n\n/**\n * Combined Contact Center events including both agent and task events\n * @enum {string}\n * @public\n */\nexport const CC_EVENTS = {\n ...CC_AGENT_EVENTS,\n ...CC_TASK_EVENTS,\n} as const;\n\n/**\n * Event data received when agent connects to the system\n * @public\n */\nexport type WelcomeEvent = {\n /** ID of the agent that connected */\n agentId: string;\n};\n\n/**\n * Response type for welcome events which can be either success or error\n * @public\n */\nexport type WelcomeResponse = WelcomeEvent | Error;\n\n/**\n * Type representing the union of all possible Contact Center events\n * @public\n */\nexport type CC_EVENTS = Enum<typeof CC_EVENTS>;\n\n/**\n * WebSocket event structure for Contact Center events\n * @public\n */\nexport type WebSocketEvent = {\n /** Type of the event */\n type: CC_EVENTS;\n /** Event payload data */\n data:\n | WelcomeEvent\n | Agent.StationLoginSuccess\n | Agent.LogoutSuccess\n | Agent.ReloginSuccess\n | Agent.StateChangeSuccess\n | Agent.BuddyAgentsSuccess;\n};\n\n/**\n * Represents the response from getUserUsingCI method.\n */\nexport type AgentResponse = {\n /**\n * ID of the agent.\n */\n id: string;\n\n /**\n * The ciUserId of the agent.\n */\n ciUserId: string;\n\n /**\n * The first name of the agent.\n */\n firstName: string;\n\n /**\n * The last name of the agent.\n */\n lastName: string;\n\n /**\n * Identifier for a Desktop Profile.\n */\n agentProfileId: string;\n\n /**\n * The email address of the agent.\n */\n email: string;\n\n /**\n * Team IDs assigned to the agent.\n */\n teamIds: string[];\n\n /**\n * Multimedia profile ID associated with the agent.\n */\n multimediaProfileId: string;\n\n /**\n * Skill profile ID of the agent.\n */\n skillProfileId: string;\n\n /**\n * Site ID of the agent.\n */\n siteId: string;\n\n /**\n * Database ID of the agent.\n */\n dbId?: string;\n\n /**\n * The default dialed number of the agent.\n */\n defaultDialledNumber?: string;\n};\n\n/**\n * Represents the response from getDesktopProfileById method.\n */\nexport type DesktopProfileResponse = {\n /**\n * Represents the voice options of an agent.\n */\n loginVoiceOptions: LoginOption[];\n\n /**\n * Wrap-up codes that the agents can select when they wrap up a contact. It can take one of these values: ALL - To make all wrap-up codes available. SPECIFIC - To make specific codes available.\n */\n accessWrapUpCode: string;\n\n /**\n * Idle codes that the agents can select in Agent Desktop. It can take one of these values: ALL - To make all idle codes available. SPECIFIC - To make specific codes available.\n */\n accessIdleCode: string;\n\n /**\n * Wrap-up codes list that the agents can select when they wrap up a contact.\n */\n wrapUpCodes: string[];\n\n /**\n * Idle codes list that the agents can select in Agent Desktop.\n */\n idleCodes: string[];\n\n /**\n * Dial plan enabled for the agent.\n */\n dialPlanEnabled: boolean;\n\n /**\n * Last agent routing enabled for the agent.\n */\n lastAgentRouting: boolean;\n\n /**\n * Auto wrap-up allowed.\n */\n autoWrapUp: boolean;\n\n /**\n * Auto answer allowed.\n */\n autoAnswer: boolean;\n\n /**\n * Auto wrap-up after seconds.\n */\n autoWrapAfterSeconds: number;\n\n /**\n * Agent available after outdial.\n */\n agentAvailableAfterOutdial: boolean;\n\n /**\n * Allow auto wrap-up extension.\n */\n allowAutoWrapUpExtension: boolean;\n\n /**\n * Outdial enabled for the agent.\n */\n outdialEnabled: boolean;\n\n /**\n * Outdial entry point ID of the agent.\n */\n outdialEntryPointId: string;\n\n /**\n * Outdial ANI ID of the agent.\n */\n outdialANIId: string;\n\n /**\n * Consult to queue allowed.\n */\n consultToQueue: boolean;\n\n /**\n * Address book ID of the agent.\n */\n addressBookId: string;\n\n /**\n * Viewable statistics of the agent.\n */\n viewableStatistics: {\n id: string;\n agentStats: boolean;\n accessQueueStats: string;\n contactServiceQueues: string[];\n loggedInTeamStats: boolean;\n accessTeamStats: string;\n teams: string[];\n };\n\n /**\n * Agent DN validation of the agent.\n */\n agentDNValidation: string;\n\n /**\n * Dial plans of the agent.\n */\n dialPlans: string[];\n\n /**\n * Timeout desktop inactivity custom enabled.\n */\n timeoutDesktopInactivityCustomEnabled: boolean;\n\n /**\n * Timeout desktop inactivity minutes.\n */\n timeoutDesktopInactivityMins: number;\n\n /**\n * Show user details in Microsoft enabled or not.\n */\n showUserDetailsMS: boolean;\n\n /**\n * State synchronization in Microsoft enabled or not.\n */\n stateSynchronizationMS: boolean;\n\n /**\n * Show user details in Webex enabled or not.\n */\n showUserDetailsWebex: boolean;\n\n /**\n * State synchronization in Webex enabled or not.\n */\n stateSynchronizationWebex: boolean;\n};\n\n/**\n * Response containing multimedia profile configuration for an agent\n * Defines capabilities across different communication channels\n * @private\n */\nexport type MultimediaProfileResponse = {\n /** Organization identifier */\n organizationId: string;\n /** Profile identifier */\n id: string;\n /** Version number of the profile */\n version: number;\n /** Profile name */\n name: string;\n /** Profile description */\n description: string;\n /** Maximum number of concurrent chat interactions */\n chat: number;\n /** Maximum number of concurrent email interactions */\n email: number;\n /** Maximum number of concurrent voice interactions */\n telephony: number;\n /** Maximum number of concurrent social media interactions */\n social: number;\n /** Whether the profile is active */\n active: boolean;\n /** Whether channel blending is enabled */\n blendingModeEnabled: boolean;\n /** Type of blending mode configuration */\n blendingMode: string;\n /** Whether this is the system default profile */\n systemDefault: boolean;\n /** Timestamp when profile was created */\n createdTime: number;\n /** Timestamp when profile was last updated */\n lastUpdatedTime: number;\n};\n\n/**\n * Response from subscription requests containing WebSocket connection details\n * @public\n */\nexport type SubscribeResponse = {\n /** HTTP status code of the response */\n statusCode: number;\n /** Response body containing connection details */\n body: {\n /** WebSocket URL for real-time updates */\n webSocketUrl?: string;\n /** Unique subscription identifier */\n subscriptionId?: string;\n };\n /** Optional status or error message */\n message: string | null;\n};\n\nexport type AuxCode = {\n /**\n * ID of the Auxiliary Code.\n */\n id: string;\n\n /**\n * Indicates whether the auxiliary code is active or not.\n */\n active: boolean;\n\n /**\n * Indicates whether this is the default code (true) or not (false).\n */\n defaultCode: boolean;\n\n /**\n * Indicates whether this is the system default code (true) or not (false).\n */\n isSystemCode: boolean;\n\n /**\n * A short description indicating the context of the code.\n */\n description: string;\n\n /**\n * Name of the Auxiliary Code.\n */\n name: string;\n\n /**\n * Indicates the work type associated with this code.\n */\n workTypeCode: string;\n};\n\nexport type ListAuxCodesResponse = {\n data: AuxCode[];\n meta: {\n page: number;\n pageSize: number;\n totalPages: number;\n totalRecords: number;\n };\n};\n\n/**\n * Configuration for a team in the contact center system\n * @private\n */\nexport type TeamList = {\n /** Unique identifier for the team */\n id: string;\n /** Team name */\n name: string;\n /** Type of team (e.g., 'AGENT_BASED') */\n teamType: string;\n /** Current status of the team */\n teamStatus: string;\n /** Whether the team is active */\n active: boolean;\n /** Site identifier where team is located */\n siteId: string;\n /** Name of the site */\n siteName: string;\n /** Optional multimedia profile ID for team */\n multiMediaProfileId?: string;\n /** List of user IDs belonging to team */\n userIds: string[];\n /** Whether queue rankings are enabled for team */\n rankQueuesForTeam: boolean;\n /** Ordered list of queue rankings */\n queueRankings: string[];\n /** Optional database identifier */\n dbId?: string;\n /** Optional desktop layout identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Response type for listing teams with pagination metadata\n * @private\n */\nexport type ListTeamsResponse = {\n /** Array of team configurations */\n data: TeamList[];\n /** Pagination metadata */\n meta: {\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Basic organization information in the contact center system\n * @private\n * @ignore\n */\nexport type OrgInfo = {\n /** Tenant identifier */\n tenantId: string;\n /** Organization timezone */\n timezone: string;\n};\n\n/**\n * Organization-wide feature settings and configurations\n * @private\n */\nexport type OrgSettings = {\n /** Whether WebRTC functionality is enabled */\n webRtcEnabled: boolean;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData: boolean;\n /** Whether campaign manager features are enabled */\n campaignManagerEnabled: boolean;\n};\n\n/**\n * Contact center site configuration information\n * @private\n */\nexport type SiteInfo = {\n /** Unique site identifier */\n id: string;\n /** Site name */\n name: string;\n /** Whether site is active */\n active: boolean;\n /** Multimedia profile ID for site */\n multimediaProfileId: string;\n /** Whether this is the system default site */\n systemDefault: boolean;\n};\n\n/**\n * Tenant-level configuration data and settings\n * @private\n */\nexport type TenantData = {\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins: number;\n /** Whether default DN is enforced */\n forceDefaultDn: boolean;\n /** Regex pattern for default DN validation */\n dnDefaultRegex: string;\n /** Regex pattern for other DN validation */\n dnOtherRegex: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Whether outbound dialing is enabled */\n outdialEnabled: boolean;\n /** Whether ending calls is enabled */\n endCallEnabled: boolean;\n /** Whether ending consultations is enabled */\n endConsultEnabled: boolean;\n /** Whether call variables are suppressed */\n callVariablesSuppressed: boolean;\n /** Whether desktop inactivity timeout is enabled */\n timeoutDesktopInactivityEnabled: boolean;\n /** Lost connection recovery timeout in seconds */\n lostConnectionRecoveryTimeout: number;\n};\n\n/**\n * URL mapping configuration for external integrations\n * @public\n */\nexport type URLMapping = {\n id: string;\n name: string;\n url: string;\n links: string[]; // Assuming 'links' is an array of strings, adjust if necessary\n createdTime: number; // Assuming timestamps are represented as numbers\n lastUpdatedTime: number;\n};\n\n/**\n * Constant representing idle code\n * @public\n * @ignore\n */\nexport const IDLE_CODE = 'IDLE_CODE';\n\n/**\n * Constant representing wrap up code\n * @public\n * @ignore\n */\nexport const WRAP_UP_CODE = 'WRAP_UP_CODE';\n\n/**\n * Type representing the possible auxiliary code types\n * @public\n */\nexport type AuxCodeType = typeof IDLE_CODE | typeof WRAP_UP_CODE;\n\n/**\n * Sort order configuration for queries\n * @internal\n */\ntype SortOrder = {\n /** Property to sort by */\n property: string;\n /** Sort order direction */\n order: string;\n};\n\n/**\n * Search query configuration\n * @internal\n */\ntype SearchQuery = {\n /** Properties to search in */\n properties: string;\n /** Search value */\n value: string;\n};\n\n/**\n * Parameters for querying Contact Center resources\n * @public\n */\nexport type QueryParams = {\n /** Page number for pagination */\n pageNumber?: number;\n pageSize?: number;\n attributes?: Array<string>;\n ids?: Array<string>;\n queueType?: string;\n entryPointType?: string;\n channelType?: string;\n isActive?: boolean;\n workTypeCode?: AuxCodeType;\n names?: Array<string>;\n sortOrder?: SortOrder;\n searchQuery?: SearchQuery;\n defaultCode?: boolean;\n search?: string;\n desktopProfileFilter?: boolean;\n};\n\n/**\n * Basic entity information used throughout the system\n * @public\n */\nexport type Entity = {\n /** Whether this is a system entity */\n isSystem: boolean;\n /** Entity name */\n name: string;\n /** Unique entity identifier */\n id: string;\n /** Whether this is the default entity */\n isDefault: boolean;\n};\n\n/**\n * Dial plan entity definition containing number manipulation rules\n * @public\n */\nexport type DialPlanEntity = {\n /** Unique identifier for the dial plan */\n id: string;\n /** Regular expression pattern for matching numbers */\n regularExpression: string;\n /** Prefix to add to matched numbers */\n prefix: string;\n /** Characters to strip from matched numbers */\n strippedChars: string;\n /** Name of the dial plan */\n name: string;\n};\n\n/**\n * Complete dial plan configuration for number handling\n * @public\n */\nexport type DialPlan = {\n /** Type of dial plan (e.g., 'adhocDial') */\n type: string;\n /** List of dial plan entities with transformation rules */\n dialPlanEntity: {\n /** Regular expression pattern */\n regex: string;\n /** Number prefix */\n prefix: string;\n /** Characters to strip */\n strippedChars: string;\n /** Entity name */\n name: string;\n }[];\n};\n\n/**\n * Agent wrap-up codes configuration with pagination metadata\n * @public\n */\nexport type agentWrapUpCodes = {\n /** Array of wrap-up code entities */\n data: Entity[];\n /** Pagination and navigation metadata */\n meta: {\n /** Navigation URLs for pagination */\n links: {\n /** URL for first page */\n first: string;\n /** URL for last page */\n last: string;\n /** URL for next page */\n next: string;\n /** URL for current page */\n self: string;\n };\n /** Organization identifier */\n orgid: string;\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Default wrap-up code configuration for an agent\n * @public\n */\nexport type agentDefaultWrapupCode = {\n /** Unique identifier for the wrap-up code */\n id: string;\n /** Display name of the wrap-up code */\n name: string;\n};\n\n/**\n * Wrap-up reason configuration used to classify completed interactions\n * @public\n */\nexport type WrapUpReason = {\n /** Whether this is a system-defined reason */\n isSystem: boolean;\n /** Display name of the reason */\n name: string;\n /** Unique identifier */\n id: string;\n /** Whether this is the default reason */\n isDefault: boolean;\n};\n\n/**\n * Wrap-up configuration data containing settings and available options\n * @public\n */\nexport type WrapupData = {\n /** Wrap-up configuration properties */\n wrapUpProps: {\n /** Whether automatic wrap-up is enabled */\n autoWrapup?: boolean;\n /** Time in seconds before auto wrap-up triggers */\n autoWrapupInterval?: number;\n /** Whether last agent routing is enabled */\n lastAgentRoute?: boolean;\n /** List of available wrap-up reasons */\n wrapUpReasonList: Array<WrapUpReason>;\n /** List of available wrap-up codes */\n wrapUpCodesList?: Array<string>;\n /** Access control for idle codes ('ALL' or 'SPECIFIC') */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Associated interaction identifier */\n interactionId?: string;\n /** Whether cancelling auto wrap-up is allowed */\n allowCancelAutoWrapup?: boolean;\n };\n};\n\n/**\n * Available login options for voice channel access\n * 'AGENT_DN' - Login using agent's DN\n * 'EXTENSION' - Login using extension number\n * 'BROWSER' - Login using browser-based WebRTC\n * @public\n */\nexport type LoginOption = 'AGENT_DN' | 'EXTENSION' | 'BROWSER';\n\n/**\n * Team configuration information\n * @public\n */\nexport type Team = {\n /** Unique team identifier */\n teamId: string;\n /** Team display name */\n teamName: string;\n /** Optional desktop layout configuration identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Basic queue configuration information\n * @public\n */\nexport type Queue = {\n /** Queue identifier */\n queueId: string;\n /** Queue display name */\n queueName: string;\n};\n\n/**\n * URL mappings for external system integrations\n * @public\n */\nexport type URLMappings = {\n /** Acqueon API endpoint URL */\n acqueonApiUrl: string;\n /** Acqueon console URL */\n acqueonConsoleUrl: string;\n};\n\n/**\n * Comprehensive agent profile configuration in the contact center system\n * Contains all settings and capabilities for an agent\n * @public\n */\nexport type Profile = {\n /** Microsoft Teams integration configuration */\n microsoftConfig?: {\n /** Whether to show user details in Teams */\n showUserDetailsMS?: boolean;\n /** Whether to sync agent state with Teams */\n stateSynchronizationMS?: boolean;\n };\n /** Webex integration configuration */\n webexConfig?: {\n /** Whether to show user details in Webex */\n showUserDetailsWebex?: boolean;\n /** Whether to sync agent state with Webex */\n stateSynchronizationWebex?: boolean;\n };\n /** List of teams the agent belongs to */\n teams: Team[];\n /** Agent's default dial number */\n defaultDn: string;\n dn?: string;\n /** Whether default DN is enforced at tenant level */\n forceDefaultDn: boolean;\n /** Whether default DN is enforced for this agent */\n forceDefaultDnForAgent: boolean;\n /** Regex pattern for US phone number validation */\n regexUS: RegExp | string;\n /** Regex pattern for international phone number validation */\n regexOther: RegExp | string;\n /** Unique identifier for the agent */\n agentId: string;\n /** Display name for the agent */\n agentName: string;\n /** Email address for the agent */\n agentMailId: string;\n /** Agent's profile configuration ID */\n agentProfileID: string;\n /** Dial plan configuration for number handling */\n dialPlan: DialPlan;\n /** Multimedia profile defining channel capabilities */\n multimediaProfileId: string;\n /** Skill profile defining agent competencies */\n skillProfileId: string;\n /** Site where agent is located */\n siteId: string;\n /** Enterprise-wide identifier */\n enterpriseId: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Available idle codes */\n idleCodes: Entity[];\n /** List of specific idle codes */\n idleCodesList?: Array<string>;\n /** Access control for idle codes */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Available wrap-up codes */\n wrapupCodes: Entity[];\n /** Agent-specific wrap-up codes */\n agentWrapUpCodes?: agentWrapUpCodes;\n /** Default wrap-up code for agent */\n agentDefaultWrapUpCode?: agentDefaultWrapupCode;\n /** Default wrap-up code identifier */\n defaultWrapupCode: string;\n /** Wrap-up configuration data */\n wrapUpData: WrapupData;\n /** Organization identifier */\n orgId?: string;\n /** Whether outbound is enabled at tenant level */\n isOutboundEnabledForTenant: boolean;\n /** Whether outbound is enabled for this agent */\n isOutboundEnabledForAgent: boolean;\n /** Whether ad-hoc dialing is enabled */\n isAdhocDialingEnabled: boolean;\n /** Whether agent becomes available after outdial */\n isAgentAvailableAfterOutdial: boolean;\n /** Whether campaign management is enabled */\n isCampaignManagementEnabled: boolean;\n /** Outbound entry point */\n outDialEp: string;\n /** Whether ending calls is enabled */\n isEndCallEnabled: boolean;\n /** Whether ending consultations is enabled */\n isEndConsultEnabled: boolean;\n /** Optional lifecycle manager URL */\n lcmUrl?: string;\n /** Database identifier for agent */\n agentDbId: string;\n /** Optional analyzer identifier for agent */\n agentAnalyzerId?: string;\n /** Whether consult to queue is allowed */\n allowConsultToQueue: boolean;\n /** Additional campaign manager information */\n campaignManagerAdditionalInfo?: string;\n /** Whether personal statistics are enabled */\n agentPersonalStatsEnabled: boolean;\n /** Optional address book identifier */\n addressBookId?: string;\n /** Optional outbound ANI identifier */\n outdialANIId?: string;\n /** Optional analyzer user identifier */\n analyserUserId?: string;\n /** Whether call monitoring is enabled */\n isCallMonitoringEnabled?: boolean;\n /** Whether mid-call monitoring is enabled */\n isMidCallMonitoringEnabled?: boolean;\n /** Whether barge-in functionality is enabled */\n isBargeInEnabled?: boolean;\n /** Whether managed teams feature is enabled */\n isManagedTeamsEnabled?: boolean;\n /** Whether managed queues feature is enabled */\n isManagedQueuesEnabled?: boolean;\n /** Whether sending messages is enabled */\n isSendMessageEnabled?: boolean;\n /** Whether agent state changes are enabled */\n isAgentStateChangeEnabled?: boolean;\n /** Whether signing out agents is enabled */\n isSignOutAgentsEnabled?: boolean;\n /** Integration URL mappings */\n urlMappings?: URLMappings;\n /** Whether desktop inactivity timeout is enabled */\n isTimeoutDesktopInactivityEnabled: boolean;\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins?: number;\n /** Whether analyzer features are enabled */\n isAnalyzerEnabled?: boolean;\n /** Tenant timezone */\n tenantTimezone?: string;\n /** Available voice login options */\n loginVoiceOptions?: LoginOption[];\n /** Current login device type */\n deviceType?: LoginOption;\n /** Current team identifier */\n currentTeamId?: string;\n /** Whether WebRTC is enabled */\n webRtcEnabled: boolean;\n /** Organization-wide idle codes */\n organizationIdleCodes?: Entity[];\n /** Whether recording management is enabled */\n isRecordingManagementEnabled?: boolean;\n /** Connection recovery timeout in milliseconds */\n lostConnectionRecoveryTimeout: number;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData?: boolean;\n /** Whether agent is currently logged in */\n isAgentLoggedIn?: boolean;\n /** Last auxiliary code ID used for state change */\n lastStateAuxCodeId?: string;\n /** Timestamp of last state change */\n lastStateChangeTimestamp?: number;\n /** Timestamp of last idle code change */\n lastIdleCodeChangeTimestamp?: number;\n};\n\n/**\n * Contact distribution group configuration for routing logic\n * @public\n */\nexport type CallDistributionGroup = {\n /** List of agent groups in this distribution group */\n agentGroups: {\n /** Team identifier */\n teamId: string;\n }[];\n /** Distribution order priority */\n order: number;\n /** Distribution time duration in seconds */\n duration: number;\n};\n\n/**\n * Comprehensive configuration for a contact service queue\n * @public\n */\nexport type ContactServiceQueue = {\n /** Unique identifier for the queue */\n id: string;\n /** Queue name */\n name: string;\n /** Queue description */\n description: string;\n /** Type of queue */\n queueType: string;\n /** Whether to check agent availability before routing */\n checkAgentAvailability: boolean;\n /** Type of channel this queue handles */\n channelType: string;\n /** Service level threshold in seconds */\n serviceLevelThreshold: number;\n /** Maximum number of active contacts allowed */\n maxActiveContacts: number;\n /** Maximum time contacts can wait in queue (seconds) */\n maxTimeInQueue: number;\n /** Default music on hold media file ID */\n defaultMusicInQueueMediaFileId: string;\n /** Queue timezone */\n timezone: string;\n /** Whether queue is active */\n active: boolean;\n /** Whether outbound campaign routing is enabled */\n outdialCampaignEnabled: boolean;\n /** Whether monitoring is permitted */\n monitoringPermitted: boolean;\n /** Whether parking is permitted */\n parkingPermitted: boolean;\n /** Whether recording is permitted */\n recordingPermitted: boolean;\n /** Whether recording all calls is permitted */\n recordingAllCallsPermitted: boolean;\n /** Whether pausing recordings is permitted */\n pauseRecordingPermitted: boolean;\n /** Maximum recording pause duration in seconds */\n recordingPauseDuration: number;\n /** Control flow script URL */\n controlFlowScriptUrl: string;\n /** IVR requeue URL */\n ivrRequeueUrl: string;\n /** Type of routing strategy */\n routingType: string;\n /** Queue-specific routing type */\n queueRoutingType: string;\n /** Queue skill requirements for routing */\n queueSkillRequirements: object[];\n /** Associated agents */\n agents: object[];\n /** Call distribution group configurations */\n callDistributionGroups: CallDistributionGroup[];\n /** Associated resource links */\n links: Array<string>;\n /** Timestamp when queue was created */\n createdTime: string;\n /** Timestamp when queue was last updated */\n lastUpdatedTime: string;\n};\n"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,c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A;;AAUA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;;AA0BA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACO,MAAM4D,SAAS,GAAA3D,OAAA,CAAA2D,SAAA,GAAG,WAAW;;AAEpC;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAY,GAAA5D,OAAA,CAAA4D,YAAA,GAAG,cAAc;;AAE1C;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAoBA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;;AA8BA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;;AAyJA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"names":["CC_TASK_EVENTS","exports","AGENT_CONTACT_ASSIGN_FAILED","AGENT_CONTACT_OFFER_RONA","AGENT_CONTACT_HELD","AGENT_CONTACT_HOLD_FAILED","AGENT_CONTACT_UNHELD","AGENT_CONTACT_UNHOLD_FAILED","AGENT_CONSULT_CREATED","AGENT_OFFER_CONSULT","AGENT_CONSULTING","AGENT_CONSULT_FAILED","AGENT_CTQ_FAILED","AGENT_CTQ_CANCELLED","AGENT_CTQ_CANCEL_FAILED","AGENT_CONSULT_ENDED","AGENT_CONSULT_END_FAILED","AGENT_CONSULT_CONFERENCE_ENDED","AGENT_CONSULT_CONFERENCING","AGENT_CONSULT_CONFERENCED","AGENT_CONSULT_CONFERENCE_FAILED","PARTICIPANT_JOINED_CONFERENCE","PARTICIPANT_LEFT_CONFERENCE","PARTICIPANT_LEFT_CONFERENCE_FAILED","AGENT_CONSULT_CONFERENCE_END_FAILED","AGENT_CONFERENCE_TRANSFERRED","AGENT_CONFERENCE_TRANSFER_FAILED","CONSULTED_PARTICIPANT_MOVING","PARTICIPANT_POST_CALL_ACTIVITY","AGENT_BLIND_TRANSFERRED","AGENT_BLIND_TRANSFER_FAILED","AGENT_VTEAM_TRANSFERRED","AGENT_VTEAM_TRANSFER_FAILED","AGENT_CONSULT_TRANSFERRING","AGENT_CONSULT_TRANSFERRED","AGENT_CONSULT_TRANSFER_FAILED","CONTACT_RECORDING_PAUSED","CONTACT_RECORDING_PAUSE_FAILED","CONTACT_RECORDING_RESUMED","CONTACT_RECORDING_RESUME_FAILED","CONTACT_ENDED","AGENT_CONTACT_END_FAILED","AGENT_WRAPUP","AGENT_WRAPPEDUP","AGENT_WRAPUP_FAILED","AGENT_OUTBOUND_FAILED","AGENT_CONTACT","AGENT_OFFER_CONTACT","AGENT_CONTACT_ASSIGNED","AGENT_CONTACT_UNASSIGNED","AGENT_INVITE_FAILED","CC_AGENT_EVENTS","WELCOME","AGENT_RELOGIN_SUCCESS","AGENT_RELOGIN_FAILED","AGENT_DN_REGISTERED","AGENT_LOGOUT","AGENT_LOGOUT_SUCCESS","AGENT_LOGOUT_FAILED","AGENT_STATION_LOGIN","AGENT_STATION_LOGIN_SUCCESS","AGENT_STATION_LOGIN_FAILED","AGENT_STATE_CHANGE","AGENT_MULTI_LOGIN","AGENT_STATE_CHANGE_SUCCESS","AGENT_STATE_CHANGE_FAILED","AGENT_BUDDY_AGENTS","AGENT_BUDDY_AGENTS_SUCCESS","AGENT_BUDDY_AGENTS_RETRIEVE_FAILED","AGENT_CONTACT_RESERVED","CC_EVENTS","IDLE_CODE","WRAP_UP_CODE"],"sources":["types.ts"],"sourcesContent":["import * as Agent from '../agent/types';\n\n/**\n * Generic type for converting a const enum object into a union type of its values\n * @internal\n */\ntype Enum<T extends Record<string, unknown>> = T[keyof T];\n\n/**\n * Events emitted on task objects\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_TASK_EVENTS = {\n /** Event emitted when assigning contact to agent fails */\n AGENT_CONTACT_ASSIGN_FAILED: 'AgentContactAssignFailed',\n /** Event emitted when agent does not respond to contact offer */\n AGENT_CONTACT_OFFER_RONA: 'AgentOfferContactRona',\n /** Event emitted when contact is put on hold */\n AGENT_CONTACT_HELD: 'AgentContactHeld',\n /** Event emitted when putting contact on hold fails */\n AGENT_CONTACT_HOLD_FAILED: 'AgentContactHoldFailed',\n /** Event emitted when contact is taken off hold */\n AGENT_CONTACT_UNHELD: 'AgentContactUnheld',\n /** Event emitted when taking contact off hold fails */\n AGENT_CONTACT_UNHOLD_FAILED: 'AgentContactUnHoldFailed',\n /** Event emitted when consultation is created */\n AGENT_CONSULT_CREATED: 'AgentConsultCreated',\n /** Event emitted when consultation is offered */\n AGENT_OFFER_CONSULT: 'AgentOfferConsult',\n /** Event emitted when agent is consulting */\n AGENT_CONSULTING: 'AgentConsulting',\n /** Event emitted when consultation fails */\n AGENT_CONSULT_FAILED: 'AgentConsultFailed',\n /** Event emitted when consulting to queue (CTQ) fails */\n AGENT_CTQ_FAILED: 'AgentCtqFailed',\n /** Event emitted when CTQ is cancelled */\n AGENT_CTQ_CANCELLED: 'AgentCtqCancelled',\n /** Event emitted when CTQ cancellation fails */\n AGENT_CTQ_CANCEL_FAILED: 'AgentCtqCancelFailed',\n /** Event emitted when consultation ends */\n AGENT_CONSULT_ENDED: 'AgentConsultEnded',\n /** Event emitted when ending consultation fails */\n AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',\n /** Event emitted when consultation conference ends */\n AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',\n /** Event emitted when consultation conference is in progress */\n AGENT_CONSULT_CONFERENCING: 'AgentConsultConferencing',\n /** Event emitted when consultation conference starts */\n AGENT_CONSULT_CONFERENCED: 'AgentConsultConferenced',\n /** Event emitted when consultation conference fails */\n AGENT_CONSULT_CONFERENCE_FAILED: 'AgentConsultConferenceFailed',\n /** Event emitted when participant joins conference */\n PARTICIPANT_JOINED_CONFERENCE: 'ParticipantJoinedConference',\n /** Event emitted when participant leaves conference */\n PARTICIPANT_LEFT_CONFERENCE: 'ParticipantLeftConference',\n /** Event emitted when participant leaving conference fails */\n PARTICIPANT_LEFT_CONFERENCE_FAILED: 'ParticipantLeftConferenceFailed',\n /** Event emitted when consultation conference end fails */\n AGENT_CONSULT_CONFERENCE_END_FAILED: 'AgentConsultConferenceEndFailed',\n /** Event emitted when conference is successfully transferred */\n AGENT_CONFERENCE_TRANSFERRED: 'AgentConferenceTransferred',\n /** Event emitted when conference transfer fails */\n AGENT_CONFERENCE_TRANSFER_FAILED: 'AgentConferenceTransferFailed',\n /** Event emitted when consulted participant is moving/being transferred */\n CONSULTED_PARTICIPANT_MOVING: 'ConsultedParticipantMoving',\n /** Event emitted for post-call activity by participant */\n PARTICIPANT_POST_CALL_ACTIVITY: 'ParticipantPostCallActivity',\n /** Event emitted when contact is blind transferred */\n AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',\n /** Event emitted when blind transfer fails */\n AGENT_BLIND_TRANSFER_FAILED: 'AgentBlindTransferFailed',\n /** Event emitted when contact is transferred to virtual team */\n AGENT_VTEAM_TRANSFERRED: 'AgentVteamTransferred',\n /** Event emitted when virtual team transfer fails */\n AGENT_VTEAM_TRANSFER_FAILED: 'AgentVteamTransferFailed',\n /** Event emitted when consultation transfer is in progress */\n AGENT_CONSULT_TRANSFERRING: 'AgentConsultTransferring',\n /** Event emitted when consultation transfer completes */\n AGENT_CONSULT_TRANSFERRED: 'AgentConsultTransferred',\n /** Event emitted when consultation transfer fails */\n AGENT_CONSULT_TRANSFER_FAILED: 'AgentConsultTransferFailed',\n /** Event emitted when contact recording is paused */\n CONTACT_RECORDING_PAUSED: 'ContactRecordingPaused',\n /** Event emitted when pausing contact recording fails */\n CONTACT_RECORDING_PAUSE_FAILED: 'ContactRecordingPauseFailed',\n /** Event emitted when contact recording is resumed */\n CONTACT_RECORDING_RESUMED: 'ContactRecordingResumed',\n /** Event emitted when resuming contact recording fails */\n CONTACT_RECORDING_RESUME_FAILED: 'ContactRecordingResumeFailed',\n /** Event emitted when contact ends */\n CONTACT_ENDED: 'ContactEnded',\n /** Event emitted when ending contact fails */\n AGENT_CONTACT_END_FAILED: 'AgentContactEndFailed',\n /** Event emitted when agent enters wrap-up state */\n AGENT_WRAPUP: 'AgentWrapup',\n /** Event emitted when agent completes wrap-up */\n AGENT_WRAPPEDUP: 'AgentWrappedUp',\n /** Event emitted when wrap-up fails */\n AGENT_WRAPUP_FAILED: 'AgentWrapupFailed',\n /** Event emitted when outbound call fails */\n AGENT_OUTBOUND_FAILED: 'AgentOutboundFailed',\n /** Event emitted for general agent contact events */\n AGENT_CONTACT: 'AgentContact',\n /** Event emitted when contact is offered to agent */\n AGENT_OFFER_CONTACT: 'AgentOfferContact',\n /** Event emitted when contact is assigned to agent */\n AGENT_CONTACT_ASSIGNED: 'AgentContactAssigned',\n /** Event emitted when contact is unassigned from agent */\n AGENT_CONTACT_UNASSIGNED: 'AgentContactUnassigned',\n /** Event emitted when inviting agent fails */\n AGENT_INVITE_FAILED: 'AgentInviteFailed',\n} as const;\n\n/**\n * Events emitted on Contact Center agent operations\n * @enum {string}\n * @private\n * @ignore\n */\nexport const CC_AGENT_EVENTS = {\n /** Welcome event when agent connects to websocket/backend */\n WELCOME: 'Welcome',\n /** Event emitted when agent re-login is successful */\n AGENT_RELOGIN_SUCCESS: 'AgentReloginSuccess',\n /** Event emitted when agent re-login fails */\n AGENT_RELOGIN_FAILED: 'AgentReloginFailed',\n /** Event emitted when agent DN registration completes */\n AGENT_DN_REGISTERED: 'AgentDNRegistered',\n /** Event emitted when agent initiates logout */\n AGENT_LOGOUT: 'Logout',\n /** Event emitted when agent logout is successful */\n AGENT_LOGOUT_SUCCESS: 'AgentLogoutSuccess',\n /** Event emitted when agent logout fails */\n AGENT_LOGOUT_FAILED: 'AgentLogoutFailed',\n /** Event emitted when agent initiates station login */\n AGENT_STATION_LOGIN: 'StationLogin',\n /** Event emitted when agent station login is successful */\n AGENT_STATION_LOGIN_SUCCESS: 'AgentStationLoginSuccess',\n /** Event emitted when agent station login fails */\n AGENT_STATION_LOGIN_FAILED: 'AgentStationLoginFailed',\n /** Event emitted when agent's state changes */\n AGENT_STATE_CHANGE: 'AgentStateChange',\n /** Event emitted when multiple logins detected for same agent */\n AGENT_MULTI_LOGIN: 'AGENT_MULTI_LOGIN',\n /** Event emitted when agent state change is successful */\n AGENT_STATE_CHANGE_SUCCESS: 'AgentStateChangeSuccess',\n /** Event emitted when agent state change fails */\n AGENT_STATE_CHANGE_FAILED: 'AgentStateChangeFailed',\n /** Event emitted when requesting buddy agents list */\n AGENT_BUDDY_AGENTS: 'BuddyAgents',\n /** Event emitted when buddy agents list is successfully retrieved */\n AGENT_BUDDY_AGENTS_SUCCESS: 'BuddyAgents',\n /** Event emitted when retrieving buddy agents list fails */\n AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',\n /** Event emitted when contact is reserved for agent */\n AGENT_CONTACT_RESERVED: 'AgentContactReserved',\n} as const;\n\n/**\n * Combined Contact Center events including both agent and task events\n * @enum {string}\n * @public\n */\nexport const CC_EVENTS = {\n ...CC_AGENT_EVENTS,\n ...CC_TASK_EVENTS,\n} as const;\n\n/**\n * Event data received when agent connects to the system\n * @public\n */\nexport type WelcomeEvent = {\n /** ID of the agent that connected */\n agentId: string;\n};\n\n/**\n * Response type for welcome events which can be either success or error\n * @public\n */\nexport type WelcomeResponse = WelcomeEvent | Error;\n\n/**\n * Type representing the union of all possible Contact Center events\n * @public\n */\nexport type CC_EVENTS = Enum<typeof CC_EVENTS>;\n\n/**\n * WebSocket event structure for Contact Center events\n * @public\n */\nexport type WebSocketEvent = {\n /** Type of the event */\n type: CC_EVENTS;\n /** Event payload data */\n data:\n | WelcomeEvent\n | Agent.StationLoginSuccess\n | Agent.LogoutSuccess\n | Agent.ReloginSuccess\n | Agent.StateChangeSuccess\n | Agent.BuddyAgentsSuccess;\n};\n\n/**\n * Represents the response from getUserUsingCI method.\n */\nexport type AgentResponse = {\n /**\n * ID of the agent.\n */\n id: string;\n\n /**\n * The ciUserId of the agent.\n */\n ciUserId: string;\n\n /**\n * The first name of the agent.\n */\n firstName: string;\n\n /**\n * The last name of the agent.\n */\n lastName: string;\n\n /**\n * Identifier for a Desktop Profile.\n */\n agentProfileId: string;\n\n /**\n * The email address of the agent.\n */\n email: string;\n\n /**\n * Team IDs assigned to the agent.\n */\n teamIds: string[];\n\n /**\n * Multimedia profile ID associated with the agent.\n */\n multimediaProfileId: string;\n\n /**\n * Skill profile ID of the agent.\n */\n skillProfileId: string;\n\n /**\n * Site ID of the agent.\n */\n siteId: string;\n\n /**\n * Database ID of the agent.\n */\n dbId?: string;\n\n /**\n * The default dialed number of the agent.\n */\n defaultDialledNumber?: string;\n};\n\n/**\n * Represents the response from getDesktopProfileById method.\n */\nexport type DesktopProfileResponse = {\n /**\n * Represents the voice options of an agent.\n */\n loginVoiceOptions: LoginOption[];\n\n /**\n * Wrap-up codes that the agents can select when they wrap up a contact. It can take one of these values: ALL - To make all wrap-up codes available. SPECIFIC - To make specific codes available.\n */\n accessWrapUpCode: string;\n\n /**\n * Idle codes that the agents can select in Agent Desktop. It can take one of these values: ALL - To make all idle codes available. SPECIFIC - To make specific codes available.\n */\n accessIdleCode: string;\n\n /**\n * Wrap-up codes list that the agents can select when they wrap up a contact.\n */\n wrapUpCodes: string[];\n\n /**\n * Idle codes list that the agents can select in Agent Desktop.\n */\n idleCodes: string[];\n\n /**\n * Dial plan enabled for the agent.\n */\n dialPlanEnabled: boolean;\n\n /**\n * Last agent routing enabled for the agent.\n */\n lastAgentRouting: boolean;\n\n /**\n * Auto wrap-up allowed.\n */\n autoWrapUp: boolean;\n\n /**\n * Auto answer allowed.\n */\n autoAnswer: boolean;\n\n /**\n * Auto wrap-up after seconds.\n */\n autoWrapAfterSeconds: number;\n\n /**\n * Agent available after outdial.\n */\n agentAvailableAfterOutdial: boolean;\n\n /**\n * Allow auto wrap-up extension.\n */\n allowAutoWrapUpExtension: boolean;\n\n /**\n * Outdial enabled for the agent.\n */\n outdialEnabled: boolean;\n\n /**\n * Outdial entry point ID of the agent.\n */\n outdialEntryPointId: string;\n\n /**\n * Outdial ANI ID of the agent.\n */\n outdialANIId: string;\n\n /**\n * Consult to queue allowed.\n */\n consultToQueue: boolean;\n\n /**\n * Address book ID of the agent.\n */\n addressBookId: string;\n\n /**\n * Viewable statistics of the agent.\n */\n viewableStatistics: {\n id: string;\n agentStats: boolean;\n accessQueueStats: string;\n contactServiceQueues: string[];\n loggedInTeamStats: boolean;\n accessTeamStats: string;\n teams: string[];\n };\n\n /**\n * Agent DN validation of the agent.\n */\n agentDNValidation: string;\n\n /**\n * Dial plans of the agent.\n */\n dialPlans: string[];\n\n /**\n * Timeout desktop inactivity custom enabled.\n */\n timeoutDesktopInactivityCustomEnabled: boolean;\n\n /**\n * Timeout desktop inactivity minutes.\n */\n timeoutDesktopInactivityMins: number;\n\n /**\n * Show user details in Microsoft enabled or not.\n */\n showUserDetailsMS: boolean;\n\n /**\n * State synchronization in Microsoft enabled or not.\n */\n stateSynchronizationMS: boolean;\n\n /**\n * Show user details in Webex enabled or not.\n */\n showUserDetailsWebex: boolean;\n\n /**\n * State synchronization in Webex enabled or not.\n */\n stateSynchronizationWebex: boolean;\n};\n\n/**\n * Response containing multimedia profile configuration for an agent\n * Defines capabilities across different communication channels\n * @private\n */\nexport type MultimediaProfileResponse = {\n /** Organization identifier */\n organizationId: string;\n /** Profile identifier */\n id: string;\n /** Version number of the profile */\n version: number;\n /** Profile name */\n name: string;\n /** Profile description */\n description: string;\n /** Maximum number of concurrent chat interactions */\n chat: number;\n /** Maximum number of concurrent email interactions */\n email: number;\n /** Maximum number of concurrent voice interactions */\n telephony: number;\n /** Maximum number of concurrent social media interactions */\n social: number;\n /** Whether the profile is active */\n active: boolean;\n /** Whether channel blending is enabled */\n blendingModeEnabled: boolean;\n /** Type of blending mode configuration */\n blendingMode: string;\n /** Whether this is the system default profile */\n systemDefault: boolean;\n /** Timestamp when profile was created */\n createdTime: number;\n /** Timestamp when profile was last updated */\n lastUpdatedTime: number;\n};\n\n/**\n * Response from subscription requests containing WebSocket connection details\n * @public\n */\nexport type SubscribeResponse = {\n /** HTTP status code of the response */\n statusCode: number;\n /** Response body containing connection details */\n body: {\n /** WebSocket URL for real-time updates */\n webSocketUrl?: string;\n /** Unique subscription identifier */\n subscriptionId?: string;\n };\n /** Optional status or error message */\n message: string | null;\n};\n\nexport type AuxCode = {\n /**\n * ID of the Auxiliary Code.\n */\n id: string;\n\n /**\n * Indicates whether the auxiliary code is active or not.\n */\n active: boolean;\n\n /**\n * Indicates whether this is the default code (true) or not (false).\n */\n defaultCode: boolean;\n\n /**\n * Indicates whether this is the system default code (true) or not (false).\n */\n isSystemCode: boolean;\n\n /**\n * A short description indicating the context of the code.\n */\n description: string;\n\n /**\n * Name of the Auxiliary Code.\n */\n name: string;\n\n /**\n * Indicates the work type associated with this code.\n */\n workTypeCode: string;\n};\n\nexport type ListAuxCodesResponse = {\n data: AuxCode[];\n meta: {\n page: number;\n pageSize: number;\n totalPages: number;\n totalRecords: number;\n };\n};\n\n/**\n * Configuration for a team in the contact center system\n * @private\n */\nexport type TeamList = {\n /** Unique identifier for the team */\n id: string;\n /** Team name */\n name: string;\n /** Type of team (e.g., 'AGENT_BASED') */\n teamType: string;\n /** Current status of the team */\n teamStatus: string;\n /** Whether the team is active */\n active: boolean;\n /** Site identifier where team is located */\n siteId: string;\n /** Name of the site */\n siteName: string;\n /** Optional multimedia profile ID for team */\n multiMediaProfileId?: string;\n /** List of user IDs belonging to team */\n userIds: string[];\n /** Whether queue rankings are enabled for team */\n rankQueuesForTeam: boolean;\n /** Ordered list of queue rankings */\n queueRankings: string[];\n /** Optional database identifier */\n dbId?: string;\n /** Optional desktop layout identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Response type for listing teams with pagination metadata\n * @private\n */\nexport type ListTeamsResponse = {\n /** Array of team configurations */\n data: TeamList[];\n /** Pagination metadata */\n meta: {\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Basic organization information in the contact center system\n * @private\n * @ignore\n */\nexport type OrgInfo = {\n /** Tenant identifier */\n tenantId: string;\n /** Organization timezone */\n timezone: string;\n};\n\n/**\n * Organization-wide feature settings and configurations\n * @private\n */\nexport type OrgSettings = {\n /** Whether WebRTC functionality is enabled */\n webRtcEnabled: boolean;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData: boolean;\n /** Whether campaign manager features are enabled */\n campaignManagerEnabled: boolean;\n};\n\n/**\n * Contact center site configuration information\n * @private\n */\nexport type SiteInfo = {\n /** Unique site identifier */\n id: string;\n /** Site name */\n name: string;\n /** Whether site is active */\n active: boolean;\n /** Multimedia profile ID for site */\n multimediaProfileId: string;\n /** Whether this is the system default site */\n systemDefault: boolean;\n};\n\n/**\n * Tenant-level configuration data and settings\n * @private\n */\nexport type TenantData = {\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins: number;\n /** Whether default DN is enforced */\n forceDefaultDn: boolean;\n /** Regex pattern for default DN validation */\n dnDefaultRegex: string;\n /** Regex pattern for other DN validation */\n dnOtherRegex: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Whether outbound dialing is enabled */\n outdialEnabled: boolean;\n /** Whether ending calls is enabled */\n endCallEnabled: boolean;\n /** Whether ending consultations is enabled */\n endConsultEnabled: boolean;\n /** Whether call variables are suppressed */\n callVariablesSuppressed: boolean;\n /** Whether desktop inactivity timeout is enabled */\n timeoutDesktopInactivityEnabled: boolean;\n /** Lost connection recovery timeout in seconds */\n lostConnectionRecoveryTimeout: number;\n};\n\n/**\n * URL mapping configuration for external integrations\n * @public\n */\nexport type URLMapping = {\n id: string;\n name: string;\n url: string;\n links: string[]; // Assuming 'links' is an array of strings, adjust if necessary\n createdTime: number; // Assuming timestamps are represented as numbers\n lastUpdatedTime: number;\n};\n\n/**\n * Constant representing idle code\n * @public\n * @ignore\n */\nexport const IDLE_CODE = 'IDLE_CODE';\n\n/**\n * Constant representing wrap up code\n * @public\n * @ignore\n */\nexport const WRAP_UP_CODE = 'WRAP_UP_CODE';\n\n/**\n * Type representing the possible auxiliary code types\n * @public\n */\nexport type AuxCodeType = typeof IDLE_CODE | typeof WRAP_UP_CODE;\n\n/**\n * Sort order configuration for queries\n * @internal\n */\ntype SortOrder = {\n /** Property to sort by */\n property: string;\n /** Sort order direction */\n order: string;\n};\n\n/**\n * Search query configuration\n * @internal\n */\ntype SearchQuery = {\n /** Properties to search in */\n properties: string;\n /** Search value */\n value: string;\n};\n\n/**\n * Parameters for querying Contact Center resources\n * @public\n */\nexport type QueryParams = {\n /** Page number for pagination */\n pageNumber?: number;\n pageSize?: number;\n attributes?: Array<string>;\n ids?: Array<string>;\n queueType?: string;\n entryPointType?: string;\n channelType?: string;\n isActive?: boolean;\n workTypeCode?: AuxCodeType;\n names?: Array<string>;\n sortOrder?: SortOrder;\n searchQuery?: SearchQuery;\n defaultCode?: boolean;\n search?: string;\n desktopProfileFilter?: boolean;\n};\n\n/**\n * Basic entity information used throughout the system\n * @public\n */\nexport type Entity = {\n /** Whether this is a system entity */\n isSystem: boolean;\n /** Entity name */\n name: string;\n /** Unique entity identifier */\n id: string;\n /** Whether this is the default entity */\n isDefault: boolean;\n};\n\n/**\n * Dial plan entity definition containing number manipulation rules\n * @public\n */\nexport type DialPlanEntity = {\n /** Unique identifier for the dial plan */\n id: string;\n /** Regular expression pattern for matching numbers */\n regularExpression: string;\n /** Prefix to add to matched numbers */\n prefix: string;\n /** Characters to strip from matched numbers */\n strippedChars: string;\n /** Name of the dial plan */\n name: string;\n};\n\n/**\n * Complete dial plan configuration for number handling\n * @public\n */\nexport type DialPlan = {\n /** Type of dial plan (e.g., 'adhocDial') */\n type: string;\n /** List of dial plan entities with transformation rules */\n dialPlanEntity: {\n /** Regular expression pattern */\n regex: string;\n /** Number prefix */\n prefix: string;\n /** Characters to strip */\n strippedChars: string;\n /** Entity name */\n name: string;\n }[];\n};\n\n/**\n * Agent wrap-up codes configuration with pagination metadata\n * @public\n */\nexport type agentWrapUpCodes = {\n /** Array of wrap-up code entities */\n data: Entity[];\n /** Pagination and navigation metadata */\n meta: {\n /** Navigation URLs for pagination */\n links: {\n /** URL for first page */\n first: string;\n /** URL for last page */\n last: string;\n /** URL for next page */\n next: string;\n /** URL for current page */\n self: string;\n };\n /** Organization identifier */\n orgid: string;\n /** Current page number */\n page: number;\n /** Number of items per page */\n pageSize: number;\n /** Total number of pages */\n totalPages: number;\n /** Total number of records */\n totalRecords: number;\n };\n};\n\n/**\n * Default wrap-up code configuration for an agent\n * @public\n */\nexport type agentDefaultWrapupCode = {\n /** Unique identifier for the wrap-up code */\n id: string;\n /** Display name of the wrap-up code */\n name: string;\n};\n\n/**\n * Wrap-up reason configuration used to classify completed interactions\n * @public\n */\nexport type WrapUpReason = {\n /** Whether this is a system-defined reason */\n isSystem: boolean;\n /** Display name of the reason */\n name: string;\n /** Unique identifier */\n id: string;\n /** Whether this is the default reason */\n isDefault: boolean;\n};\n\n/**\n * Wrap-up configuration data containing settings and available options\n * @public\n */\nexport type WrapupData = {\n /** Wrap-up configuration properties */\n wrapUpProps: {\n /** Whether automatic wrap-up is enabled */\n autoWrapup?: boolean;\n /** Time in seconds before auto wrap-up triggers */\n autoWrapupInterval?: number;\n /** Whether last agent routing is enabled */\n lastAgentRoute?: boolean;\n /** List of available wrap-up reasons */\n wrapUpReasonList: Array<WrapUpReason>;\n /** List of available wrap-up codes */\n wrapUpCodesList?: Array<string>;\n /** Access control for idle codes ('ALL' or 'SPECIFIC') */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Associated interaction identifier */\n interactionId?: string;\n /** Whether cancelling auto wrap-up is allowed */\n allowCancelAutoWrapup?: boolean;\n };\n};\n\n/**\n * Available login options for voice channel access\n * 'AGENT_DN' - Login using agent's DN\n * 'EXTENSION' - Login using extension number\n * 'BROWSER' - Login using browser-based WebRTC\n * @public\n */\nexport type LoginOption = 'AGENT_DN' | 'EXTENSION' | 'BROWSER';\n\n/**\n * Team configuration information\n * @public\n */\nexport type Team = {\n /** Unique team identifier */\n teamId: string;\n /** Team display name */\n teamName: string;\n /** Optional desktop layout configuration identifier */\n desktopLayoutId?: string;\n};\n\n/**\n * Basic queue configuration information\n * @public\n */\nexport type Queue = {\n /** Queue identifier */\n queueId: string;\n /** Queue display name */\n queueName: string;\n};\n\n/**\n * URL mappings for external system integrations\n * @public\n */\nexport type URLMappings = {\n /** Acqueon API endpoint URL */\n acqueonApiUrl: string;\n /** Acqueon console URL */\n acqueonConsoleUrl: string;\n};\n\n/**\n * Comprehensive agent profile configuration in the contact center system\n * Contains all settings and capabilities for an agent\n * @public\n */\nexport type Profile = {\n /** Microsoft Teams integration configuration */\n microsoftConfig?: {\n /** Whether to show user details in Teams */\n showUserDetailsMS?: boolean;\n /** Whether to sync agent state with Teams */\n stateSynchronizationMS?: boolean;\n };\n /** Webex integration configuration */\n webexConfig?: {\n /** Whether to show user details in Webex */\n showUserDetailsWebex?: boolean;\n /** Whether to sync agent state with Webex */\n stateSynchronizationWebex?: boolean;\n };\n /** List of teams the agent belongs to */\n teams: Team[];\n /** Agent's default dial number */\n defaultDn: string;\n dn?: string;\n /** Whether default DN is enforced at tenant level */\n forceDefaultDn: boolean;\n /** Whether default DN is enforced for this agent */\n forceDefaultDnForAgent: boolean;\n /** Regex pattern for US phone number validation */\n regexUS: RegExp | string;\n /** Regex pattern for international phone number validation */\n regexOther: RegExp | string;\n /** Unique identifier for the agent */\n agentId: string;\n /** Display name for the agent */\n agentName: string;\n /** Email address for the agent */\n agentMailId: string;\n /** Agent's profile configuration ID */\n agentProfileID: string;\n /** Dial plan configuration for number handling */\n dialPlan: DialPlan;\n /** Multimedia profile defining channel capabilities */\n multimediaProfileId: string;\n /** Skill profile defining agent competencies */\n skillProfileId: string;\n /** Site where agent is located */\n siteId: string;\n /** Enterprise-wide identifier */\n enterpriseId: string;\n /** Whether privacy shield feature is visible */\n privacyShieldVisible: boolean;\n /** Available idle codes */\n idleCodes: Entity[];\n /** List of specific idle codes */\n idleCodesList?: Array<string>;\n /** Access control for idle codes */\n idleCodesAccess?: 'ALL' | 'SPECIFIC';\n /** Available wrap-up codes */\n wrapupCodes: Entity[];\n /** Agent-specific wrap-up codes */\n agentWrapUpCodes?: agentWrapUpCodes;\n /** Default wrap-up code for agent */\n agentDefaultWrapUpCode?: agentDefaultWrapupCode;\n /** Default wrap-up code identifier */\n defaultWrapupCode: string;\n /** Wrap-up configuration data */\n wrapUpData: WrapupData;\n /** Organization identifier */\n orgId?: string;\n /** Whether outbound is enabled at tenant level */\n isOutboundEnabledForTenant: boolean;\n /** Whether outbound is enabled for this agent */\n isOutboundEnabledForAgent: boolean;\n /** Whether ad-hoc dialing is enabled */\n isAdhocDialingEnabled: boolean;\n /** Whether agent becomes available after outdial */\n isAgentAvailableAfterOutdial: boolean;\n /** Whether campaign management is enabled */\n isCampaignManagementEnabled: boolean;\n /** Outbound entry point */\n outDialEp: string;\n /** Whether ending calls is enabled */\n isEndCallEnabled: boolean;\n /** Whether ending consultations is enabled */\n isEndConsultEnabled: boolean;\n /** Optional lifecycle manager URL */\n lcmUrl?: string;\n /** Database identifier for agent */\n agentDbId: string;\n /** Optional analyzer identifier for agent */\n agentAnalyzerId?: string;\n /** Whether consult to queue is allowed */\n allowConsultToQueue: boolean;\n /** Additional campaign manager information */\n campaignManagerAdditionalInfo?: string;\n /** Whether personal statistics are enabled */\n agentPersonalStatsEnabled: boolean;\n /** Optional address book identifier */\n addressBookId?: string;\n /** Optional outbound ANI identifier */\n outdialANIId?: string;\n /** Optional analyzer user identifier */\n analyserUserId?: string;\n /** Whether call monitoring is enabled */\n isCallMonitoringEnabled?: boolean;\n /** Whether mid-call monitoring is enabled */\n isMidCallMonitoringEnabled?: boolean;\n /** Whether barge-in functionality is enabled */\n isBargeInEnabled?: boolean;\n /** Whether managed teams feature is enabled */\n isManagedTeamsEnabled?: boolean;\n /** Whether managed queues feature is enabled */\n isManagedQueuesEnabled?: boolean;\n /** Whether sending messages is enabled */\n isSendMessageEnabled?: boolean;\n /** Whether agent state changes are enabled */\n isAgentStateChangeEnabled?: boolean;\n /** Whether signing out agents is enabled */\n isSignOutAgentsEnabled?: boolean;\n /** Integration URL mappings */\n urlMappings?: URLMappings;\n /** Whether desktop inactivity timeout is enabled */\n isTimeoutDesktopInactivityEnabled: boolean;\n /** Desktop inactivity timeout in minutes */\n timeoutDesktopInactivityMins?: number;\n /** Whether analyzer features are enabled */\n isAnalyzerEnabled?: boolean;\n /** Tenant timezone */\n tenantTimezone?: string;\n /** Available voice login options */\n loginVoiceOptions?: LoginOption[];\n /** Current login device type */\n deviceType?: LoginOption;\n /** Current team identifier */\n currentTeamId?: string;\n /** Whether WebRTC is enabled */\n webRtcEnabled: boolean;\n /** Organization-wide idle codes */\n organizationIdleCodes?: Entity[];\n /** Whether recording management is enabled */\n isRecordingManagementEnabled?: boolean;\n /** Connection recovery timeout in milliseconds */\n lostConnectionRecoveryTimeout: number;\n /** Whether sensitive data masking is enabled */\n maskSensitiveData?: boolean;\n /** Whether agent is currently logged in */\n isAgentLoggedIn?: boolean;\n /** Last auxiliary code ID used for state change */\n lastStateAuxCodeId?: string;\n /** Timestamp of last state change */\n lastStateChangeTimestamp?: number;\n /** Timestamp of last idle code change */\n lastIdleCodeChangeTimestamp?: number;\n};\n\n/**\n * Contact distribution group configuration for routing logic\n * @public\n */\nexport type CallDistributionGroup = {\n /** List of agent groups in this distribution group */\n agentGroups: {\n /** Team identifier */\n teamId: string;\n }[];\n /** Distribution order priority */\n order: number;\n /** Distribution time duration in seconds */\n duration: number;\n};\n\n/**\n * Represents a single outdial ANI (Automatic Number Identification) entry\n * @public\n */\nexport type OutdialAniEntry = {\n /** Unique identifier for the ANI entry */\n id: string;\n /** Display name for the ANI entry */\n name: string;\n /** Phone number associated with this ANI entry */\n number: string;\n /** Related links for this ANI entry */\n links: string[];\n /** Timestamp when this entry was created (Unix timestamp in milliseconds) */\n createdTime: number;\n /** Timestamp when this entry was last updated (Unix timestamp in milliseconds) */\n lastUpdatedTime: number;\n};\n\n/**\n * Response structure for outdial ANI entries API call\n * @public\n */\nexport type OutdialAniEntriesResponse = OutdialAniEntry[];\n\n/**\n * Parameters for fetching outdial ANI entries\n * @public\n */\nexport type OutdialAniParams = {\n /** Outdial ANI ID from agent profile */\n outdialANI: string;\n /** Page number for pagination (optional) */\n page?: number;\n /** Number of entries per page (optional) */\n pageSize?: number;\n /** Search string to filter entries (optional) */\n search?: string;\n /** Filter expression for advanced filtering (optional) */\n filter?: string;\n /** Comma-separated list of attributes to include in response (optional) */\n attributes?: string;\n};\n"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC5B;EACAE,2BAA2B,EAAE,0BAA0B;EACvD;EACAC,wBAAwB,EAAE,uBAAuB;EACjD;EACAC,kBAAkB,EAAE,kBAAkB;EACtC;EACAC,yBAAyB,EAAE,wBAAwB;EACnD;EACAC,oBAAoB,EAAE,oBAAoB;EAC1C;EACAC,2BAA2B,EAAE,0BAA0B;EACvD;EACAC,qBAAqB,EAAE,qBAAqB;EAC5C;EACAC,mBAAmB,EAAE,mBAAmB;EACxC;EACAC,gBAAgB,EAAE,iBAAiB;EACnC;EACAC,oBAAoB,EAAE,oBAAoB;EAC1C;EACAC,gBAAgB,EAAE,gBAAgB;EAClC;EACAC,mBAAmB,EAAE,mBAAmB;EACxC;EACAC,uBAAuB,EAAE,sBAAsB;EAC/C;EACAC,mBAAmB,EAAE,mBAAmB;EACxC;EACAC,wBAAwB,EAAE,uBAAuB;EACjD;EACAC,8BAA8B,EAAE,6BAA6B;EAC7D;EACAC,0BAA0B,EAAE,0BAA0B;EAC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ACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAoBA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;;AA8BA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;;AAyJA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["GlobalTypes.ts"],"sourcesContent":["/**\n * Generic message interface used throughout the plugin\n * @template T - Type of the data payload (defaults to any)\n * @private\n * @ignore\n */\nexport type Msg<T = any> = {\n /** Message/Event type identifier */\n type: string;\n /** Organization identifier */\n orgId: string;\n /** Unique tracking identifier for the message/Event */\n trackingId: string;\n /** Message/Event payload data */\n data: T;\n};\n\n/**\n * Represents a failure message with specific error details\n * @private\n * @ignore\n */\nexport type Failure = Msg<{\n /** Agent identifier associated with the failure */\n agentId: string;\n /** Tracking identifier for the failure event */\n trackingId: string;\n /** Numeric code indicating the reason for failure */\n reasonCode: number;\n /** Organization identifier */\n orgId: string;\n /** Human-readable description of the failure reason */\n reason: string;\n}>;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["GlobalTypes.ts"],"sourcesContent":["/**\n * Generic message interface used throughout the plugin\n * @template T - Type of the data payload (defaults to any)\n * @private\n * @ignore\n */\nexport type Msg<T = any> = {\n /** Message/Event type identifier */\n type: string;\n /** Organization identifier */\n orgId: string;\n /** Unique tracking identifier for the message/Event */\n trackingId: string;\n /** Message/Event payload data */\n data: T;\n};\n\n/**\n * Represents a failure message with specific error details\n * @private\n * @ignore\n */\nexport type Failure = Msg<{\n /** Agent identifier associated with the failure */\n agentId: string;\n /** Tracking identifier for the failure event */\n trackingId: string;\n /** Numeric code indicating the reason for failure */\n reasonCode: number;\n /** Organization identifier */\n orgId: string;\n /** Human-readable description of the failure reason */\n reason: string;\n}>;\n\n/**\n * Represents task API error details in a structured format\n * @public\n */\nexport interface TaskError {\n /** Original error object for throwing */\n error: Error;\n /** Unique tracking identifier for correlation */\n trackingId: string;\n /** Detailed error message from the API */\n errorMessage: string;\n /** Type/category of the error (e.g., \"Bad Request\") */\n errorType: string;\n /** Additional error context data */\n errorData: string;\n /** Numeric reason code */\n reasonCode: number;\n}\n\n/**\n * An Error object augmented with a flexible data field for additional context.\n * Use this to attach structured data to thrown errors without ts-ignore.\n */\nexport interface AugmentedError extends Error {\n data?: Record<string, any>;\n}\n"],"mappings":""}
|