o2g-node-sdk 2.4.0 → 2.5.0
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/README.md +11 -7
- package/dist/o2g-node-sdk.js +2165 -4487
- package/dist/o2g-node-sdk.js.map +1 -1
- package/dist/types/ErrorInfo.d.ts +88 -0
- package/dist/types/ErrorInfo.d.ts.map +1 -0
- package/dist/types/host.d.ts +18 -0
- package/dist/types/host.d.ts.map +1 -0
- package/dist/types/internal/access-mode.d.ts +2 -0
- package/dist/types/internal/access-mode.d.ts.map +1 -0
- package/dist/types/internal/events/chunk-eventing.d.ts +2 -0
- package/dist/types/internal/events/chunk-eventing.d.ts.map +1 -0
- package/dist/types/internal/events/event-dispatcher.d.ts +2 -0
- package/dist/types/internal/events/event-dispatcher.d.ts.map +1 -0
- package/dist/types/internal/events/event-packages.d.ts +2 -0
- package/dist/types/internal/events/event-packages.d.ts.map +1 -0
- package/dist/types/internal/o2g-application.d.ts +2 -0
- package/dist/types/internal/o2g-application.d.ts.map +1 -0
- package/dist/types/internal/rest/analytics-rest.d.ts +2 -0
- package/dist/types/internal/rest/analytics-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/authentication-rest.d.ts +2 -0
- package/dist/types/internal/rest/authentication-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccAgent-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccAgent-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccMngt-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccMngt-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccPilot-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccPilot-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccRealtime-rest.d.ts +2 -0
- package/dist/types/internal/rest/ccRealtime-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/ccStatistics-rest.d.ts +45 -0
- package/dist/types/internal/rest/ccStatistics-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/comlog-rest.d.ts +2 -0
- package/dist/types/internal/rest/comlog-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/directory-rest.d.ts +2 -0
- package/dist/types/internal/rest/directory-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/eventSummary-rest.d.ts +2 -0
- package/dist/types/internal/rest/eventSummary-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/maint-rest.d.ts +2 -0
- package/dist/types/internal/rest/maint-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/messaging-rest.d.ts +2 -0
- package/dist/types/internal/rest/messaging-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/o2g-rest.d.ts +2 -0
- package/dist/types/internal/rest/o2g-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/pbx-mngt-rest.d.ts +2 -0
- package/dist/types/internal/rest/pbx-mngt-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/phone-set-prog-rest.d.ts +2 -0
- package/dist/types/internal/rest/phone-set-prog-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/rest-service.d.ts +2 -0
- package/dist/types/internal/rest/rest-service.d.ts.map +1 -0
- package/dist/types/internal/rest/routing-rest.d.ts +2 -0
- package/dist/types/internal/rest/routing-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/rsi-rest.d.ts +2 -0
- package/dist/types/internal/rest/rsi-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/sessions-rest.d.ts +2 -0
- package/dist/types/internal/rest/sessions-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/subscriptions-rest.d.ts +2 -0
- package/dist/types/internal/rest/subscriptions-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/telephony-rest.d.ts +2 -0
- package/dist/types/internal/rest/telephony-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/users-mngt-rest.d.ts +2 -0
- package/dist/types/internal/rest/users-mngt-rest.d.ts.map +1 -0
- package/dist/types/internal/rest/users-rest.d.ts +2 -0
- package/dist/types/internal/rest/users-rest.d.ts.map +1 -0
- package/dist/types/internal/service-end-point.d.ts +2 -0
- package/dist/types/internal/service-end-point.d.ts.map +1 -0
- package/dist/types/internal/service-factory.d.ts +2 -0
- package/dist/types/internal/service-factory.d.ts.map +1 -0
- package/dist/types/internal/session.d.ts +2 -0
- package/dist/types/internal/session.d.ts.map +1 -0
- package/dist/types/internal/types/analytics/analytics-types.d.ts +2 -0
- package/dist/types/internal/types/analytics/analytics-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts +2 -0
- package/dist/types/internal/types/cc-agent/cc-agent-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts +2 -0
- package/dist/types/internal/types/cc-mngt/cc-mntg-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts +2 -0
- package/dist/types/internal/types/cc-pilot/cc-pilot-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts +2 -0
- package/dist/types/internal/types/cc-rt/cc-rt-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/abstract-filter.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/abstract-filter.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/ag-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/ag-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/cc-stat-types.d.ts +57 -0
- package/dist/types/internal/types/cc-stats/cc-stat-types.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/context-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/context-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/on-stats-progress.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/on-stats-progress.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/pil-aband-calls-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/pil-aband-calls-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/pil-filter-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/pil-filter-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/requester-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/requester-impl.d.ts.map +1 -0
- package/dist/types/internal/types/cc-stats/scheduled-rep-impl.d.ts +2 -0
- package/dist/types/internal/types/cc-stats/scheduled-rep-impl.d.ts.map +1 -0
- package/dist/types/internal/types/comlog/comlog-types.d.ts +2 -0
- package/dist/types/internal/types/comlog/comlog-types.d.ts.map +1 -0
- package/dist/types/internal/types/common/common-types.d.ts +2 -0
- package/dist/types/internal/types/common/common-types.d.ts.map +1 -0
- package/dist/types/internal/types/directory/directory-types.d.ts +2 -0
- package/dist/types/internal/types/directory/directory-types.d.ts.map +1 -0
- package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts +14 -0
- package/dist/types/internal/types/eventsummary/eventsummary-types.d.ts.map +1 -0
- package/dist/types/internal/types/maint/maint-types.d.ts +2 -0
- package/dist/types/internal/types/maint/maint-types.d.ts.map +1 -0
- package/dist/types/internal/types/messaging/messaging-types.d.ts +2 -0
- package/dist/types/internal/types/messaging/messaging-types.d.ts.map +1 -0
- package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts +2 -0
- package/dist/types/internal/types/pbxmngt/pbxmngt-types.d.ts.map +1 -0
- package/dist/types/internal/types/phoneset/phoneset-types.d.ts +2 -0
- package/dist/types/internal/types/phoneset/phoneset-types.d.ts.map +1 -0
- package/dist/types/internal/types/routing/routing-types.d.ts +2 -0
- package/dist/types/internal/types/routing/routing-types.d.ts.map +1 -0
- package/dist/types/internal/types/rsi/rsi-types.d.ts +2 -0
- package/dist/types/internal/types/rsi/rsi-types.d.ts.map +1 -0
- package/dist/types/internal/types/telephony/telephony-types.d.ts +4 -0
- package/dist/types/internal/types/telephony/telephony-types.d.ts.map +1 -0
- package/dist/types/internal/types/users/users-types.d.ts +2 -0
- package/dist/types/internal/types/users/users-types.d.ts.map +1 -0
- package/dist/types/internal/util/IHttpClient.d.ts +2 -0
- package/dist/types/internal/util/IHttpClient.d.ts.map +1 -0
- package/dist/types/internal/util/assert.d.ts +2 -0
- package/dist/types/internal/util/assert.d.ts.map +1 -0
- package/dist/types/internal/util/file-utils.d.ts +2 -0
- package/dist/types/internal/util/file-utils.d.ts.map +1 -0
- package/dist/types/internal/util/format-util.d.ts +2 -0
- package/dist/types/internal/util/format-util.d.ts.map +1 -0
- package/dist/types/internal/util/hexa-string.d.ts +2 -0
- package/dist/types/internal/util/hexa-string.d.ts.map +1 -0
- package/dist/types/internal/util/http-client.d.ts +2 -0
- package/dist/types/internal/util/http-client.d.ts.map +1 -0
- package/dist/types/internal/util/http-content.d.ts +2 -0
- package/dist/types/internal/util/http-content.d.ts.map +1 -0
- package/dist/types/internal/util/http-response.d.ts +2 -0
- package/dist/types/internal/util/http-response.d.ts.map +1 -0
- package/dist/types/internal/util/injection-container.d.ts +5 -0
- package/dist/types/internal/util/injection-container.d.ts.map +1 -0
- package/dist/types/internal/util/logger.d.ts +40 -0
- package/dist/types/internal/util/logger.d.ts.map +1 -0
- package/dist/types/internal/util/util-uri.d.ts +2 -0
- package/dist/types/internal/util/util-uri.d.ts.map +1 -0
- package/dist/types/o2g-analytics.d.ts +61 -0
- package/dist/types/o2g-analytics.d.ts.map +1 -0
- package/dist/types/o2g-cc-agent.d.ts +376 -0
- package/dist/types/o2g-cc-agent.d.ts.map +1 -0
- package/dist/types/o2g-cc-mngt.d.ts +213 -0
- package/dist/types/o2g-cc-mngt.d.ts.map +1 -0
- package/dist/types/o2g-cc-pilot.d.ts +71 -0
- package/dist/types/o2g-cc-pilot.d.ts.map +1 -0
- package/dist/types/o2g-cc-rt.d.ts +163 -0
- package/dist/types/o2g-cc-rt.d.ts.map +1 -0
- package/dist/types/o2g-cc-stat.d.ts +454 -0
- package/dist/types/o2g-cc-stat.d.ts.map +1 -0
- package/dist/types/o2g-comlog.d.ts +245 -0
- package/dist/types/o2g-comlog.d.ts.map +1 -0
- package/dist/types/o2g-directory.d.ts +109 -0
- package/dist/types/o2g-directory.d.ts.map +1 -0
- package/dist/types/o2g-eventSummary.d.ts +44 -0
- package/dist/types/o2g-eventSummary.d.ts.map +1 -0
- package/dist/types/o2g-maint.d.ts +92 -0
- package/dist/types/o2g-maint.d.ts.map +1 -0
- package/dist/types/o2g-messaging.d.ts +137 -0
- package/dist/types/o2g-messaging.d.ts.map +1 -0
- package/dist/types/o2g-node-sdk.d.ts +421 -0
- package/dist/types/o2g-node-sdk.d.ts.map +1 -0
- package/dist/types/o2g-pbx-mngt.d.ts +244 -0
- package/dist/types/o2g-pbx-mngt.d.ts.map +1 -0
- package/dist/types/o2g-phone-set-prog.d.ts +269 -0
- package/dist/types/o2g-phone-set-prog.d.ts.map +1 -0
- package/dist/types/o2g-routing.d.ts +313 -0
- package/dist/types/o2g-routing.d.ts.map +1 -0
- package/dist/types/o2g-rsi.d.ts +155 -0
- package/dist/types/o2g-rsi.d.ts.map +1 -0
- package/dist/types/o2g-telephony.d.ts +895 -0
- package/dist/types/o2g-telephony.d.ts.map +1 -0
- package/dist/types/o2g-users-mngt.d.ts +83 -0
- package/dist/types/o2g-users-mngt.d.ts.map +1 -0
- package/dist/types/o2g-users.d.ts +127 -0
- package/dist/types/o2g-users.d.ts.map +1 -0
- package/dist/types/subscription.d.ts +379 -0
- package/dist/types/subscription.d.ts.map +1 -0
- package/dist/types/supervised-account.d.ts +40 -0
- package/dist/types/supervised-account.d.ts.map +1 -0
- package/dist/types/types/analytics/call-type.d.ts +25 -0
- package/dist/types/types/analytics/call-type.d.ts.map +1 -0
- package/dist/types/types/analytics/charging-file.d.ts +13 -0
- package/dist/types/types/analytics/charging-file.d.ts.map +1 -0
- package/dist/types/types/analytics/charging-result.d.ts +50 -0
- package/dist/types/types/analytics/charging-result.d.ts.map +1 -0
- package/dist/types/types/analytics/charging.d.ts +69 -0
- package/dist/types/types/analytics/charging.d.ts.map +1 -0
- package/dist/types/types/analytics/incident.d.ts +41 -0
- package/dist/types/types/analytics/incident.d.ts.map +1 -0
- package/dist/types/types/analytics/tel-facility.d.ts +45 -0
- package/dist/types/types/analytics/tel-facility.d.ts.map +1 -0
- package/dist/types/types/cc-agent/agent-groups.d.ts +11 -0
- package/dist/types/types/cc-agent/agent-groups.d.ts.map +1 -0
- package/dist/types/types/cc-agent/agent-skill-set.d.ts +73 -0
- package/dist/types/types/cc-agent/agent-skill-set.d.ts.map +1 -0
- package/dist/types/types/cc-agent/agent-skill.d.ts +59 -0
- package/dist/types/types/cc-agent/agent-skill.d.ts.map +1 -0
- package/dist/types/types/cc-agent/cc-agent-events.d.ts +44 -0
- package/dist/types/types/cc-agent/cc-agent-events.d.ts.map +1 -0
- package/dist/types/types/cc-agent/intrusion-mode.d.ts +25 -0
- package/dist/types/types/cc-agent/intrusion-mode.d.ts.map +1 -0
- package/dist/types/types/cc-agent/operator-config.d.ts +72 -0
- package/dist/types/types/cc-agent/operator-config.d.ts.map +1 -0
- package/dist/types/types/cc-agent/operator-state.d.ts +100 -0
- package/dist/types/types/cc-agent/operator-state.d.ts.map +1 -0
- package/dist/types/types/cc-agent/operator-type.d.ts +17 -0
- package/dist/types/types/cc-agent/operator-type.d.ts.map +1 -0
- package/dist/types/types/cc-agent/withdraw-reason.d.ts +23 -0
- package/dist/types/types/cc-agent/withdraw-reason.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts +8 -0
- package/dist/types/types/cc-mngt/calendar/abstract-calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/calendar.d.ts +22 -0
- package/dist/types/types/cc-mngt/calendar/calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts +31 -0
- package/dist/types/types/cc-mngt/calendar/exception-calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts +31 -0
- package/dist/types/types/cc-mngt/calendar/normal-calendar.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts +18 -0
- package/dist/types/types/cc-mngt/calendar/pilot-operating-Mode.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/calendar/transition.d.ts +65 -0
- package/dist/types/types/cc-mngt/calendar/transition.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/pilot-rule-set.d.ts +33 -0
- package/dist/types/types/cc-mngt/pilot-rule-set.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/pilot-rule.d.ts +24 -0
- package/dist/types/types/cc-mngt/pilot-rule.d.ts.map +1 -0
- package/dist/types/types/cc-mngt/pilot.d.ts +58 -0
- package/dist/types/types/cc-mngt/pilot.d.ts.map +1 -0
- package/dist/types/types/cc-pilot/call-data-pilot.d.ts +50 -0
- package/dist/types/types/cc-pilot/call-data-pilot.d.ts.map +1 -0
- package/dist/types/types/cc-pilot/cc-pilot-events.d.ts +131 -0
- package/dist/types/types/cc-pilot/cc-pilot-events.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-attributes.d.ts +50 -0
- package/dist/types/types/cc-rt/agent-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-pg-attributes.d.ts +50 -0
- package/dist/types/types/cc-rt/agent-pg-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-pg-type.d.ts +17 -0
- package/dist/types/types/cc-rt/agent-pg-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-phone-state.d.ts +67 -0
- package/dist/types/types/cc-rt/agent-phone-state.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-service-type.d.ts +16 -0
- package/dist/types/types/cc-rt/agent-service-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/agent-type.d.ts +16 -0
- package/dist/types/types/cc-rt/agent-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/cc-rt-events.d.ts +274 -0
- package/dist/types/types/cc-rt/cc-rt-events.d.ts.map +1 -0
- package/dist/types/types/cc-rt/other-pg-attributes.d.ts +18 -0
- package/dist/types/types/cc-rt/other-pg-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/other-pg-type.d.ts +22 -0
- package/dist/types/types/cc-rt/other-pg-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/pilot-attributes.d.ts +40 -0
- package/dist/types/types/cc-rt/pilot-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/queue-attributes.d.ts +30 -0
- package/dist/types/types/cc-rt/queue-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-rt/queue-type.d.ts +23 -0
- package/dist/types/types/cc-rt/queue-type.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-context.d.ts +56 -0
- package/dist/types/types/cc-rt/rti-context.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-filter.d.ts +117 -0
- package/dist/types/types/cc-rt/rti-filter.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-object-identifier.d.ts +34 -0
- package/dist/types/types/cc-rt/rti-object-identifier.d.ts.map +1 -0
- package/dist/types/types/cc-rt/rti-objects.d.ts +72 -0
- package/dist/types/types/cc-rt/rti-objects.d.ts.map +1 -0
- package/dist/types/types/cc-stats/agbypilot-attributes.d.ts +73 -0
- package/dist/types/types/cc-stats/agbypilot-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/agent-attributes.d.ts +377 -0
- package/dist/types/types/cc-stats/agent-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/agent-filter.d.ts +60 -0
- package/dist/types/types/cc-stats/agent-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts +184 -0
- package/dist/types/types/cc-stats/data/ag-by-pil-stats-row.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/ag-stats-row.d.ts +608 -0
- package/dist/types/types/cc-stats/data/ag-stats-row.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/data-obs-period.d.ts +20 -0
- package/dist/types/types/cc-stats/data/data-obs-period.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/pil-stats-row.d.ts +623 -0
- package/dist/types/types/cc-stats/data/pil-stats-row.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/selected-period.d.ts +49 -0
- package/dist/types/types/cc-stats/data/selected-period.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/stat-value.d.ts +36 -0
- package/dist/types/types/cc-stats/data/stat-value.d.ts.map +1 -0
- package/dist/types/types/cc-stats/data/stats-data.d.ts +64 -0
- package/dist/types/types/cc-stats/data/stats-data.d.ts.map +1 -0
- package/dist/types/types/cc-stats/events/progress-callback.d.ts +9 -0
- package/dist/types/types/cc-stats/events/progress-callback.d.ts.map +1 -0
- package/dist/types/types/cc-stats/events/progress-step.d.ts +20 -0
- package/dist/types/types/cc-stats/events/progress-step.d.ts.map +1 -0
- package/dist/types/types/cc-stats/language.d.ts +15 -0
- package/dist/types/types/cc-stats/language.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-abandoned-calls-attributes.d.ts +48 -0
- package/dist/types/types/cc-stats/pilot-abandoned-calls-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-abandonned-calls-filter.d.ts +46 -0
- package/dist/types/types/cc-stats/pilot-abandonned-calls-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-attributes.d.ts +185 -0
- package/dist/types/types/cc-stats/pilot-attributes.d.ts.map +1 -0
- package/dist/types/types/cc-stats/pilot-filter.d.ts +45 -0
- package/dist/types/types/cc-stats/pilot-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/requester.d.ts +33 -0
- package/dist/types/types/cc-stats/requester.d.ts.map +1 -0
- package/dist/types/types/cc-stats/scheduled/recurrence.d.ts +69 -0
- package/dist/types/types/cc-stats/scheduled/recurrence.d.ts.map +1 -0
- package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts +87 -0
- package/dist/types/types/cc-stats/scheduled/report-obs-period.d.ts.map +1 -0
- package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts +137 -0
- package/dist/types/types/cc-stats/scheduled/scheduled-report.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-context.d.ts +72 -0
- package/dist/types/types/cc-stats/stats-context.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-filter.d.ts +41 -0
- package/dist/types/types/cc-stats/stats-filter.d.ts.map +1 -0
- package/dist/types/types/cc-stats/stats-format.d.ts +17 -0
- package/dist/types/types/cc-stats/stats-format.d.ts.map +1 -0
- package/dist/types/types/cc-stats/time-interval.d.ts +19 -0
- package/dist/types/types/cc-stats/time-interval.d.ts.map +1 -0
- package/dist/types/types/comlog/com-record-participant.d.ts +75 -0
- package/dist/types/types/comlog/com-record-participant.d.ts.map +1 -0
- package/dist/types/types/comlog/com-record.d.ts +97 -0
- package/dist/types/types/comlog/com-record.d.ts.map +1 -0
- package/dist/types/types/comlog/comlog-events.d.ts +110 -0
- package/dist/types/types/comlog/comlog-events.d.ts.map +1 -0
- package/dist/types/types/comlog/filter-option.d.ts +24 -0
- package/dist/types/types/comlog/filter-option.d.ts.map +1 -0
- package/dist/types/types/comlog/page.d.ts +34 -0
- package/dist/types/types/comlog/page.d.ts.map +1 -0
- package/dist/types/types/comlog/query-filter.d.ts +79 -0
- package/dist/types/types/comlog/query-filter.d.ts.map +1 -0
- package/dist/types/types/comlog/query-result.d.ts +55 -0
- package/dist/types/types/comlog/query-result.d.ts.map +1 -0
- package/dist/types/types/comlog/reason.d.ts +62 -0
- package/dist/types/types/comlog/reason.d.ts.map +1 -0
- package/dist/types/types/comlog/role.d.ts +18 -0
- package/dist/types/types/comlog/role.d.ts.map +1 -0
- package/dist/types/types/common/date-range.d.ts +17 -0
- package/dist/types/types/common/date-range.d.ts.map +1 -0
- package/dist/types/types/common/day-of-week.d.ts +15 -0
- package/dist/types/types/common/day-of-week.d.ts.map +1 -0
- package/dist/types/types/common/device-type.d.ts +22 -0
- package/dist/types/types/common/device-type.d.ts.map +1 -0
- package/dist/types/types/common/device.d.ts +75 -0
- package/dist/types/types/common/device.d.ts.map +1 -0
- package/dist/types/types/common/identifier.d.ts +20 -0
- package/dist/types/types/common/identifier.d.ts.map +1 -0
- package/dist/types/types/common/main-type.d.ts +26 -0
- package/dist/types/types/common/main-type.d.ts.map +1 -0
- package/dist/types/types/common/party-info-type.d.ts +22 -0
- package/dist/types/types/common/party-info-type.d.ts.map +1 -0
- package/dist/types/types/common/party-info.d.ts +28 -0
- package/dist/types/types/common/party-info.d.ts.map +1 -0
- package/dist/types/types/common/service-state.d.ts +20 -0
- package/dist/types/types/common/service-state.d.ts.map +1 -0
- package/dist/types/types/directory/criteria.d.ts +95 -0
- package/dist/types/types/directory/criteria.d.ts.map +1 -0
- package/dist/types/types/directory/filter-item.d.ts +22 -0
- package/dist/types/types/directory/filter-item.d.ts.map +1 -0
- package/dist/types/types/directory/logical-operation.d.ts +14 -0
- package/dist/types/types/directory/logical-operation.d.ts.map +1 -0
- package/dist/types/types/directory/operation-filter.d.ts +22 -0
- package/dist/types/types/directory/operation-filter.d.ts.map +1 -0
- package/dist/types/types/directory/result-item.d.ts +22 -0
- package/dist/types/types/directory/result-item.d.ts.map +1 -0
- package/dist/types/types/directory/search-result.d.ts +64 -0
- package/dist/types/types/directory/search-result.d.ts.map +1 -0
- package/dist/types/types/events/events.d.ts +79 -0
- package/dist/types/types/events/events.d.ts.map +1 -0
- package/dist/types/types/eventsummary/event-summary-counter.d.ts +69 -0
- package/dist/types/types/eventsummary/event-summary-counter.d.ts.map +1 -0
- package/dist/types/types/eventsummary/event-summary-events.d.ts +26 -0
- package/dist/types/types/eventsummary/event-summary-events.d.ts.map +1 -0
- package/dist/types/types/maint/configuration-type.d.ts +15 -0
- package/dist/types/types/maint/configuration-type.d.ts.map +1 -0
- package/dist/types/types/maint/cti-link-state.d.ts +19 -0
- package/dist/types/types/maint/cti-link-state.d.ts.map +1 -0
- package/dist/types/types/maint/license-status.d.ts +42 -0
- package/dist/types/types/maint/license-status.d.ts.map +1 -0
- package/dist/types/types/maint/license-type.d.ts +19 -0
- package/dist/types/types/maint/license-type.d.ts.map +1 -0
- package/dist/types/types/maint/license.d.ts +38 -0
- package/dist/types/types/maint/license.d.ts.map +1 -0
- package/dist/types/types/maint/maint-events.d.ts +131 -0
- package/dist/types/types/maint/maint-events.d.ts.map +1 -0
- package/dist/types/types/maint/pbx-status.d.ts +77 -0
- package/dist/types/types/maint/pbx-status.d.ts.map +1 -0
- package/dist/types/types/maint/server-address.d.ts +25 -0
- package/dist/types/types/maint/server-address.d.ts.map +1 -0
- package/dist/types/types/maint/service-status.d.ts +31 -0
- package/dist/types/types/maint/service-status.d.ts.map +1 -0
- package/dist/types/types/maint/subscriber-filter.d.ts +24 -0
- package/dist/types/types/maint/subscriber-filter.d.ts.map +1 -0
- package/dist/types/types/maint/sys-service-status.d.ts +33 -0
- package/dist/types/types/maint/sys-service-status.d.ts.map +1 -0
- package/dist/types/types/maint/sys-status.d.ts +83 -0
- package/dist/types/types/maint/sys-status.d.ts.map +1 -0
- package/dist/types/types/messaging/mailbox-info.d.ts +35 -0
- package/dist/types/types/messaging/mailbox-info.d.ts.map +1 -0
- package/dist/types/types/messaging/mailbox.d.ts +119 -0
- package/dist/types/types/messaging/mailbox.d.ts.map +1 -0
- package/dist/types/types/messaging/voice-message.d.ts +57 -0
- package/dist/types/types/messaging/voice-message.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/attribute-filter.d.ts +31 -0
- package/dist/types/types/pbxmngt/attribute-filter.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/instance-filter.d.ts +72 -0
- package/dist/types/types/pbxmngt/instance-filter.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/model.d.ts +221 -0
- package/dist/types/types/pbxmngt/model.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/octet-string-length.d.ts +12 -0
- package/dist/types/types/pbxmngt/octet-string-length.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx-attr-map.d.ts +96 -0
- package/dist/types/types/pbxmngt/pbx-attr-map.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx-attribute.d.ts +182 -0
- package/dist/types/types/pbxmngt/pbx-attribute.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx-object.d.ts +73 -0
- package/dist/types/types/pbxmngt/pbx-object.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbx.d.ts +23 -0
- package/dist/types/types/pbxmngt/pbx.d.ts.map +1 -0
- package/dist/types/types/pbxmngt/pbxmngt-events.d.ts +74 -0
- package/dist/types/types/pbxmngt/pbxmngt-events.d.ts.map +1 -0
- package/dist/types/types/phoneset/device-key.d.ts +36 -0
- package/dist/types/types/phoneset/device-key.d.ts.map +1 -0
- package/dist/types/types/phoneset/dynamic-state.d.ts +30 -0
- package/dist/types/types/phoneset/dynamic-state.d.ts.map +1 -0
- package/dist/types/types/phoneset/pin.d.ts +53 -0
- package/dist/types/types/phoneset/pin.d.ts.map +1 -0
- package/dist/types/types/phoneset/prog-key.d.ts +26 -0
- package/dist/types/types/phoneset/prog-key.d.ts.map +1 -0
- package/dist/types/types/phoneset/soft-key.d.ts +18 -0
- package/dist/types/types/phoneset/soft-key.d.ts.map +1 -0
- package/dist/types/types/routing/destination.d.ts +18 -0
- package/dist/types/types/routing/destination.d.ts.map +1 -0
- package/dist/types/types/routing/dnd-state.d.ts +9 -0
- package/dist/types/types/routing/dnd-state.d.ts.map +1 -0
- package/dist/types/types/routing/forward-condition.d.ts +26 -0
- package/dist/types/types/routing/forward-condition.d.ts.map +1 -0
- package/dist/types/types/routing/forward.d.ts +53 -0
- package/dist/types/types/routing/forward.d.ts.map +1 -0
- package/dist/types/types/routing/overflow-condition.d.ts +22 -0
- package/dist/types/types/routing/overflow-condition.d.ts.map +1 -0
- package/dist/types/types/routing/overflow.d.ts +50 -0
- package/dist/types/types/routing/overflow.d.ts.map +1 -0
- package/dist/types/types/routing/routing-capabilities.d.ts +15 -0
- package/dist/types/types/routing/routing-capabilities.d.ts.map +1 -0
- package/dist/types/types/routing/routing-events.d.ts +23 -0
- package/dist/types/types/routing/routing-events.d.ts.map +1 -0
- package/dist/types/types/routing/routing-state.d.ts +52 -0
- package/dist/types/types/routing/routing-state.d.ts.map +1 -0
- package/dist/types/types/rsi/add-digit-coll-criteria.d.ts +17 -0
- package/dist/types/types/rsi/add-digit-coll-criteria.d.ts.map +1 -0
- package/dist/types/types/rsi/collection-cause.d.ts +22 -0
- package/dist/types/types/rsi/collection-cause.d.ts.map +1 -0
- package/dist/types/types/rsi/route-session.d.ts +21 -0
- package/dist/types/types/rsi/route-session.d.ts.map +1 -0
- package/dist/types/types/rsi/routing-caller-type.d.ts +18 -0
- package/dist/types/types/rsi/routing-caller-type.d.ts.map +1 -0
- package/dist/types/types/rsi/routing-reason.d.ts +26 -0
- package/dist/types/types/rsi/routing-reason.d.ts.map +1 -0
- package/dist/types/types/rsi/rsi-events.d.ts +47 -0
- package/dist/types/types/rsi/rsi-events.d.ts.map +1 -0
- package/dist/types/types/rsi/rsi-point.d.ts +17 -0
- package/dist/types/types/rsi/rsi-point.d.ts.map +1 -0
- package/dist/types/types/rsi/tones.d.ts +26 -0
- package/dist/types/types/rsi/tones.d.ts.map +1 -0
- package/dist/types/types/telephony/RecordingAction.d.ts +7 -0
- package/dist/types/types/telephony/RecordingAction.d.ts.map +1 -0
- package/dist/types/types/telephony/call/call-cause.d.ts +123 -0
- package/dist/types/types/telephony/call/call-cause.d.ts.map +1 -0
- package/dist/types/types/telephony/call/call-data.d.ts +81 -0
- package/dist/types/types/telephony/call/call-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts +35 -0
- package/dist/types/types/telephony/call/ccd/acd-call-info.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/acd-data.d.ts +50 -0
- package/dist/types/types/telephony/call/ccd/acd-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/call-profile.d.ts +112 -0
- package/dist/types/types/telephony/call/ccd/call-profile.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-info.d.ts +43 -0
- package/dist/types/types/telephony/call/ccd/pilot-info.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-status.d.ts +38 -0
- package/dist/types/types/telephony/call/ccd/pilot-status.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts +24 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-info.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts +104 -0
- package/dist/types/types/telephony/call/ccd/pilot-transfer-query-param.d.ts.map +1 -0
- package/dist/types/types/telephony/call/ccd/queue-data.d.ts +23 -0
- package/dist/types/types/telephony/call/ccd/queue-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/correlator-data.d.ts +54 -0
- package/dist/types/types/telephony/call/correlator-data.d.ts.map +1 -0
- package/dist/types/types/telephony/call/leg.d.ts +57 -0
- package/dist/types/types/telephony/call/leg.d.ts.map +1 -0
- package/dist/types/types/telephony/call/media-state.d.ts +42 -0
- package/dist/types/types/telephony/call/media-state.d.ts.map +1 -0
- package/dist/types/types/telephony/call/participant.d.ts +34 -0
- package/dist/types/types/telephony/call/participant.d.ts.map +1 -0
- package/dist/types/types/telephony/call/record-state.d.ts +14 -0
- package/dist/types/types/telephony/call/record-state.d.ts.map +1 -0
- package/dist/types/types/telephony/call/tag.d.ts +37 -0
- package/dist/types/types/telephony/call/tag.d.ts.map +1 -0
- package/dist/types/types/telephony/call.d.ts +90 -0
- package/dist/types/types/telephony/call.d.ts.map +1 -0
- package/dist/types/types/telephony/callback.d.ts +33 -0
- package/dist/types/types/telephony/callback.d.ts.map +1 -0
- package/dist/types/types/telephony/device/device-state.d.ts +30 -0
- package/dist/types/types/telephony/device/device-state.d.ts.map +1 -0
- package/dist/types/types/telephony/device/operational-state.d.ts +18 -0
- package/dist/types/types/telephony/device/operational-state.d.ts.map +1 -0
- package/dist/types/types/telephony/hunting-group-status.d.ts +25 -0
- package/dist/types/types/telephony/hunting-group-status.d.ts.map +1 -0
- package/dist/types/types/telephony/hunting-groups.d.ts +33 -0
- package/dist/types/types/telephony/hunting-groups.d.ts.map +1 -0
- package/dist/types/types/telephony/mini-message.d.ts +37 -0
- package/dist/types/types/telephony/mini-message.d.ts.map +1 -0
- package/dist/types/types/telephony/telephonic-state.d.ts +41 -0
- package/dist/types/types/telephony/telephonic-state.d.ts.map +1 -0
- package/dist/types/types/telephony/telephony-events.d.ts +223 -0
- package/dist/types/types/telephony/telephony-events.d.ts.map +1 -0
- package/dist/types/types/telephony/trunk-indentification.d.ts +19 -0
- package/dist/types/types/telephony/trunk-indentification.d.ts.map +1 -0
- package/dist/types/types/telephony/user/user-state.d.ts +18 -0
- package/dist/types/types/telephony/user/user-state.d.ts.map +1 -0
- package/dist/types/types/users/preferences.d.ts +29 -0
- package/dist/types/types/users/preferences.d.ts.map +1 -0
- package/dist/types/types/users/supported-languages.d.ts +29 -0
- package/dist/types/types/users/supported-languages.d.ts.map +1 -0
- package/dist/types/types/users/user.d.ts +67 -0
- package/dist/types/types/users/user.d.ts.map +1 -0
- package/dist/types/types/users/users-events.d.ts +78 -0
- package/dist/types/types/users/users-events.d.ts.map +1 -0
- package/dist/types/types/users/voicemail-type.d.ts +18 -0
- package/dist/types/types/users/voicemail-type.d.ts.map +1 -0
- package/dist/types/types/users/voicemail.d.ts +20 -0
- package/dist/types/types/users/voicemail.d.ts.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { IntrusionMode } from './types/cc-agent/intrusion-mode';
|
|
2
|
+
import EventEmitter from 'events';
|
|
3
|
+
import { OperatorConfig } from './types/cc-agent/operator-config';
|
|
4
|
+
import { OperatorState } from './types/cc-agent/operator-state';
|
|
5
|
+
import { WithdrawReason } from './types/cc-agent/withdraw-reason';
|
|
6
|
+
/**
|
|
7
|
+
* CallCenterAgent provides services for CCD operators. Using this
|
|
8
|
+
* service requires having a <b>CONTACTCENTER_AGENT</b> license.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CallCenterAgent extends EventEmitter {
|
|
11
|
+
#private;
|
|
12
|
+
/**
|
|
13
|
+
* Occurs when an agent state has changed.
|
|
14
|
+
* @event
|
|
15
|
+
*/
|
|
16
|
+
static readonly ON_AGENT_STATE_CHANGED = "OnAgentStateChanged";
|
|
17
|
+
/**
|
|
18
|
+
* Occurs when CCD agent skills are modified: one or several skills have been activated or deactivated.
|
|
19
|
+
* @event
|
|
20
|
+
*/
|
|
21
|
+
static readonly ON_AGENT_SKILL_CHANGED = "OnAgentSkillChanged";
|
|
22
|
+
/**
|
|
23
|
+
* Occurs when an agent requests help from their supervisor.
|
|
24
|
+
* @see requestPermanentListening
|
|
25
|
+
* @see requestSupervisorHelp
|
|
26
|
+
* @event
|
|
27
|
+
*/
|
|
28
|
+
static readonly ON_SUPERVISOR_HELP_REQUESTED = "OnSupervisorHelpRequested";
|
|
29
|
+
/**
|
|
30
|
+
* Occurs when an agent has requested the assistance of their supervisor and the request
|
|
31
|
+
* is cancelled by the agent, or rejected by the supervisor.
|
|
32
|
+
* @see cancelSupervisorHelpRequest
|
|
33
|
+
* @see rejectAgentHelpRequest
|
|
34
|
+
* @event
|
|
35
|
+
*/
|
|
36
|
+
static readonly ON_SUPERVISOR_HELP_CANCELLED = "OnSupervisorHelpCancelled";
|
|
37
|
+
/**
|
|
38
|
+
* Gets the operator configuration.
|
|
39
|
+
* <p>
|
|
40
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
41
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
42
|
+
*
|
|
43
|
+
* @param loginName the operator login name
|
|
44
|
+
* @returns the {@link OperatorConfig} on success; `null` otherwise.
|
|
45
|
+
*/
|
|
46
|
+
getConfiguration(loginName?: string | null): Promise<OperatorConfig | null>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets the specified agent or supervisor state.
|
|
49
|
+
* <p>
|
|
50
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
51
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
52
|
+
*
|
|
53
|
+
* @param loginName the operator login name
|
|
54
|
+
* @returns the {@link OperatorState} on success; `null` otherwise.
|
|
55
|
+
*/
|
|
56
|
+
getState(loginName?: string | null): Promise<OperatorState | null>;
|
|
57
|
+
/**
|
|
58
|
+
* Logs on an agent or a supervisor.
|
|
59
|
+
* <p>
|
|
60
|
+
* For a supervisor, if `pgNumber` is omitted, the supervisor is logged on out of group.
|
|
61
|
+
* <p>
|
|
62
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
63
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* // Log on an agent to processing group "pg001" with headset mode
|
|
68
|
+
* await O2G.callCenterAgent.logon("acd001", "pg001", true);
|
|
69
|
+
*
|
|
70
|
+
* // Log on a supervisor out of group (no pgNumber)
|
|
71
|
+
* await O2G.callCenterAgent.logon("acd001");
|
|
72
|
+
*
|
|
73
|
+
* // Administrator logging on an agent on behalf of a user
|
|
74
|
+
* await O2G.callCenterAgent.logon("acd001", "pg001", false, "jdoe");
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param proAcdNumber the pro-ACD device number
|
|
78
|
+
* @param pgNumber the agent processing group number
|
|
79
|
+
* @param headset activate the headset mode
|
|
80
|
+
* @param loginName the CCD operator login name
|
|
81
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
82
|
+
* @see logoff
|
|
83
|
+
*/
|
|
84
|
+
logon(proAcdNumber: string, pgNumber?: string | null, headset?: boolean, loginName?: string | null): Promise<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* Logs off an agent or a supervisor.
|
|
87
|
+
* <p>
|
|
88
|
+
* This method does nothing and returns `true` if the agent or supervisor is already logged off.
|
|
89
|
+
* <p>
|
|
90
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
91
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
92
|
+
*
|
|
93
|
+
* @param loginName the CCD operator login name
|
|
94
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
95
|
+
* @see logon
|
|
96
|
+
*/
|
|
97
|
+
logoff(loginName?: string | null): Promise<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Enters an agent group. Only for a supervisor.
|
|
100
|
+
* <p>
|
|
101
|
+
* This method is used by a supervisor to enter an agent group when in
|
|
102
|
+
* pre-assigned state (logged on but not in an agent group).
|
|
103
|
+
* <p>
|
|
104
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
105
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
106
|
+
*
|
|
107
|
+
* @param pgNumber the agent processing group number
|
|
108
|
+
* @param loginName the supervisor login name
|
|
109
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
110
|
+
* @see exit
|
|
111
|
+
*/
|
|
112
|
+
enter(pgNumber: string, loginName?: string | null): Promise<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* Exits from an agent group. Only for a supervisor.
|
|
115
|
+
* <p>
|
|
116
|
+
* This method is used by a supervisor to leave an agent group and go back to
|
|
117
|
+
* pre-assigned state (logged on but not in an agent group).
|
|
118
|
+
* <p>
|
|
119
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
120
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
121
|
+
*
|
|
122
|
+
* @param loginName the supervisor login name
|
|
123
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
124
|
+
* @see enter
|
|
125
|
+
*/
|
|
126
|
+
exit(loginName?: string | null): Promise<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* Puts the specified agent in wrapup state.
|
|
129
|
+
* <p>
|
|
130
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
131
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
132
|
+
*
|
|
133
|
+
* @param loginName the agent login name
|
|
134
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
135
|
+
*/
|
|
136
|
+
setWrapup(loginName?: string | null): Promise<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Puts the specified agent in ready state.
|
|
139
|
+
* <p>
|
|
140
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
141
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
142
|
+
*
|
|
143
|
+
* @param loginName the agent login name
|
|
144
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
145
|
+
*/
|
|
146
|
+
setReady(loginName?: string | null): Promise<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* Puts the specified agent in pause state.
|
|
149
|
+
* <p>
|
|
150
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
151
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
152
|
+
*
|
|
153
|
+
* @param loginName the agent login name
|
|
154
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
155
|
+
*/
|
|
156
|
+
setPause(loginName?: string | null): Promise<boolean>;
|
|
157
|
+
/**
|
|
158
|
+
* Requests a supervisor to listen to the specified agent.
|
|
159
|
+
* <p>
|
|
160
|
+
* On success, an {@link ON_SUPERVISOR_HELP_REQUESTED} event is raised for both the agent and the supervisor.
|
|
161
|
+
* <p>
|
|
162
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
163
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```typescript
|
|
167
|
+
* // Start permanent listening on agent "5001"
|
|
168
|
+
* await O2G.callCenterAgent.requestPermanentListening("5001");
|
|
169
|
+
*
|
|
170
|
+
* // Listen to events to know when listening is established
|
|
171
|
+
* O2G.callCenterAgent.on(CallCenterAgent.ON_SUPERVISOR_HELP_REQUESTED, (event) => {
|
|
172
|
+
* console.log("Listening established");
|
|
173
|
+
* });
|
|
174
|
+
*
|
|
175
|
+
* // Cancel the listening when done
|
|
176
|
+
* await O2G.callCenterAgent.cancelPermanentListening();
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* @param agentNumber the extension number of the agent to listen to
|
|
180
|
+
* @param loginName the supervisor login name
|
|
181
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
182
|
+
* @see cancelPermanentListening
|
|
183
|
+
*/
|
|
184
|
+
requestPermanentListening(agentNumber: string, loginName?: string | null): Promise<boolean>;
|
|
185
|
+
/**
|
|
186
|
+
* Cancels a permanent listening by a supervisor.
|
|
187
|
+
* <p>
|
|
188
|
+
* On success, an {@link ON_SUPERVISOR_HELP_CANCELLED} event is raised for both the agent and the supervisor.
|
|
189
|
+
* <p>
|
|
190
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
191
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
192
|
+
*
|
|
193
|
+
* @param loginName the supervisor login name
|
|
194
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
195
|
+
* @see requestPermanentListening
|
|
196
|
+
*/
|
|
197
|
+
cancelPermanentListening(loginName?: string | null): Promise<boolean>;
|
|
198
|
+
/**
|
|
199
|
+
* Requests an intrusion in a CCD call.
|
|
200
|
+
* <p>
|
|
201
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
202
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```typescript
|
|
206
|
+
* // Intrude on agent "5001" in normal mode
|
|
207
|
+
* await O2G.callCenterAgent.requestIntrusion("5001");
|
|
208
|
+
*
|
|
209
|
+
* // Intrude in coach mode (agent hears supervisor, caller does not)
|
|
210
|
+
* await O2G.callCenterAgent.requestIntrusion("5001", IntrusionMode.COACH);
|
|
211
|
+
*
|
|
212
|
+
* // Switch from coach mode to normal intrusion
|
|
213
|
+
* await O2G.callCenterAgent.changeIntrusionMode(IntrusionMode.NORMAL);
|
|
214
|
+
*
|
|
215
|
+
* // Cancel the intrusion by passing the current mode
|
|
216
|
+
* await O2G.callCenterAgent.changeIntrusionMode(IntrusionMode.NORMAL);
|
|
217
|
+
* ```
|
|
218
|
+
*
|
|
219
|
+
* @param agentNumber the extension number of the CCD agent answering the call
|
|
220
|
+
* @param intrusionMode the intrusion mode
|
|
221
|
+
* @param loginName the supervisor login name
|
|
222
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
223
|
+
* @see changeIntrusionMode
|
|
224
|
+
*/
|
|
225
|
+
requestIntrusion(agentNumber: string, intrusionMode?: IntrusionMode, loginName?: string | null): Promise<boolean>;
|
|
226
|
+
/**
|
|
227
|
+
* Changes the intrusion mode.
|
|
228
|
+
* <p>
|
|
229
|
+
* This method allows changing the intrusion mode or cancelling an intrusion.
|
|
230
|
+
* To cancel an intrusion, pass the current mode in the `newIntrusionMode` parameter.
|
|
231
|
+
* <p>
|
|
232
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
233
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
234
|
+
*
|
|
235
|
+
* @param newIntrusionMode the new intrusion mode
|
|
236
|
+
* @param loginName the supervisor login name
|
|
237
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
238
|
+
* @see requestIntrusion
|
|
239
|
+
*/
|
|
240
|
+
changeIntrusionMode(newIntrusionMode: IntrusionMode, loginName?: string | null): Promise<boolean>;
|
|
241
|
+
/**
|
|
242
|
+
* Requests help from the supervisor.
|
|
243
|
+
* <p>
|
|
244
|
+
* On success, an {@link ON_SUPERVISOR_HELP_REQUESTED} event is raised for both the agent and the supervisor.
|
|
245
|
+
* <p>
|
|
246
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
247
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
248
|
+
*
|
|
249
|
+
* @param loginName the agent login name
|
|
250
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
251
|
+
* @see cancelSupervisorHelpRequest
|
|
252
|
+
*/
|
|
253
|
+
requestSupervisorHelp(loginName?: string | null): Promise<boolean>;
|
|
254
|
+
/**
|
|
255
|
+
* Rejects a help request from an agent.
|
|
256
|
+
* <p>
|
|
257
|
+
* This method is invoked by a supervisor to reject a help request from an agent.
|
|
258
|
+
* On success, an {@link ON_SUPERVISOR_HELP_CANCELLED} event is raised.
|
|
259
|
+
* <p>
|
|
260
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
261
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
262
|
+
*
|
|
263
|
+
* @param agentNumber the extension number of the agent who requested help
|
|
264
|
+
* @param loginName the supervisor login name
|
|
265
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
266
|
+
* @see cancelSupervisorHelpRequest
|
|
267
|
+
*/
|
|
268
|
+
rejectAgentHelpRequest(agentNumber: string, loginName?: string | null): Promise<boolean>;
|
|
269
|
+
/**
|
|
270
|
+
* Cancels a supervisor help request.
|
|
271
|
+
* <p>
|
|
272
|
+
* This method is invoked by an agent to cancel a help request.
|
|
273
|
+
* On success, an {@link ON_SUPERVISOR_HELP_CANCELLED} event is raised.
|
|
274
|
+
* <p>
|
|
275
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
276
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
277
|
+
*
|
|
278
|
+
* @param supervisorNumber the extension number of the requested supervisor
|
|
279
|
+
* @param loginName the agent login name
|
|
280
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
281
|
+
* @see requestSupervisorHelp
|
|
282
|
+
*/
|
|
283
|
+
cancelSupervisorHelpRequest(supervisorNumber: string, loginName?: string | null): Promise<boolean>;
|
|
284
|
+
/**
|
|
285
|
+
* Asks a snapshot event to receive an {@link ON_AGENT_STATE_CHANGED} event.
|
|
286
|
+
* <p>
|
|
287
|
+
* The {@link ON_AGENT_STATE_CHANGED} event contains the operator {@link OperatorState}.
|
|
288
|
+
* If a second request is asked while the previous one is still in progress, it has no effect.
|
|
289
|
+
* <p>
|
|
290
|
+
* If an administrator invokes this method with `loginName` set to `null`, the snapshot
|
|
291
|
+
* request is done for all agents. The event processing can be long depending on the number
|
|
292
|
+
* of users.
|
|
293
|
+
*
|
|
294
|
+
* @param loginName the agent login name
|
|
295
|
+
* @returns `true` if the request was successfully submitted; `false` otherwise.
|
|
296
|
+
*/
|
|
297
|
+
requestSnapshot(loginName?: string | null): Promise<boolean>;
|
|
298
|
+
/**
|
|
299
|
+
* Activates the specified skills.
|
|
300
|
+
* <p>
|
|
301
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
302
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
303
|
+
* <p>
|
|
304
|
+
* This method does not validate skill numbers. If a skill number is invalid
|
|
305
|
+
* (not assigned to the operator), it is ignored and the method returns `true`.
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```typescript
|
|
309
|
+
* // Activate skills 1, 2 and 5 for the current user
|
|
310
|
+
* await O2G.callCenterAgent.activateSkills([1, 2, 5]);
|
|
311
|
+
*
|
|
312
|
+
* // Activate skills for a specific agent (administrator session)
|
|
313
|
+
* await O2G.callCenterAgent.activateSkills([1, 2, 5], "jdoe");
|
|
314
|
+
*
|
|
315
|
+
* // Invalid skill numbers are silently ignored — this still returns true
|
|
316
|
+
* await O2G.callCenterAgent.activateSkills([1, 99, 100]);
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* @param skillNumbers the list of skill numbers to activate
|
|
320
|
+
* @param loginName the agent login name
|
|
321
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
322
|
+
* @see deactivateSkills
|
|
323
|
+
*/
|
|
324
|
+
activateSkills(skillNumbers: number[], loginName?: string | null): Promise<boolean>;
|
|
325
|
+
/**
|
|
326
|
+
* Deactivates the specified skills.
|
|
327
|
+
* <p>
|
|
328
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
329
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
330
|
+
* <p>
|
|
331
|
+
* This method does not validate skill numbers. If a skill number is invalid
|
|
332
|
+
* (not assigned to the operator), it is ignored and the method returns `true`.
|
|
333
|
+
*
|
|
334
|
+
* @param skillNumbers the list of skill numbers to deactivate
|
|
335
|
+
* @param loginName the agent login name
|
|
336
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
337
|
+
* @see activateSkills
|
|
338
|
+
*/
|
|
339
|
+
deactivateSkills(skillNumbers: number[], loginName?: string | null): Promise<boolean>;
|
|
340
|
+
/**
|
|
341
|
+
* Returns the list of withdraw reasons for the specified processing group.
|
|
342
|
+
* <p>
|
|
343
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
344
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
345
|
+
*
|
|
346
|
+
* @param pgNumber the agent processing group number
|
|
347
|
+
* @param loginName the agent login name
|
|
348
|
+
* @returns the list of {@link WithdrawReason} objects on success; `null` otherwise.
|
|
349
|
+
* @see setWithdraw
|
|
350
|
+
*/
|
|
351
|
+
getWithdrawReasons(pgNumber: string, loginName?: string | null): Promise<WithdrawReason[] | null>;
|
|
352
|
+
/**
|
|
353
|
+
* Withdraws an agent with the specified reason.
|
|
354
|
+
* <p>
|
|
355
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
356
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* ```typescript
|
|
360
|
+
* // First retrieve the available withdraw reasons for the processing group
|
|
361
|
+
* const reasons = await O2G.callCenterAgent.getWithdrawReasons("pg001");
|
|
362
|
+
*
|
|
363
|
+
* // Then withdraw the agent using one of the returned reasons
|
|
364
|
+
* if (reasons && reasons.length > 0) {
|
|
365
|
+
* await O2G.callCenterAgent.setWithdraw(reasons[0]);
|
|
366
|
+
* }
|
|
367
|
+
* ```
|
|
368
|
+
*
|
|
369
|
+
* @param reason the withdraw reason
|
|
370
|
+
* @param loginName the agent login name
|
|
371
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
372
|
+
* @see getWithdrawReasons
|
|
373
|
+
*/
|
|
374
|
+
setWithdraw(reason: WithdrawReason, loginName?: string | null): Promise<boolean>;
|
|
375
|
+
}
|
|
376
|
+
//# sourceMappingURL=o2g-cc-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-cc-agent.d.ts","sourceRoot":"","sources":["../../src/o2g-cc-agent.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { Calendar } from './types/cc-mngt/calendar/calendar';
|
|
2
|
+
import { DayOfWeek } from './types/common/day-of-week';
|
|
3
|
+
import { ExceptionCalendar } from './types/cc-mngt/calendar/exception-calendar';
|
|
4
|
+
import { NormalCalendar } from './types/cc-mngt/calendar/normal-calendar';
|
|
5
|
+
import { Transition } from './types/cc-mngt/calendar/transition';
|
|
6
|
+
import { Pilot } from './types/cc-mngt/pilot';
|
|
7
|
+
import { PilotTransferQueryParameters } from './types/telephony/call/ccd/pilot-transfer-query-param';
|
|
8
|
+
/**
|
|
9
|
+
* This service allows an administrator session to manage CCD pilot objects.
|
|
10
|
+
* <p>
|
|
11
|
+
* This service requires having a <b>CONTACTCENTER_SRV</b> license.
|
|
12
|
+
*/
|
|
13
|
+
export declare class CallCenterManagement {
|
|
14
|
+
#private;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the list of CCD pilots configured on the specified OmniPCX Enterprise node.
|
|
17
|
+
*
|
|
18
|
+
* @param nodeId the PCX Enterprise node id
|
|
19
|
+
* @returns the list of {@link Pilot} objects on success; `null` otherwise.
|
|
20
|
+
*/
|
|
21
|
+
getPilots(nodeId: number): Promise<Pilot[] | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Get information about a CCD pilot.
|
|
24
|
+
*
|
|
25
|
+
* When called without `pilotTransferQueryParam`, returns the pilot's current
|
|
26
|
+
* configuration and state.
|
|
27
|
+
*
|
|
28
|
+
* When called with `pilotTransferQueryParam`, returns the pilot's routing
|
|
29
|
+
* capabilities evaluated against the specified call profile context (agent,
|
|
30
|
+
* skills, transfer type). This advanced form requires O2G version 2.7.4 or later.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* // Simple form — get the pilot's current configuration
|
|
35
|
+
* const pilot = await O2G.callCenterManagement.getPilot(1, "60141");
|
|
36
|
+
*
|
|
37
|
+
* // Advanced form — evaluate routing for a specific agent and skill set
|
|
38
|
+
* const queryParam = new PilotTransferQueryParameters({
|
|
39
|
+
* agentNumber: "5001",
|
|
40
|
+
* skills: { skills: [{ skillNumber: 1, acrStatus: true, expertEvalLevel: 3 }] },
|
|
41
|
+
* priorityTransfer: true
|
|
42
|
+
* });
|
|
43
|
+
* const pilotAdvanced = await O2G.callCenterManagement.getPilot(1, "60141", queryParam);
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param nodeId the PCX Enterprise node id
|
|
47
|
+
* @param pilotNumber the pilot number
|
|
48
|
+
* @param pilotTransferQueryParam optional call profile context. When provided,
|
|
49
|
+
* the pilot information is evaluated against the
|
|
50
|
+
* specified agent number, skills and transfer type.
|
|
51
|
+
* Requires O2G >= 2.7.4.
|
|
52
|
+
* @returns the {@link Pilot} information on success; `null` otherwise.
|
|
53
|
+
*/
|
|
54
|
+
getPilot(nodeId: number, pilotNumber: string, pilotTransferQueryParam?: PilotTransferQueryParameters | null): Promise<Pilot | null>;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves the routing calendar of the specified CCD pilot.
|
|
57
|
+
* <p>
|
|
58
|
+
* The calendar defines the normal and exception schedules that govern
|
|
59
|
+
* the pilot's open/closed state over time.
|
|
60
|
+
*
|
|
61
|
+
* @param nodeId the PCX Enterprise node id
|
|
62
|
+
* @param pilotNumber the pilot number
|
|
63
|
+
* @returns the {@link Calendar} on success; `null` otherwise.
|
|
64
|
+
*/
|
|
65
|
+
getCalendar(nodeId: number, pilotNumber: string): Promise<Calendar | null>;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves the exception calendar of the specified CCD pilot.
|
|
68
|
+
* <p>
|
|
69
|
+
* The exception calendar contains date-specific transitions that override
|
|
70
|
+
* the normal weekly schedule.
|
|
71
|
+
*
|
|
72
|
+
* @param nodeId the PCX Enterprise node id
|
|
73
|
+
* @param pilotNumber the pilot number
|
|
74
|
+
* @returns the {@link ExceptionCalendar} on success; `null` otherwise.
|
|
75
|
+
*/
|
|
76
|
+
getExceptionCalendar(nodeId: number, pilotNumber: string): Promise<ExceptionCalendar | null>;
|
|
77
|
+
/**
|
|
78
|
+
* Adds a transition to the exception calendar of the specified CCD pilot.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* // Add a closing transition on December 25th
|
|
83
|
+
* const christmas = new Date(2025, 11, 25);
|
|
84
|
+
* const closingTransition = new Transition({ ... });
|
|
85
|
+
* await O2G.callCenterManagement.addExceptionTransition(1, "60141", christmas, closingTransition);
|
|
86
|
+
*
|
|
87
|
+
* // Later, update that transition (index 0 = first transition of the day)
|
|
88
|
+
* const updatedTransition = new Transition({ ... });
|
|
89
|
+
* await O2G.callCenterManagement.setExceptionTransition(1, "60141", christmas, 0, updatedTransition);
|
|
90
|
+
*
|
|
91
|
+
* // Or remove it entirely
|
|
92
|
+
* await O2G.callCenterManagement.deleteExceptionTransition(1, "60141", christmas, 0);
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @param nodeId the PCX Enterprise node id
|
|
96
|
+
* @param pilotNumber the pilot number
|
|
97
|
+
* @param dateTransition the date for which the exception transition applies
|
|
98
|
+
* @param transition the transition to add
|
|
99
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
100
|
+
*/
|
|
101
|
+
addExceptionTransition(nodeId: number, pilotNumber: string, dateTransition: Date, transition: Transition): Promise<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Deletes a transition from the exception calendar of the specified CCD pilot.
|
|
104
|
+
*
|
|
105
|
+
* @param nodeId the PCX Enterprise node id
|
|
106
|
+
* @param pilotNumber the pilot number
|
|
107
|
+
* @param dateTransition the date of the exception transition to delete
|
|
108
|
+
* @param index the index of the transition to delete
|
|
109
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
110
|
+
*/
|
|
111
|
+
deleteExceptionTransition(nodeId: number, pilotNumber: string, dateTransition: Date, index: number): Promise<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* Updates a transition in the exception calendar of the specified CCD pilot.
|
|
114
|
+
*
|
|
115
|
+
* @param nodeId the PCX Enterprise node id
|
|
116
|
+
* @param pilotNumber the pilot number
|
|
117
|
+
* @param dateTransition the date of the exception transition to update
|
|
118
|
+
* @param index the index of the transition to update
|
|
119
|
+
* @param transition the new transition value
|
|
120
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
121
|
+
*/
|
|
122
|
+
setExceptionTransition(nodeId: number, pilotNumber: string, dateTransition: Date, index: number, transition: Transition): Promise<boolean>;
|
|
123
|
+
/**
|
|
124
|
+
* Retrieves the normal (weekly) calendar of the specified CCD pilot.
|
|
125
|
+
* <p>
|
|
126
|
+
* The normal calendar defines the recurring weekly schedule of open/closed
|
|
127
|
+
* transitions for each day of the week.
|
|
128
|
+
*
|
|
129
|
+
* @param nodeId the PCX Enterprise node id
|
|
130
|
+
* @param pilotNumber the pilot number
|
|
131
|
+
* @returns the {@link NormalCalendar} on success; `null` otherwise.
|
|
132
|
+
*/
|
|
133
|
+
getNormalCalendar(nodeId: number, pilotNumber: string): Promise<NormalCalendar | null>;
|
|
134
|
+
/**
|
|
135
|
+
* Adds a transition to the normal calendar of the specified CCD pilot for the given day of the week.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* // Add an opening transition on Monday at 08:00
|
|
140
|
+
* const openingTransition = new Transition({ ... });
|
|
141
|
+
* await O2G.callCenterManagement.addNormalTransition(1, "60141", DayOfWeek.MONDAY, openingTransition);
|
|
142
|
+
*
|
|
143
|
+
* // Add a closing transition on Monday at 18:00
|
|
144
|
+
* const closingTransition = new Transition({ ... });
|
|
145
|
+
* await O2G.callCenterManagement.addNormalTransition(1, "60141", DayOfWeek.MONDAY, closingTransition);
|
|
146
|
+
*
|
|
147
|
+
* // Later, update the closing transition (index 1 = second transition of the day)
|
|
148
|
+
* const updatedTransition = new Transition({ ... });
|
|
149
|
+
* await O2G.callCenterManagement.setNormalTransition(1, "60141", DayOfWeek.MONDAY, 1, updatedTransition);
|
|
150
|
+
*
|
|
151
|
+
* // Or remove it
|
|
152
|
+
* await O2G.callCenterManagement.deleteNormalTransition(1, "60141", DayOfWeek.MONDAY, 1);
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @param nodeId the PCX Enterprise node id
|
|
156
|
+
* @param pilotNumber the pilot number
|
|
157
|
+
* @param day the day of the week to which the transition applies
|
|
158
|
+
* @param transition the transition to add
|
|
159
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
160
|
+
*/
|
|
161
|
+
addNormalTransition(nodeId: number, pilotNumber: string, day: DayOfWeek, transition: Transition): Promise<boolean>;
|
|
162
|
+
/**
|
|
163
|
+
* Deletes a transition from the normal calendar of the specified CCD pilot.
|
|
164
|
+
*
|
|
165
|
+
* @param nodeId the PCX Enterprise node id
|
|
166
|
+
* @param pilotNumber the pilot number
|
|
167
|
+
* @param day the day of the week from which the transition is deleted
|
|
168
|
+
* @param index the index of the transition to delete
|
|
169
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
170
|
+
*/
|
|
171
|
+
deleteNormalTransition(nodeId: number, pilotNumber: string, day: DayOfWeek, index: number): Promise<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* Updates a transition in the normal calendar of the specified CCD pilot.
|
|
174
|
+
*
|
|
175
|
+
* @param nodeId the PCX Enterprise node id
|
|
176
|
+
* @param pilotNumber the pilot number
|
|
177
|
+
* @param day the day of the week containing the transition to update
|
|
178
|
+
* @param index the index of the transition to update
|
|
179
|
+
* @param transition the new transition value
|
|
180
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
181
|
+
*/
|
|
182
|
+
setNormalTransition(nodeId: number, pilotNumber: string, day: DayOfWeek, index: number, transition: Transition): Promise<boolean>;
|
|
183
|
+
/**
|
|
184
|
+
* Forces the specified CCD pilot into the open state, regardless of its calendar schedule.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```typescript
|
|
188
|
+
* // Force a pilot open outside its normal schedule
|
|
189
|
+
* await O2G.callCenterManagement.openPilot(1, "60141");
|
|
190
|
+
*
|
|
191
|
+
* // Force it closed (e.g. during an incident)
|
|
192
|
+
* await O2G.callCenterManagement.closePilot(1, "60141");
|
|
193
|
+
*
|
|
194
|
+
* // Note: these methods override the calendar schedule.
|
|
195
|
+
* // The pilot will remain in the forced state until the next
|
|
196
|
+
* // scheduled calendar transition occurs.
|
|
197
|
+
* ```
|
|
198
|
+
*
|
|
199
|
+
* @param nodeId the PCX Enterprise node id
|
|
200
|
+
* @param pilotNumber the pilot number
|
|
201
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
202
|
+
*/
|
|
203
|
+
openPilot(nodeId: number, pilotNumber: string): Promise<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* Forces the specified CCD pilot into the closed state, regardless of its calendar schedule.
|
|
206
|
+
*
|
|
207
|
+
* @param nodeId the PCX Enterprise node id
|
|
208
|
+
* @param pilotNumber the pilot number
|
|
209
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
210
|
+
*/
|
|
211
|
+
closePilot(nodeId: number, pilotNumber: string): Promise<boolean>;
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=o2g-cc-mngt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-cc-mngt.d.ts","sourceRoot":"","sources":["../../src/o2g-cc-mngt.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import EventEmitter from 'events';
|
|
2
|
+
/**
|
|
3
|
+
* CallCenterPilot allows an administrator to monitor the CCD pilots. Using this
|
|
4
|
+
* service requires having a <b>CONTACTCENTER_SRV</b> license.
|
|
5
|
+
* <p>
|
|
6
|
+
* Monitoring a pilot consists of starting the monitoring with {@link monitorStart},
|
|
7
|
+
* then listening to events to track call activity on the pilot. When monitoring
|
|
8
|
+
* is no longer needed, stop it with {@link monitorStop}.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* // Register event listeners before starting monitoring
|
|
13
|
+
* O2G.callCenterPilot.on(CallCenterPilot.ON_PILOT_CALL_CREATED, (event) => {
|
|
14
|
+
* console.log("New call on pilot:", event.pilotNumber);
|
|
15
|
+
* });
|
|
16
|
+
* O2G.callCenterPilot.on(CallCenterPilot.ON_PILOT_CALL_QUEUED, (event) => {
|
|
17
|
+
* console.log("Call queued on pilot:", event.pilotNumber);
|
|
18
|
+
* });
|
|
19
|
+
* O2G.callCenterPilot.on(CallCenterPilot.ON_PILOT_CALL_REMOVED, (event) => {
|
|
20
|
+
* console.log("Call removed from pilot:", event.pilotNumber);
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* // Start monitoring
|
|
24
|
+
* await O2G.callCenterPilot.monitorStart("60141");
|
|
25
|
+
*
|
|
26
|
+
* // Stop monitoring and clean up when done
|
|
27
|
+
* await O2G.callCenterPilot.monitorStop("60141");
|
|
28
|
+
* O2G.callCenterPilot.removeAllListeners(CallCenterPilot.ON_PILOT_CALL_CREATED);
|
|
29
|
+
* O2G.callCenterPilot.removeAllListeners(CallCenterPilot.ON_PILOT_CALL_QUEUED);
|
|
30
|
+
* O2G.callCenterPilot.removeAllListeners(CallCenterPilot.ON_PILOT_CALL_REMOVED);
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class CallCenterPilot extends EventEmitter {
|
|
34
|
+
#private;
|
|
35
|
+
/**
|
|
36
|
+
* Occurs when a new call arrives on a pilot.
|
|
37
|
+
* @event
|
|
38
|
+
*/
|
|
39
|
+
static readonly ON_PILOT_CALL_CREATED = "OnPilotCallCreated";
|
|
40
|
+
/**
|
|
41
|
+
* Occurs when the call has been queued.
|
|
42
|
+
* @event
|
|
43
|
+
*/
|
|
44
|
+
static readonly ON_PILOT_CALL_QUEUED = "OnPilotCallQueued";
|
|
45
|
+
/**
|
|
46
|
+
* Occurs when a call has been removed from the pilot: by distribution, cancellation or overflow.
|
|
47
|
+
* @event
|
|
48
|
+
*/
|
|
49
|
+
static readonly ON_PILOT_CALL_REMOVED = "OnPilotCallRemoved";
|
|
50
|
+
/**
|
|
51
|
+
* Starts the monitoring of a pilot.
|
|
52
|
+
* <p>
|
|
53
|
+
* If the pilot is already being monitored, no error is returned.
|
|
54
|
+
*
|
|
55
|
+
* @param pilotNumber the pilot number
|
|
56
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
57
|
+
* @see monitorStop
|
|
58
|
+
*/
|
|
59
|
+
monitorStart(pilotNumber: string): Promise<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Stops the monitoring of a pilot.
|
|
62
|
+
* <p>
|
|
63
|
+
* If the pilot is not being monitored, no error is returned.
|
|
64
|
+
*
|
|
65
|
+
* @param pilotNumber the pilot number
|
|
66
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
67
|
+
* @see monitorStart
|
|
68
|
+
*/
|
|
69
|
+
monitorStop(pilotNumber: string): Promise<boolean>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=o2g-cc-pilot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"o2g-cc-pilot.d.ts","sourceRoot":"","sources":["../../src/o2g-cc-pilot.ts"],"names":[],"mappings":"AAmBA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAKlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,eAAgB,SAAQ,YAAY;;IAG7C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,wBAAwB;IAE7D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,uBAAuB;IAE3D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,wBAAwB;IAe7D;;;;;;;;OAQG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzD;;;;;;;;OAQG;IACG,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAG3D"}
|