@webex/contact-center 0.0.0-next.1

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.
Files changed (177) hide show
  1. package/README.md +81 -0
  2. package/__mocks__/workerMock.js +15 -0
  3. package/babel.config.js +15 -0
  4. package/dist/cc.js +1416 -0
  5. package/dist/cc.js.map +1 -0
  6. package/dist/config.js +72 -0
  7. package/dist/config.js.map +1 -0
  8. package/dist/constants.js +58 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/index.js +142 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/logger-proxy.js +115 -0
  13. package/dist/logger-proxy.js.map +1 -0
  14. package/dist/metrics/MetricsManager.js +474 -0
  15. package/dist/metrics/MetricsManager.js.map +1 -0
  16. package/dist/metrics/behavioral-events.js +322 -0
  17. package/dist/metrics/behavioral-events.js.map +1 -0
  18. package/dist/metrics/constants.js +134 -0
  19. package/dist/metrics/constants.js.map +1 -0
  20. package/dist/services/WebCallingService.js +323 -0
  21. package/dist/services/WebCallingService.js.map +1 -0
  22. package/dist/services/agent/index.js +177 -0
  23. package/dist/services/agent/index.js.map +1 -0
  24. package/dist/services/agent/types.js +137 -0
  25. package/dist/services/agent/types.js.map +1 -0
  26. package/dist/services/config/Util.js +203 -0
  27. package/dist/services/config/Util.js.map +1 -0
  28. package/dist/services/config/constants.js +221 -0
  29. package/dist/services/config/constants.js.map +1 -0
  30. package/dist/services/config/index.js +607 -0
  31. package/dist/services/config/index.js.map +1 -0
  32. package/dist/services/config/types.js +334 -0
  33. package/dist/services/config/types.js.map +1 -0
  34. package/dist/services/constants.js +117 -0
  35. package/dist/services/constants.js.map +1 -0
  36. package/dist/services/core/Err.js +43 -0
  37. package/dist/services/core/Err.js.map +1 -0
  38. package/dist/services/core/GlobalTypes.js +6 -0
  39. package/dist/services/core/GlobalTypes.js.map +1 -0
  40. package/dist/services/core/Utils.js +126 -0
  41. package/dist/services/core/Utils.js.map +1 -0
  42. package/dist/services/core/WebexRequest.js +96 -0
  43. package/dist/services/core/WebexRequest.js.map +1 -0
  44. package/dist/services/core/aqm-reqs.js +246 -0
  45. package/dist/services/core/aqm-reqs.js.map +1 -0
  46. package/dist/services/core/constants.js +109 -0
  47. package/dist/services/core/constants.js.map +1 -0
  48. package/dist/services/core/types.js +6 -0
  49. package/dist/services/core/types.js.map +1 -0
  50. package/dist/services/core/websocket/WebSocketManager.js +187 -0
  51. package/dist/services/core/websocket/WebSocketManager.js.map +1 -0
  52. package/dist/services/core/websocket/connection-service.js +111 -0
  53. package/dist/services/core/websocket/connection-service.js.map +1 -0
  54. package/dist/services/core/websocket/keepalive.worker.js +94 -0
  55. package/dist/services/core/websocket/keepalive.worker.js.map +1 -0
  56. package/dist/services/core/websocket/types.js +6 -0
  57. package/dist/services/core/websocket/types.js.map +1 -0
  58. package/dist/services/index.js +78 -0
  59. package/dist/services/index.js.map +1 -0
  60. package/dist/services/task/AutoWrapup.js +88 -0
  61. package/dist/services/task/AutoWrapup.js.map +1 -0
  62. package/dist/services/task/TaskManager.js +369 -0
  63. package/dist/services/task/TaskManager.js.map +1 -0
  64. package/dist/services/task/constants.js +58 -0
  65. package/dist/services/task/constants.js.map +1 -0
  66. package/dist/services/task/contact.js +464 -0
  67. package/dist/services/task/contact.js.map +1 -0
  68. package/dist/services/task/dialer.js +60 -0
  69. package/dist/services/task/dialer.js.map +1 -0
  70. package/dist/services/task/index.js +1188 -0
  71. package/dist/services/task/index.js.map +1 -0
  72. package/dist/services/task/types.js +214 -0
  73. package/dist/services/task/types.js.map +1 -0
  74. package/dist/types/cc.d.ts +676 -0
  75. package/dist/types/config.d.ts +66 -0
  76. package/dist/types/constants.d.ts +45 -0
  77. package/dist/types/index.d.ts +178 -0
  78. package/dist/types/logger-proxy.d.ts +71 -0
  79. package/dist/types/metrics/MetricsManager.d.ts +223 -0
  80. package/dist/types/metrics/behavioral-events.d.ts +29 -0
  81. package/dist/types/metrics/constants.d.ts +127 -0
  82. package/dist/types/services/WebCallingService.d.ts +1 -0
  83. package/dist/types/services/agent/index.d.ts +46 -0
  84. package/dist/types/services/agent/types.d.ts +413 -0
  85. package/dist/types/services/config/Util.d.ts +19 -0
  86. package/dist/types/services/config/constants.d.ts +203 -0
  87. package/dist/types/services/config/index.d.ts +171 -0
  88. package/dist/types/services/config/types.d.ts +1113 -0
  89. package/dist/types/services/constants.d.ts +97 -0
  90. package/dist/types/services/core/Err.d.ts +119 -0
  91. package/dist/types/services/core/GlobalTypes.d.ts +33 -0
  92. package/dist/types/services/core/Utils.d.ts +36 -0
  93. package/dist/types/services/core/WebexRequest.d.ts +22 -0
  94. package/dist/types/services/core/aqm-reqs.d.ts +16 -0
  95. package/dist/types/services/core/constants.d.ts +85 -0
  96. package/dist/types/services/core/types.d.ts +47 -0
  97. package/dist/types/services/core/websocket/WebSocketManager.d.ts +34 -0
  98. package/dist/types/services/core/websocket/connection-service.d.ts +27 -0
  99. package/dist/types/services/core/websocket/keepalive.worker.d.ts +2 -0
  100. package/dist/types/services/core/websocket/types.d.ts +37 -0
  101. package/dist/types/services/index.d.ts +52 -0
  102. package/dist/types/services/task/AutoWrapup.d.ts +40 -0
  103. package/dist/types/services/task/TaskManager.d.ts +1 -0
  104. package/dist/types/services/task/constants.d.ts +46 -0
  105. package/dist/types/services/task/contact.d.ts +59 -0
  106. package/dist/types/services/task/dialer.d.ts +28 -0
  107. package/dist/types/services/task/index.d.ts +569 -0
  108. package/dist/types/services/task/types.d.ts +1041 -0
  109. package/dist/types/types.d.ts +452 -0
  110. package/dist/types/webex-config.d.ts +53 -0
  111. package/dist/types/webex.d.ts +7 -0
  112. package/dist/types.js +292 -0
  113. package/dist/types.js.map +1 -0
  114. package/dist/webex-config.js +60 -0
  115. package/dist/webex-config.js.map +1 -0
  116. package/dist/webex.js +99 -0
  117. package/dist/webex.js.map +1 -0
  118. package/jest.config.js +45 -0
  119. package/package.json +83 -0
  120. package/src/cc.ts +1618 -0
  121. package/src/config.ts +65 -0
  122. package/src/constants.ts +51 -0
  123. package/src/index.ts +220 -0
  124. package/src/logger-proxy.ts +110 -0
  125. package/src/metrics/MetricsManager.ts +512 -0
  126. package/src/metrics/behavioral-events.ts +332 -0
  127. package/src/metrics/constants.ts +135 -0
  128. package/src/services/WebCallingService.ts +351 -0
  129. package/src/services/agent/index.ts +149 -0
  130. package/src/services/agent/types.ts +440 -0
  131. package/src/services/config/Util.ts +261 -0
  132. package/src/services/config/constants.ts +249 -0
  133. package/src/services/config/index.ts +743 -0
  134. package/src/services/config/types.ts +1117 -0
  135. package/src/services/constants.ts +111 -0
  136. package/src/services/core/Err.ts +126 -0
  137. package/src/services/core/GlobalTypes.ts +34 -0
  138. package/src/services/core/Utils.ts +132 -0
  139. package/src/services/core/WebexRequest.ts +103 -0
  140. package/src/services/core/aqm-reqs.ts +272 -0
  141. package/src/services/core/constants.ts +106 -0
  142. package/src/services/core/types.ts +48 -0
  143. package/src/services/core/websocket/WebSocketManager.ts +196 -0
  144. package/src/services/core/websocket/connection-service.ts +142 -0
  145. package/src/services/core/websocket/keepalive.worker.js +88 -0
  146. package/src/services/core/websocket/types.ts +40 -0
  147. package/src/services/index.ts +71 -0
  148. package/src/services/task/AutoWrapup.ts +86 -0
  149. package/src/services/task/TaskManager.ts +420 -0
  150. package/src/services/task/constants.ts +52 -0
  151. package/src/services/task/contact.ts +429 -0
  152. package/src/services/task/dialer.ts +52 -0
  153. package/src/services/task/index.ts +1375 -0
  154. package/src/services/task/types.ts +1113 -0
  155. package/src/types.ts +639 -0
  156. package/src/webex-config.ts +54 -0
  157. package/src/webex.js +96 -0
  158. package/test/unit/spec/cc.ts +1985 -0
  159. package/test/unit/spec/metrics/MetricsManager.ts +491 -0
  160. package/test/unit/spec/metrics/behavioral-events.ts +102 -0
  161. package/test/unit/spec/services/WebCallingService.ts +416 -0
  162. package/test/unit/spec/services/agent/index.ts +65 -0
  163. package/test/unit/spec/services/config/index.ts +1035 -0
  164. package/test/unit/spec/services/core/Utils.ts +279 -0
  165. package/test/unit/spec/services/core/WebexRequest.ts +144 -0
  166. package/test/unit/spec/services/core/aqm-reqs.ts +570 -0
  167. package/test/unit/spec/services/core/websocket/WebSocketManager.ts +378 -0
  168. package/test/unit/spec/services/core/websocket/connection-service.ts +178 -0
  169. package/test/unit/spec/services/task/TaskManager.ts +1351 -0
  170. package/test/unit/spec/services/task/contact.ts +204 -0
  171. package/test/unit/spec/services/task/dialer.ts +157 -0
  172. package/test/unit/spec/services/task/index.ts +1474 -0
  173. package/tsconfig.json +6 -0
  174. package/typedoc.json +37 -0
  175. package/typedoc.md +240 -0
  176. package/umd/contact-center.min.js +3 -0
  177. package/umd/contact-center.min.js.map +1 -0
@@ -0,0 +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,GAAA;AAlCrB;AACA;AACA;AACA;;AAiCA;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,K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ENTS = exports.CC_EVENTS = exports.CC_AGENT_EVENTS = void 0;
7
+ /**
8
+ * Generic type for converting a const enum object into a union type of its values
9
+ * @internal
10
+ */
11
+
12
+ /**
13
+ * Events emitted on task objects
14
+ * @enum {string}
15
+ * @private
16
+ * @ignore
17
+ */
18
+ const CC_TASK_EVENTS = exports.CC_TASK_EVENTS = {
19
+ /** Event emitted when assigning contact to agent fails */
20
+ AGENT_CONTACT_ASSIGN_FAILED: 'AgentContactAssignFailed',
21
+ /** Event emitted when agent does not respond to contact offer */
22
+ AGENT_CONTACT_OFFER_RONA: 'AgentOfferContactRona',
23
+ /** Event emitted when contact is put on hold */
24
+ AGENT_CONTACT_HELD: 'AgentContactHeld',
25
+ /** Event emitted when putting contact on hold fails */
26
+ AGENT_CONTACT_HOLD_FAILED: 'AgentContactHoldFailed',
27
+ /** Event emitted when contact is taken off hold */
28
+ AGENT_CONTACT_UNHELD: 'AgentContactUnheld',
29
+ /** Event emitted when taking contact off hold fails */
30
+ AGENT_CONTACT_UNHOLD_FAILED: 'AgentContactUnHoldFailed',
31
+ /** Event emitted when consultation is created */
32
+ AGENT_CONSULT_CREATED: 'AgentConsultCreated',
33
+ /** Event emitted when consultation is offered */
34
+ AGENT_OFFER_CONSULT: 'AgentOfferConsult',
35
+ /** Event emitted when agent is consulting */
36
+ AGENT_CONSULTING: 'AgentConsulting',
37
+ /** Event emitted when consultation fails */
38
+ AGENT_CONSULT_FAILED: 'AgentConsultFailed',
39
+ /** Event emitted when consulting to queue (CTQ) fails */
40
+ AGENT_CTQ_FAILED: 'AgentCtqFailed',
41
+ /** Event emitted when CTQ is cancelled */
42
+ AGENT_CTQ_CANCELLED: 'AgentCtqCancelled',
43
+ /** Event emitted when CTQ cancellation fails */
44
+ AGENT_CTQ_CANCEL_FAILED: 'AgentCtqCancelFailed',
45
+ /** Event emitted when consultation ends */
46
+ AGENT_CONSULT_ENDED: 'AgentConsultEnded',
47
+ /** Event emitted when ending consultation fails */
48
+ AGENT_CONSULT_END_FAILED: 'AgentConsultEndFailed',
49
+ /** Event emitted when consultation conference ends */
50
+ AGENT_CONSULT_CONFERENCE_ENDED: 'AgentConsultConferenceEnded',
51
+ /** Event emitted when contact is blind transferred */
52
+ AGENT_BLIND_TRANSFERRED: 'AgentBlindTransferred',
53
+ /** Event emitted when blind transfer fails */
54
+ AGENT_BLIND_TRANSFER_FAILED: 'AgentBlindTransferFailed',
55
+ /** Event emitted when contact is transferred to virtual team */
56
+ AGENT_VTEAM_TRANSFERRED: 'AgentVteamTransferred',
57
+ /** Event emitted when virtual team transfer fails */
58
+ AGENT_VTEAM_TRANSFER_FAILED: 'AgentVteamTransferFailed',
59
+ /** Event emitted when consultation transfer is in progress */
60
+ AGENT_CONSULT_TRANSFERRING: 'AgentConsultTransferring',
61
+ /** Event emitted when consultation transfer completes */
62
+ AGENT_CONSULT_TRANSFERRED: 'AgentConsultTransferred',
63
+ /** Event emitted when consultation transfer fails */
64
+ AGENT_CONSULT_TRANSFER_FAILED: 'AgentConsultTransferFailed',
65
+ /** Event emitted when contact recording is paused */
66
+ CONTACT_RECORDING_PAUSED: 'ContactRecordingPaused',
67
+ /** Event emitted when pausing contact recording fails */
68
+ CONTACT_RECORDING_PAUSE_FAILED: 'ContactRecordingPauseFailed',
69
+ /** Event emitted when contact recording is resumed */
70
+ CONTACT_RECORDING_RESUMED: 'ContactRecordingResumed',
71
+ /** Event emitted when resuming contact recording fails */
72
+ CONTACT_RECORDING_RESUME_FAILED: 'ContactRecordingResumeFailed',
73
+ /** Event emitted when contact ends */
74
+ CONTACT_ENDED: 'ContactEnded',
75
+ /** Event emitted when ending contact fails */
76
+ AGENT_CONTACT_END_FAILED: 'AgentContactEndFailed',
77
+ /** Event emitted when agent enters wrap-up state */
78
+ AGENT_WRAPUP: 'AgentWrapup',
79
+ /** Event emitted when agent completes wrap-up */
80
+ AGENT_WRAPPEDUP: 'AgentWrappedUp',
81
+ /** Event emitted when wrap-up fails */
82
+ AGENT_WRAPUP_FAILED: 'AgentWrapupFailed',
83
+ /** Event emitted when outbound call fails */
84
+ AGENT_OUTBOUND_FAILED: 'AgentOutboundFailed',
85
+ /** Event emitted for general agent contact events */
86
+ AGENT_CONTACT: 'AgentContact',
87
+ /** Event emitted when contact is offered to agent */
88
+ AGENT_OFFER_CONTACT: 'AgentOfferContact',
89
+ /** Event emitted when contact is assigned to agent */
90
+ AGENT_CONTACT_ASSIGNED: 'AgentContactAssigned',
91
+ /** Event emitted when contact is unassigned from agent */
92
+ AGENT_CONTACT_UNASSIGNED: 'AgentContactUnassigned',
93
+ /** Event emitted when inviting agent fails */
94
+ AGENT_INVITE_FAILED: 'AgentInviteFailed'
95
+ };
96
+
97
+ /**
98
+ * Events emitted on Contact Center agent operations
99
+ * @enum {string}
100
+ * @private
101
+ * @ignore
102
+ */
103
+ const CC_AGENT_EVENTS = exports.CC_AGENT_EVENTS = {
104
+ /** Welcome event when agent connects to websocket/backend */
105
+ WELCOME: 'Welcome',
106
+ /** Event emitted when agent re-login is successful */
107
+ AGENT_RELOGIN_SUCCESS: 'AgentReloginSuccess',
108
+ /** Event emitted when agent re-login fails */
109
+ AGENT_RELOGIN_FAILED: 'AgentReloginFailed',
110
+ /** Event emitted when agent DN registration completes */
111
+ AGENT_DN_REGISTERED: 'AgentDNRegistered',
112
+ /** Event emitted when agent initiates logout */
113
+ AGENT_LOGOUT: 'Logout',
114
+ /** Event emitted when agent logout is successful */
115
+ AGENT_LOGOUT_SUCCESS: 'AgentLogoutSuccess',
116
+ /** Event emitted when agent logout fails */
117
+ AGENT_LOGOUT_FAILED: 'AgentLogoutFailed',
118
+ /** Event emitted when agent initiates station login */
119
+ AGENT_STATION_LOGIN: 'StationLogin',
120
+ /** Event emitted when agent station login is successful */
121
+ AGENT_STATION_LOGIN_SUCCESS: 'AgentStationLoginSuccess',
122
+ /** Event emitted when agent station login fails */
123
+ AGENT_STATION_LOGIN_FAILED: 'AgentStationLoginFailed',
124
+ /** Event emitted when agent's state changes */
125
+ AGENT_STATE_CHANGE: 'AgentStateChange',
126
+ /** Event emitted when multiple logins detected for same agent */
127
+ AGENT_MULTI_LOGIN: 'AGENT_MULTI_LOGIN',
128
+ /** Event emitted when agent state change is successful */
129
+ AGENT_STATE_CHANGE_SUCCESS: 'AgentStateChangeSuccess',
130
+ /** Event emitted when agent state change fails */
131
+ AGENT_STATE_CHANGE_FAILED: 'AgentStateChangeFailed',
132
+ /** Event emitted when requesting buddy agents list */
133
+ AGENT_BUDDY_AGENTS: 'BuddyAgents',
134
+ /** Event emitted when buddy agents list is successfully retrieved */
135
+ AGENT_BUDDY_AGENTS_SUCCESS: 'BuddyAgents',
136
+ /** Event emitted when retrieving buddy agents list fails */
137
+ AGENT_BUDDY_AGENTS_RETRIEVE_FAILED: 'BuddyAgentsRetrieveFailed',
138
+ /** Event emitted when contact is reserved for agent */
139
+ AGENT_CONTACT_RESERVED: 'AgentContactReserved'
140
+ };
141
+
142
+ /**
143
+ * Combined Contact Center events including both agent and task events
144
+ * @enum {string}
145
+ * @public
146
+ */
147
+ const CC_EVENTS = exports.CC_EVENTS = {
148
+ ...CC_AGENT_EVENTS,
149
+ ...CC_TASK_EVENTS
150
+ };
151
+
152
+ /**
153
+ * Event data received when agent connects to the system
154
+ * @public
155
+ */
156
+
157
+ /**
158
+ * Response type for welcome events which can be either success or error
159
+ * @public
160
+ */
161
+
162
+ /**
163
+ * Type representing the union of all possible Contact Center events
164
+ * @public
165
+ */
166
+
167
+ /**
168
+ * WebSocket event structure for Contact Center events
169
+ * @public
170
+ */
171
+
172
+ /**
173
+ * Represents the response from getUserUsingCI method.
174
+ */
175
+
176
+ /**
177
+ * Represents the response from getDesktopProfileById method.
178
+ */
179
+
180
+ /**
181
+ * Response containing multimedia profile configuration for an agent
182
+ * Defines capabilities across different communication channels
183
+ * @private
184
+ */
185
+
186
+ /**
187
+ * Response from subscription requests containing WebSocket connection details
188
+ * @public
189
+ */
190
+
191
+ /**
192
+ * Configuration for a team in the contact center system
193
+ * @private
194
+ */
195
+
196
+ /**
197
+ * Response type for listing teams with pagination metadata
198
+ * @private
199
+ */
200
+
201
+ /**
202
+ * Basic organization information in the contact center system
203
+ * @private
204
+ * @ignore
205
+ */
206
+
207
+ /**
208
+ * Organization-wide feature settings and configurations
209
+ * @private
210
+ */
211
+
212
+ /**
213
+ * Contact center site configuration information
214
+ * @private
215
+ */
216
+
217
+ /**
218
+ * Tenant-level configuration data and settings
219
+ * @private
220
+ */
221
+
222
+ /**
223
+ * URL mapping configuration for external integrations
224
+ * @public
225
+ */
226
+
227
+ /**
228
+ * Constant representing idle code
229
+ * @public
230
+ * @ignore
231
+ */
232
+ const IDLE_CODE = exports.IDLE_CODE = 'IDLE_CODE';
233
+
234
+ /**
235
+ * Constant representing wrap up code
236
+ * @public
237
+ * @ignore
238
+ */
239
+ const WRAP_UP_CODE = exports.WRAP_UP_CODE = 'WRAP_UP_CODE';
240
+
241
+ /**
242
+ * Type representing the possible auxiliary code types
243
+ * @public
244
+ */
245
+
246
+ /**
247
+ * Sort order configuration for queries
248
+ * @internal
249
+ */
250
+
251
+ /**
252
+ * Search query configuration
253
+ * @internal
254
+ */
255
+
256
+ /**
257
+ * Parameters for querying Contact Center resources
258
+ * @public
259
+ */
260
+
261
+ /**
262
+ * Basic entity information used throughout the system
263
+ * @public
264
+ */
265
+
266
+ /**
267
+ * Dial plan entity definition containing number manipulation rules
268
+ * @public
269
+ */
270
+
271
+ /**
272
+ * Complete dial plan configuration for number handling
273
+ * @public
274
+ */
275
+
276
+ /**
277
+ * Agent wrap-up codes configuration with pagination metadata
278
+ * @public
279
+ */
280
+
281
+ /**
282
+ * Default wrap-up code configuration for an agent
283
+ * @public
284
+ */
285
+
286
+ /**
287
+ * Wrap-up reason configuration used to classify completed interactions
288
+ * @public
289
+ */
290
+
291
+ /**
292
+ * Wrap-up configuration data containing settings and available options
293
+ * @public
294
+ */
295
+
296
+ /**
297
+ * Available login options for voice channel access
298
+ * 'AGENT_DN' - Login using agent's DN
299
+ * 'EXTENSION' - Login using extension number
300
+ * 'BROWSER' - Login using browser-based WebRTC
301
+ * @public
302
+ */
303
+
304
+ /**
305
+ * Team configuration information
306
+ * @public
307
+ */
308
+
309
+ /**
310
+ * Basic queue configuration information
311
+ * @public
312
+ */
313
+
314
+ /**
315
+ * URL mappings for external system integrations
316
+ * @public
317
+ */
318
+
319
+ /**
320
+ * Comprehensive agent profile configuration in the contact center system
321
+ * Contains all settings and capabilities for an agent
322
+ * @public
323
+ */
324
+
325
+ /**
326
+ * Contact distribution group configuration for routing logic
327
+ * @public
328
+ */
329
+
330
+ /**
331
+ * Comprehensive configuration for a contact service queue
332
+ * @public
333
+ */
334
+ //# sourceMappingURL=types.js.map
@@ -0,0 +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,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;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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"}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.WEB_RTC_PREFIX = exports.WEBSOCKET_EVENT_TIMEOUT = exports.WCC_CALLING_RTMS_DOMAIN = exports.WCC_API_GATEWAY = exports.SUBSCRIBE_API = exports.STATE_CHANGE_API = exports.POST_AUTH = exports.METHODS = exports.LOGIN_API = exports.DEREGISTER_WEBCALLING_LINE_MSG = exports.DEFAULT_RTMS_DOMAIN = exports.AGENT = void 0;
7
+ /**
8
+ * Post-authentication event name.
9
+ * @type {string}
10
+ * @public
11
+ * @example
12
+ * if (event === POST_AUTH) { ... }
13
+ * @ignore
14
+ */
15
+ const POST_AUTH = exports.POST_AUTH = 'postauth';
16
+
17
+ /**
18
+ * API gateway identifier for Webex Contact Center.
19
+ * @type {string}
20
+ * @public
21
+ * @ignore
22
+ */
23
+ const WCC_API_GATEWAY = exports.WCC_API_GATEWAY = 'wcc-api-gateway';
24
+
25
+ /**
26
+ * Domain identifier for WCC Calling RTMS.
27
+ * @type {string}
28
+ * @public
29
+ * @ignore
30
+ */
31
+ const WCC_CALLING_RTMS_DOMAIN = exports.WCC_CALLING_RTMS_DOMAIN = 'wcc-calling-rtms-domain';
32
+
33
+ /**
34
+ * Default RTMS domain for production use.
35
+ * @type {string}
36
+ * @public
37
+ * @ignore
38
+ */
39
+ const DEFAULT_RTMS_DOMAIN = exports.DEFAULT_RTMS_DOMAIN = 'rtw.prod-us1.rtmsprod.net';
40
+
41
+ /**
42
+ * Timeout in milliseconds for WebSocket events.
43
+ * @type {number}
44
+ * @public
45
+ * @example
46
+ * setTimeout(() => { ... }, WEBSOCKET_EVENT_TIMEOUT);
47
+ * @ignore
48
+ */
49
+ const WEBSOCKET_EVENT_TIMEOUT = exports.WEBSOCKET_EVENT_TIMEOUT = 20000;
50
+
51
+ /**
52
+ * Agent role identifier.
53
+ * @type {string}
54
+ * @public
55
+ * @ignore
56
+ */
57
+ const AGENT = exports.AGENT = 'agent';
58
+
59
+ // CC GATEWAY API URL PATHS
60
+ /**
61
+ * API path for notification subscription.
62
+ * @type {string}
63
+ * @public
64
+ * @ignore
65
+ */
66
+ const SUBSCRIBE_API = exports.SUBSCRIBE_API = 'v1/notification/subscribe';
67
+
68
+ /**
69
+ * API path for agent login.
70
+ * @type {string}
71
+ * @public
72
+ * @ignore
73
+ */
74
+ const LOGIN_API = exports.LOGIN_API = 'v1/agents/login';
75
+
76
+ /**
77
+ * Prefix for WebRTC-related API endpoints.
78
+ * @type {string}
79
+ * @public
80
+ * @ignore
81
+ */
82
+ const WEB_RTC_PREFIX = exports.WEB_RTC_PREFIX = 'webrtc-';
83
+
84
+ /**
85
+ * API path for agent session state changes.
86
+ * @type {string}
87
+ * @public
88
+ * @ignore
89
+ */
90
+ const STATE_CHANGE_API = exports.STATE_CHANGE_API = 'v1/agents/session/state';
91
+
92
+ /**
93
+ * Message for deregistering WebCalling line and cleaning up resources.
94
+ * @type {string}
95
+ * @public
96
+ * @ignore
97
+ */
98
+ const DEREGISTER_WEBCALLING_LINE_MSG = exports.DEREGISTER_WEBCALLING_LINE_MSG = 'Deregistering WebCalling line and cleaning up resources';
99
+
100
+ // WebCallingService method names
101
+ const METHODS = exports.METHODS = {
102
+ SET_LOGIN_OPTION: 'setLoginOption',
103
+ HANDLE_MEDIA_EVENT: 'handleMediaEvent',
104
+ HANDLE_DISCONNECT_EVENT: 'handleDisconnectEvent',
105
+ REGISTER_CALL_LISTENERS: 'registerCallListeners',
106
+ CLEAN_UP_CALL: 'cleanUpCall',
107
+ GET_RTMS_DOMAIN: 'getRTMSDomain',
108
+ REGISTER_WEB_CALLING_LINE: 'registerWebCallingLine',
109
+ DEREGISTER_WEB_CALLING_LINE: 'deregisterWebCallingLine',
110
+ ANSWER_CALL: 'answerCall',
111
+ MUTE_UNMUTE_CALL: 'muteUnmuteCall',
112
+ IS_CALL_MUTED: 'isCallMuted',
113
+ DECLINE_CALL: 'declineCall',
114
+ MAP_CALL_TO_TASK: 'mapCallToTask',
115
+ GET_TASK_ID_FOR_CALL: 'getTaskIdForCall'
116
+ };
117
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["POST_AUTH","exports","WCC_API_GATEWAY","WCC_CALLING_RTMS_DOMAIN","DEFAULT_RTMS_DOMAIN","WEBSOCKET_EVENT_TIMEOUT","AGENT","SUBSCRIBE_API","LOGIN_API","WEB_RTC_PREFIX","STATE_CHANGE_API","DEREGISTER_WEBCALLING_LINE_MSG","METHODS","SET_LOGIN_OPTION","HANDLE_MEDIA_EVENT","HANDLE_DISCONNECT_EVENT","REGISTER_CALL_LISTENERS","CLEAN_UP_CALL","GET_RTMS_DOMAIN","REGISTER_WEB_CALLING_LINE","DEREGISTER_WEB_CALLING_LINE","ANSWER_CALL","MUTE_UNMUTE_CALL","IS_CALL_MUTED","DECLINE_CALL","MAP_CALL_TO_TASK","GET_TASK_ID_FOR_CALL"],"sources":["constants.ts"],"sourcesContent":["/**\n * Post-authentication event name.\n * @type {string}\n * @public\n * @example\n * if (event === POST_AUTH) { ... }\n * @ignore\n */\nexport const POST_AUTH = 'postauth';\n\n/**\n * API gateway identifier for Webex Contact Center.\n * @type {string}\n * @public\n * @ignore\n */\nexport const WCC_API_GATEWAY = 'wcc-api-gateway';\n\n/**\n * Domain identifier for WCC Calling RTMS.\n * @type {string}\n * @public\n * @ignore\n */\nexport const WCC_CALLING_RTMS_DOMAIN = 'wcc-calling-rtms-domain';\n\n/**\n * Default RTMS domain for production use.\n * @type {string}\n * @public\n * @ignore\n */\nexport const DEFAULT_RTMS_DOMAIN = 'rtw.prod-us1.rtmsprod.net';\n\n/**\n * Timeout in milliseconds for WebSocket events.\n * @type {number}\n * @public\n * @example\n * setTimeout(() => { ... }, WEBSOCKET_EVENT_TIMEOUT);\n * @ignore\n */\nexport const WEBSOCKET_EVENT_TIMEOUT = 20000;\n\n/**\n * Agent role identifier.\n * @type {string}\n * @public\n * @ignore\n */\nexport const AGENT = 'agent';\n\n// CC GATEWAY API URL PATHS\n/**\n * API path for notification subscription.\n * @type {string}\n * @public\n * @ignore\n */\nexport const SUBSCRIBE_API = 'v1/notification/subscribe';\n\n/**\n * API path for agent login.\n * @type {string}\n * @public\n * @ignore\n */\nexport const LOGIN_API = 'v1/agents/login';\n\n/**\n * Prefix for WebRTC-related API endpoints.\n * @type {string}\n * @public\n * @ignore\n */\nexport const WEB_RTC_PREFIX = 'webrtc-';\n\n/**\n * API path for agent session state changes.\n * @type {string}\n * @public\n * @ignore\n */\nexport const STATE_CHANGE_API = 'v1/agents/session/state';\n\n/**\n * Message for deregistering WebCalling line and cleaning up resources.\n * @type {string}\n * @public\n * @ignore\n */\nexport const DEREGISTER_WEBCALLING_LINE_MSG =\n 'Deregistering WebCalling line and cleaning up resources';\n\n// WebCallingService method names\nexport const METHODS = {\n SET_LOGIN_OPTION: 'setLoginOption',\n HANDLE_MEDIA_EVENT: 'handleMediaEvent',\n HANDLE_DISCONNECT_EVENT: 'handleDisconnectEvent',\n REGISTER_CALL_LISTENERS: 'registerCallListeners',\n CLEAN_UP_CALL: 'cleanUpCall',\n GET_RTMS_DOMAIN: 'getRTMSDomain',\n REGISTER_WEB_CALLING_LINE: 'registerWebCallingLine',\n DEREGISTER_WEB_CALLING_LINE: 'deregisterWebCallingLine',\n ANSWER_CALL: 'answerCall',\n MUTE_UNMUTE_CALL: 'muteUnmuteCall',\n IS_CALL_MUTED: 'isCallMuted',\n DECLINE_CALL: 'declineCall',\n MAP_CALL_TO_TASK: 'mapCallToTask',\n GET_TASK_ID_FOR_CALL: 'getTaskIdForCall',\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,UAAU;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,eAAe,GAAAD,OAAA,CAAAC,eAAA,GAAG,iBAAiB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAAF,OAAA,CAAAE,uBAAA,GAAG,yBAAyB;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,mBAAmB,GAAAH,OAAA,CAAAG,mBAAA,GAAG,2BAA2B;;AAE9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAAJ,OAAA,CAAAI,uBAAA,GAAG,KAAK;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,KAAK,GAAAL,OAAA,CAAAK,KAAA,GAAG,OAAO;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,aAAa,GAAAN,OAAA,CAAAM,aAAA,GAAG,2BAA2B;;AAExD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,SAAS,GAAAP,OAAA,CAAAO,SAAA,GAAG,iBAAiB;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,cAAc,GAAAR,OAAA,CAAAQ,cAAA,GAAG,SAAS;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,gBAAgB,GAAAT,OAAA,CAAAS,gBAAA,GAAG,yBAAyB;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,8BAA8B,GAAAV,OAAA,CAAAU,8BAAA,GACzC,yDAAyD;;AAE3D;AACO,MAAMC,OAAO,GAAAX,OAAA,CAAAW,OAAA,GAAG;EAC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