amazon-connect-streams
Version:
Amazon Connect Streams Library
1,089 lines (999 loc) • 4.21 MB
JavaScript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/@amazon-connect/activity/lib-esm/activity-namespace.js"
/*!*****************************************************************************!*\
!*** ./node_modules/@amazon-connect/activity/lib-esm/activity-namespace.js ***!
\*****************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ activityNamespace: () => (/* binding */ activityNamespace)
/* harmony export */ });
const activityNamespace = "aws.connect.activity";
//# sourceMappingURL=activity-namespace.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/activity/lib-esm/index.js"
/*!****************************************************************!*\
!*** ./node_modules/@amazon-connect/activity/lib-esm/index.js ***!
\****************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ActivityRoutes: () => (/* reexport safe */ _routes__WEBPACK_IMPORTED_MODULE_1__.ActivityRoutes),
/* harmony export */ ActivityTopicKeys: () => (/* reexport safe */ _topic_keys__WEBPACK_IMPORTED_MODULE_4__.ActivityTopicKeys),
/* harmony export */ SessionExpirationWarningClient: () => (/* reexport safe */ _session_expiration_warning_client__WEBPACK_IMPORTED_MODULE_3__.SessionExpirationWarningClient),
/* harmony export */ activityNamespace: () => (/* reexport safe */ _activity_namespace__WEBPACK_IMPORTED_MODULE_0__.activityNamespace),
/* harmony export */ sendActivity: () => (/* reexport safe */ _send_activity_callback__WEBPACK_IMPORTED_MODULE_2__.sendActivity)
/* harmony export */ });
/* harmony import */ var _activity_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./activity-namespace */ "./node_modules/@amazon-connect/activity/lib-esm/activity-namespace.js");
/* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./routes */ "./node_modules/@amazon-connect/activity/lib-esm/routes.js");
/* harmony import */ var _send_activity_callback__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./send-activity-callback */ "./node_modules/@amazon-connect/activity/lib-esm/send-activity-callback.js");
/* harmony import */ var _session_expiration_warning_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./session-expiration-warning-client */ "./node_modules/@amazon-connect/activity/lib-esm/session-expiration-warning-client.js");
/* harmony import */ var _topic_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./topic-keys */ "./node_modules/@amazon-connect/activity/lib-esm/topic-keys.js");
//# sourceMappingURL=index.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/activity/lib-esm/routes.js"
/*!*****************************************************************!*\
!*** ./node_modules/@amazon-connect/activity/lib-esm/routes.js ***!
\*****************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ActivityRoutes: () => (/* binding */ ActivityRoutes)
/* harmony export */ });
var ActivityRoutes = /*#__PURE__*/ function(ActivityRoutes) {
ActivityRoutes["sendActivity"] = "sendActivity";
return ActivityRoutes;
}({});
//# sourceMappingURL=routes.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/activity/lib-esm/send-activity-callback.js"
/*!*********************************************************************************!*\
!*** ./node_modules/@amazon-connect/activity/lib-esm/send-activity-callback.js ***!
\*********************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ sendActivity: () => (/* binding */ sendActivity)
/* harmony export */ });
/* harmony import */ var _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @amazon-connect/core */ "./node_modules/@amazon-connect/core/lib-esm/index.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash.debounce */ "./node_modules/lodash.debounce/index.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _activity_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./activity-namespace */ "./node_modules/@amazon-connect/activity/lib-esm/activity-namespace.js");
/* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./routes */ "./node_modules/@amazon-connect/activity/lib-esm/routes.js");
const DEFAULT_DEBOUNCE_TIME = 1000;
let loggerCount = 0;
let logger;
let debouncedSendActivity;
/**
* Sends activity signals to keep agent active
* @param provider
*/ function sendActivity(provider) {
if (!debouncedSendActivity) {
logger = new _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__.ConnectLogger({
provider,
source: _activity_namespace__WEBPACK_IMPORTED_MODULE_2__.activityNamespace
});
logger.debug("Creating activity callback..");
const action = ()=>{
void sendActivityRequest({
provider
});
};
debouncedSendActivity = lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default()(action, DEFAULT_DEBOUNCE_TIME, {
leading: true,
trailing: false
});
}
debouncedSendActivity();
}
async function sendActivityRequest({ provider }) {
try {
await provider.getProxy().request(_activity_namespace__WEBPACK_IMPORTED_MODULE_2__.activityNamespace, _routes__WEBPACK_IMPORTED_MODULE_3__.ActivityRoutes.sendActivity);
loggerCount = 0;
} catch (error) {
if (loggerCount < 5) {
logger.error("Failed to record agent activity", {
error,
errorCount: loggerCount
});
loggerCount++;
}
}
}
//# sourceMappingURL=send-activity-callback.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/activity/lib-esm/session-expiration-warning-client.js"
/*!********************************************************************************************!*\
!*** ./node_modules/@amazon-connect/activity/lib-esm/session-expiration-warning-client.js ***!
\********************************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ SessionExpirationWarningClient: () => (/* binding */ SessionExpirationWarningClient)
/* harmony export */ });
/* harmony import */ var _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @amazon-connect/core */ "./node_modules/@amazon-connect/core/lib-esm/index.js");
/* harmony import */ var _activity_namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./activity-namespace */ "./node_modules/@amazon-connect/activity/lib-esm/activity-namespace.js");
/* harmony import */ var _topic_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./topic-keys */ "./node_modules/@amazon-connect/activity/lib-esm/topic-keys.js");
class SessionExpirationWarningClient extends _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__.ConnectClient {
onExpirationWarning(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_2__.ActivityTopicKeys.expirationWarning
}, handler);
}
offExpirationWarning(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_2__.ActivityTopicKeys.expirationWarning
}, handler);
}
onExpirationWarningCleared(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_2__.ActivityTopicKeys.expirationWarningCleared
}, handler);
}
offExpirationWarningCleared(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_2__.ActivityTopicKeys.expirationWarningCleared
}, handler);
}
onSessionExtensionError(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_2__.ActivityTopicKeys.sessionExtensionError
}, handler);
}
offSessionExtensionError(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_2__.ActivityTopicKeys.sessionExtensionError
}, handler);
}
constructor(config){
super(_activity_namespace__WEBPACK_IMPORTED_MODULE_1__.activityNamespace, config);
}
}
//# sourceMappingURL=session-expiration-warning-client.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/activity/lib-esm/topic-keys.js"
/*!*********************************************************************!*\
!*** ./node_modules/@amazon-connect/activity/lib-esm/topic-keys.js ***!
\*********************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ActivityTopicKeys: () => (/* binding */ ActivityTopicKeys)
/* harmony export */ });
var ActivityTopicKeys = /*#__PURE__*/ function(ActivityTopicKeys) {
ActivityTopicKeys["expirationWarning"] = "expiration-warning";
ActivityTopicKeys["expirationWarningCleared"] = "expiration-warning-cleared";
ActivityTopicKeys["sessionExtensionError"] = "session-extension-error";
return ActivityTopicKeys;
}({});
//# sourceMappingURL=topic-keys.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/agent-client.js"
/*!**********************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/agent-client.js ***!
\**********************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AgentClient: () => (/* binding */ AgentClient)
/* harmony export */ });
/* harmony import */ var _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @amazon-connect/core */ "./node_modules/@amazon-connect/core/lib-esm/index.js");
/* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./namespace */ "./node_modules/@amazon-connect/contact/lib-esm/namespace.js");
/* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./routes */ "./node_modules/@amazon-connect/contact/lib-esm/routes.js");
/* harmony import */ var _topic_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./topic-keys */ "./node_modules/@amazon-connect/contact/lib-esm/topic-keys.js");
class AgentClient extends _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__.ConnectClientWithOptionalConfig {
async getARN() {
const { ARN } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getARN);
return ARN;
}
async getName() {
const { name } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getName);
return name;
}
/**
* @deprecated Use `getAvailabilityState` instead. Will be removed in a future major version.
*/ getState() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getState);
}
getRoutingProfile() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getRoutingProfile);
}
getChannelConcurrency() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getChannelConcurrency);
}
async getExtension() {
const { extension } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getExtension);
return extension;
}
/**
* @deprecated Use `VoiceClient.listDialableCountries` instead.
*/ async getDialableCountries() {
const { dialableCountries } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getDialableCountries);
return dialableCountries;
}
/**
* @deprecated Use `onAvailabilityStateChanged` instead. Will be removed in a future major version.
*/ onStateChanged(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.StateChanged
}, handler);
}
/**
* @deprecated Use `offAvailabilityStateChanged` instead. Will be removed in a future major version.
*/ offStateChanged(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.StateChanged
}, handler);
}
/**
* Subscribes to connection health status change events.
*
* @param handler - The handler function to invoke when the connection status changes.
*/ onNetworkConnectionStatusChanged(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.NetworkConnectionStatusChanged
}, handler);
}
/**
* Unsubscribes from connection health status change events.
*
* @param handler - The handler function to remove from the subscription.
*/ offNetworkConnectionStatusChanged(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.NetworkConnectionStatusChanged
}, handler);
}
/**
* Returns the current connection health status.
*
* Use this to check the connection status at any point,
* regardless of when event subscriptions were registered.
*
* @returns The current connection status and timestamp.
*/ getNetworkConnectionStatus() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getNetworkConnectionStatus);
}
setAvailabilityState(agentStateARN) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.setAvailabilityState, {
agentStateARN
});
}
setAvailabilityStateByName(agentStateName) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.setAvailabilityStateByName, {
agentStateName
});
}
setOffline() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.setOffline, {});
}
listAvailabilityStates() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.listAvailabilityStates);
}
listQuickConnects(queueARNs, options) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.listQuickConnects, {
queueARNs,
options
});
}
onEnabledChannelListChanged(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.EnabledChannelListChanged
}, handler);
}
offEnabledChannelListChanged(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.EnabledChannelListChanged
}, handler);
}
onRoutingProfileChanged(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.RoutingProfileChanged
}, handler);
}
offRoutingProfileChanged(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.RoutingProfileChanged
}, handler);
}
/**
* Returns the agent's default outbound queue from their routing profile.
*/ getDefaultOutboundQueue() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getDefaultOutboundQueue);
}
/**
* Returns all queues in the agent's current routing profile.
*/ getRoutingProfileQueues() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getRoutingProfileQueues);
}
/**
* Returns the agent's current availability state, plus an optional `nextState`
* if the backend has queued a pending state transition until contacts clear.
*/ getAvailabilityState() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.getAvailabilityState);
}
/**
* Returns the list of security profile permissions for the current agent.
*/ async listSecurityProfilePermissions() {
const { permissions } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.AgentRoutes.listSecurityProfilePermissions);
return permissions;
}
/**
* Subscribes to availability state change events.
*/ onAvailabilityStateChanged(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.AvailabilityStateChanged
}, handler);
}
/**
* Unsubscribes from availability state change events.
*/ offAvailabilityStateChanged(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.AvailabilityStateChanged
}, handler);
}
/**
* Subscribes to next-availability-state change events. Fires when the
* agent has a pending state transition queued and that pending state changes.
*/ onNextAvailabilityStateChanged(handler) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.NextAvailabilityStateChanged
}, handler);
}
/**
* Unsubscribes from next-availability-state change events.
*/ offNextAvailabilityStateChanged(handler) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.AgentTopicKey.NextAvailabilityStateChanged
}, handler);
}
constructor(config){
super(_namespace__WEBPACK_IMPORTED_MODULE_1__.contactNamespace, config);
}
}
//# sourceMappingURL=agent-client.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/contact-client.js"
/*!************************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/contact-client.js ***!
\************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ContactClient: () => (/* binding */ ContactClient)
/* harmony export */ });
/* harmony import */ var _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @amazon-connect/core */ "./node_modules/@amazon-connect/core/lib-esm/index.js");
/* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./namespace */ "./node_modules/@amazon-connect/contact/lib-esm/namespace.js");
/* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./routes */ "./node_modules/@amazon-connect/contact/lib-esm/routes.js");
/* harmony import */ var _topic_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./topic-keys */ "./node_modules/@amazon-connect/contact/lib-esm/topic-keys.js");
class ContactClient extends _amazon_connect_core__WEBPACK_IMPORTED_MODULE_0__.ConnectClientWithOptionalConfig {
// requests
getAttributes(contactId, attributes) {
const requestData = {
contactId,
attributes
};
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getAttributes, requestData);
}
async getAttribute(contactId, attribute) {
const result = await this.getAttributes(contactId, [
attribute
]);
return result[attribute];
}
async getInitialContactId(contactId) {
const data = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getInitialContactId, {
contactId
});
return data.initialContactId;
}
/**
* @deprecated Use `getChannelType` instead.
*/ async getType(contactId) {
const data = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getType, {
contactId
});
return data.type;
}
async getStateDuration(contactId) {
const data = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getStateDuration, {
contactId
});
return data.stateDuration;
}
getQueue(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getQueue, {
contactId
});
}
async getQueueTimestamp(contactId) {
const data = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getQueueTimestamp, {
contactId
});
return data.queueTimestamp;
}
onStartingAcw(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.StartingACW,
parameter: contactId
}, handler);
}
/**
* @deprecated Use `onCleared` instead.
*/ onDestroyed(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Destroyed,
parameter: contactId
}, handler);
}
onConnected(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Connected,
parameter: contactId
}, handler);
}
onMissed(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Missed,
parameter: contactId
}, handler);
}
onIncoming(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Incoming,
parameter: contactId
}, handler);
}
offStartingAcw(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.StartingACW,
parameter: contactId
}, handler);
}
/**
* @deprecated Use `offCleared` instead.
*/ offDestroyed(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Destroyed,
parameter: contactId
}, handler);
}
offMissed(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Missed,
parameter: contactId
}, handler);
}
offIncoming(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Incoming,
parameter: contactId
}, handler);
}
offConnected(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Connected,
parameter: contactId
}, handler);
}
/**
* Subscribes to events fired while a contact is being connected.
*
* @param handler - Event handler invoked when a contact transitions into the connecting state
* @param contactId - Optional contact ID to filter events for a specific contact
*/ onConnecting(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Connecting,
parameter: contactId
}, handler);
}
/**
* Unsubscribes from contact connecting events.
*/ offConnecting(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Connecting,
parameter: contactId
}, handler);
}
/**
* Subscribes to events fired when a contact enters the error state.
*
* @param handler - Event handler invoked when a contact transitions into the error state
* @param contactId - Optional contact ID to filter events for a specific contact
*/ onError(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Error,
parameter: contactId
}, handler);
}
/**
* Unsubscribes from contact error events.
*/ offError(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Error,
parameter: contactId
}, handler);
}
/**
* Subscribes to events fired when a contact enters the pending state.
*
* @param handler - Event handler invoked when a contact transitions into the pending state
* @param contactId - Optional contact ID to filter events for a specific contact
*/ onPending(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Pending,
parameter: contactId
}, handler);
}
/**
* Unsubscribes from contact pending events.
*/ offPending(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Pending,
parameter: contactId
}, handler);
}
async getChannelType(contactId) {
return await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getChannelType, {
contactId
});
}
addParticipant(contactId, quickConnect) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.addParticipant, {
contactId,
quickConnect
});
}
transfer(contactId, quickConnect) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.transfer, {
contactId,
quickConnect
});
}
onCleared(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Cleared,
parameter: contactId
}, handler);
}
offCleared(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactLifecycleTopicKey.Cleared,
parameter: contactId
}, handler);
}
accept(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.accept, {
contactId
});
}
/**
* Rejects an incoming contact.
*
* @param contactId - The unique identifier for the contact
*/ reject(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.reject, {
contactId
});
}
/**
* Disconnects the current user from the contact.
*
* @param contactId - The unique identifier for the contact
*/ disconnectSelf(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.disconnectSelf, {
contactId
});
}
/**
* Returns whether the contact is configured for auto-accept.
*
* @param contactId - The unique identifier for the contact
* @returns Promise resolving to `true` when auto-accept is enabled
*/ async isAutoAcceptEnabled(contactId) {
const { isAutoAcceptEnabled } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.isAutoAcceptEnabled, {
contactId
});
return isAutoAcceptEnabled;
}
clear(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.clear, {
contactId
});
}
async isPreviewMode(contactId) {
const response = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.isPreviewMode, {
contactId
});
return response.isPreviewMode;
}
async getPreviewConfiguration(contactId) {
const response = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getPreviewConfiguration, {
contactId
});
return response;
}
async engagePreviewContact(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.engagePreviewContact, {
contactId
});
}
async getContactRegion(contactId) {
const { region } = await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getContactRegion, {
contactId
});
return region;
}
async getInstanceDetails(contactId) {
return await this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getInstanceDetails, {
contactId
});
}
/**
* Retrieves all participants associated with a specific contact.
* @param contactId - The unique identifier for the contact
* @returns Promise resolving to array of participant information
*/ listParticipants(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.listParticipants, {
contactId
});
}
/**
* Retrieves information for a specific participant.
* @param participantId - The unique identifier for the participant
* @returns Promise resolving to participant information
*/ getParticipant(participantId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getParticipant, {
participantId
});
}
/**
* Retrieves the current state of a specific participant.
* @param participantId - The unique identifier for the participant
* @returns Promise resolving to current participant state
*/ getParticipantState(participantId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getParticipantState, {
participantId
});
}
/**
* Disconnects a specific participant from the contact.
* @param participantId - The unique identifier for the participant to disconnect
* @returns Promise resolving when the participant is disconnected
*/ disconnectParticipant(participantId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.disconnectParticipant, {
participantId
});
}
/**
* Retrieves detailed information for a specific contact by its ID.
* @param contactId - The unique identifier for the contact
* @returns Promise resolving to detailed contact information
*/ getContact(contactId) {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.getContact, {
contactId
});
}
/**
* Lists all contacts for the current agent.
* @returns Promise resolving to array of contact information
*/ listContacts() {
return this.context.proxy.request(_routes__WEBPACK_IMPORTED_MODULE_2__.ContactRoutes.listContacts);
}
/**
* Subscribes to participant added events.
* @param handler - Event handler function to call when participants are added
* @param contactId - Optional contact ID to filter events for a specific contact
*/ onParticipantAdded(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactTopicKey.ParticipantAdded,
parameter: contactId
}, handler);
}
/**
* Unsubscribes from participant added events.
* @param handler - Event handler function to remove
* @param contactId - Optional contact ID to unsubscribe from specific contact events
*/ offParticipantAdded(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactTopicKey.ParticipantAdded,
parameter: contactId
}, handler);
}
/**
* Subscribes to participant disconnected events.
* @param handler - Event handler function to call when participants disconnect
* @param contactId - Optional contact ID to filter events for a specific contact
*/ onParticipantDisconnected(handler, contactId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactTopicKey.ParticipantDisconnected,
parameter: contactId
}, handler);
}
/**
* Unsubscribes from participant disconnected events.
* @param handler - Event handler function to remove
* @param contactId - Optional contact ID to unsubscribe from specific contact events
*/ offParticipantDisconnected(handler, contactId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactTopicKey.ParticipantDisconnected,
parameter: contactId
}, handler);
}
/**
* Subscribes to participant state change events.
* @param handler - Event handler function to call when participant state changes
* @param participantId - Optional participant ID to filter events for a specific participant
*/ onParticipantStateChanged(handler, participantId) {
this.context.proxy.subscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactTopicKey.ParticipantStateChanged,
parameter: participantId
}, handler);
}
/**
* Unsubscribes from participant state change events.
* @param handler - Event handler function to remove
* @param participantId - Optional participant ID to unsubscribe from specific participant events
*/ offParticipantStateChanged(handler, participantId) {
this.context.proxy.unsubscribe({
key: _topic_keys__WEBPACK_IMPORTED_MODULE_3__.ContactTopicKey.ParticipantStateChanged,
parameter: participantId
}, handler);
}
constructor(config){
super(_namespace__WEBPACK_IMPORTED_MODULE_1__.contactNamespace, config);
}
}
//# sourceMappingURL=contact-client.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/index.js"
/*!***************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/index.js ***!
\***************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AgentClient: () => (/* reexport safe */ _agent_client__WEBPACK_IMPORTED_MODULE_0__.AgentClient),
/* harmony export */ AgentRoutes: () => (/* reexport safe */ _routes__WEBPACK_IMPORTED_MODULE_3__.AgentRoutes),
/* harmony export */ AgentTopicKey: () => (/* reexport safe */ _topic_keys__WEBPACK_IMPORTED_MODULE_5__.AgentTopicKey),
/* harmony export */ ContactClient: () => (/* reexport safe */ _contact_client__WEBPACK_IMPORTED_MODULE_1__.ContactClient),
/* harmony export */ ContactLifecycleTopicKey: () => (/* reexport safe */ _topic_keys__WEBPACK_IMPORTED_MODULE_5__.ContactLifecycleTopicKey),
/* harmony export */ ContactRoutes: () => (/* reexport safe */ _routes__WEBPACK_IMPORTED_MODULE_3__.ContactRoutes),
/* harmony export */ ContactStateType: () => (/* reexport safe */ _states__WEBPACK_IMPORTED_MODULE_4__.ContactStateType),
/* harmony export */ ContactTopicKey: () => (/* reexport safe */ _topic_keys__WEBPACK_IMPORTED_MODULE_5__.ContactTopicKey),
/* harmony export */ ParticipantStateType: () => (/* reexport safe */ _states__WEBPACK_IMPORTED_MODULE_4__.ParticipantStateType),
/* harmony export */ contactNamespace: () => (/* reexport safe */ _namespace__WEBPACK_IMPORTED_MODULE_2__.contactNamespace)
/* harmony export */ });
/* harmony import */ var _agent_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./agent-client */ "./node_modules/@amazon-connect/contact/lib-esm/agent-client.js");
/* harmony import */ var _contact_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./contact-client */ "./node_modules/@amazon-connect/contact/lib-esm/contact-client.js");
/* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./namespace */ "./node_modules/@amazon-connect/contact/lib-esm/namespace.js");
/* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./routes */ "./node_modules/@amazon-connect/contact/lib-esm/routes.js");
/* harmony import */ var _states__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./states */ "./node_modules/@amazon-connect/contact/lib-esm/states.js");
/* harmony import */ var _topic_keys__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./topic-keys */ "./node_modules/@amazon-connect/contact/lib-esm/topic-keys.js");
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./types */ "./node_modules/@amazon-connect/contact/lib-esm/types.js");
//# sourceMappingURL=index.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/namespace.js"
/*!*******************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/namespace.js ***!
\*******************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ contactNamespace: () => (/* binding */ contactNamespace)
/* harmony export */ });
const contactNamespace = "aws.connect.contact";
//# sourceMappingURL=namespace.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/routes.js"
/*!****************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/routes.js ***!
\****************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AgentRoutes: () => (/* binding */ AgentRoutes),
/* harmony export */ ContactRoutes: () => (/* binding */ ContactRoutes)
/* harmony export */ });
var AgentRoutes = /*#__PURE__*/ function(AgentRoutes) {
AgentRoutes["getARN"] = "agent/getARN";
AgentRoutes["getName"] = "agent/getName";
AgentRoutes["getState"] = "agent/getState";
AgentRoutes["getRoutingProfile"] = "agent/getRoutingProfile";
AgentRoutes["getChannelConcurrency"] = "agent/getChannelConcurrency";
AgentRoutes["getExtension"] = "agent/getExtension";
AgentRoutes["getDialableCountries"] = "agent/getDialableCountries";
AgentRoutes["setAvailabilityState"] = "agent/setAvailabilityState";
AgentRoutes["setAvailabilityStateByName"] = "agent/setAvailabilityStateByName";
AgentRoutes["setOffline"] = "agent/setOffline";
AgentRoutes["listAvailabilityStates"] = "agent/listAvailabilityStates";
AgentRoutes["listQuickConnects"] = "agent/listQuickConnects";
AgentRoutes["getNetworkConnectionStatus"] = "agent/getNetworkConnectionStatus";
AgentRoutes["getDefaultOutboundQueue"] = "agent/getDefaultOutboundQueue";
AgentRoutes["getRoutingProfileQueues"] = "agent/getRoutingProfileQueues";
AgentRoutes["getAvailabilityState"] = "agent/getAvailabilityState";
AgentRoutes["listSecurityProfilePermissions"] = "agent/listSecurityProfilePermissions";
return AgentRoutes;
}({});
var ContactRoutes = /*#__PURE__*/ function(ContactRoutes) {
ContactRoutes["getAttributes"] = "contact/getAttributes";
ContactRoutes["getInitialContactId"] = "contact/getInitialContactId";
ContactRoutes["getType"] = "contact/getType";
ContactRoutes["getStateDuration"] = "contact/getStateDuration";
ContactRoutes["getQueue"] = "contact/getQueue";
ContactRoutes["getQueueTimestamp"] = "contact/getQueueTimestamp";
ContactRoutes["getDescription"] = "contact/getDescription";
ContactRoutes["getReferences"] = "contact/getReferences";
ContactRoutes["getChannelType"] = "contact/getChannelType";
ContactRoutes["addParticipant"] = "contact/addParticipant";
ContactRoutes["transfer"] = "contact/transfer";
ContactRoutes["accept"] = "contact/accept";
ContactRoutes["clear"] = "contact/clear";
ContactRoutes["reject"] = "contact/reject";
ContactRoutes["disconnectSelf"] = "contact/disconnectSelf";
ContactRoutes["isAutoAcceptEnabled"] = "contact/isAutoAcceptEnabled";
ContactRoutes["isPreviewMode"] = "contact/isPreviewMode";
ContactRoutes["getPreviewConfiguration"] = "contact/getPreviewConfiguration";
ContactRoutes["engagePreviewContact"] = "contact/engagePreviewContact";
ContactRoutes["getContactRegion"] = "contact/getContactRegion";
ContactRoutes["getInstanceDetails"] = "contact/getInstanceDetails";
ContactRoutes["listParticipants"] = "contact/listParticipants";
ContactRoutes["getParticipant"] = "contact/getParticipant";
ContactRoutes["getParticipantState"] = "contact/getParticipantState";
ContactRoutes["disconnectParticipant"] = "contact/disconnectParticipant";
ContactRoutes["getContact"] = "contact/getContact";
ContactRoutes["listContacts"] = "contact/listContacts";
return ContactRoutes;
}({});
//# sourceMappingURL=routes.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/states.js"
/*!****************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/states.js ***!
\****************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ContactStateType: () => (/* binding */ ContactStateType),
/* harmony export */ ParticipantStateType: () => (/* binding */ ParticipantStateType)
/* harmony export */ });
/**
* States that a contact can be in.
*/ var ContactStateType = /*#__PURE__*/ function(ContactStateType) {
return ContactStateType;
}({});
/**
* States that a participant can be in.
*/ var ParticipantStateType = /*#__PURE__*/ function(ParticipantStateType) {
ParticipantStateType["Connecting"] = "connecting";
ParticipantStateType["Connected"] = "connected";
ParticipantStateType["Hold"] = "hold";
ParticipantStateType["Disconnected"] = "disconnected";
ParticipantStateType["Rejected"] = "rejected";
ParticipantStateType["SilentMonitor"] = "silent_monitor";
ParticipantStateType["Barge"] = "barge";
return ParticipantStateType;
}({});
//# sourceMappingURL=states.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/topic-keys.js"
/*!********************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/topic-keys.js ***!
\********************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AgentTopicKey: () => (/* binding */ AgentTopicKey),
/* harmony export */ ContactLifecycleTopicKey: () => (/* binding */ ContactLifecycleTopicKey),
/* harmony export */ ContactTopicKey: () => (/* binding */ ContactTopicKey)
/* harmony export */ });
var ContactLifecycleTopicKey = /*#__PURE__*/ function(ContactLifecycleTopicKey) {
ContactLifecycleTopicKey["StartingACW"] = "contact/acw";
ContactLifecycleTopicKey["Connected"] = "contact/connected";
ContactLifecycleTopicKey["Destroyed"] = "contact/destroy";
ContactLifecycleTopicKey["Missed"] = "contact/missed";
ContactLifecycleTopicKey["Cleared"] = "contact/cleared";
ContactLifecycleTopicKey["Incoming"] = "contact/incoming";
ContactLifecycleTopicKey["Connecting"] = "contact/connecting";
ContactLifecycleTopicKey["Error"] = "contact/error";
ContactLifecycleTopicKey["Pending"] = "contact/pending";
return ContactLifecycleTopicKey;
}({});
var AgentTopicKey = /*#__PURE__*/ function(AgentTopicKey) {
AgentTopicKey["StateChanged"] = "agent/stateChange";
AgentTopicKey["RoutingProfileChanged"] = "agent/routingProfileChanged";
AgentTopicKey["EnabledChannelListChanged"] = "agent/enabledChannelListChanged";
AgentTopicKey["NetworkConnectionStatusChanged"] = "agent/networkConnectionStatusChanged";
AgentTopicKey["AvailabilityStateChanged"] = "agent/availabilityStateChanged";
AgentTopicKey["NextAvailabilityStateChanged"] = "agent/nextAvailabilityStateChanged";
return AgentTopicKey;
}({});
var ContactTopicKey = /*#__PURE__*/ function(ContactTopicKey) {
ContactTopicKey["ParticipantAdded"] = "contact/participantAdded";
ContactTopicKey["ParticipantDisconnected"] = "contact/participantDisconnected";
ContactTopicKey["ParticipantStateChanged"] = "contact/participantStateChanged";
return ContactTopicKey;
}({});
//# sourceMappingURL=topic-keys.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/contact/lib-esm/types.js"
/*!***************************************************************!*\
!*** ./node_modules/@amazon-connect/contact/lib-esm/types.js ***!
\***************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/**
* Handler function for network connection status change events.
*/
//# sourceMappingURL=types.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/core/lib-esm/client/connect-client.js"
/*!****************************************************************************!*\
!*** ./node_modules/@amazon-connect/core/lib-esm/client/connect-client.js ***!
\****************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ConnectClient: () => (/* binding */ ConnectClient),
/* harmony export */ ConnectClientWithOptionalConfig: () => (/* binding */ ConnectClientWithOptionalConfig)
/* harmony export */ });
/* harmony import */ var _get_module_context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-module-context */ "./node_modules/@amazon-connect/core/lib-esm/client/get-module-context.js");
function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
class ConnectClient {
constructor(namespace, config){
_define_property(this, "context", void 0);
_define_property(this, "namespace", void 0);
this.namespace = namespace;
this.context = (0,_get_module_context__WEBPACK_IMPORTED_MODULE_0__.getModuleContext)({
namespace,
config
});
}
}
class ConnectClientWithOptionalConfig {
constructor(namespace, config){
_define_property(this, "context", void 0);
_define_property(this, "namespace", void 0);
this.namespace = namespace;
this.context = (0,_get_module_context__WEBPACK_IMPORTED_MODULE_0__.getModuleContext)({
namespace,
config
});
}
}
//# sourceMappingURL=connect-client.js.map
/***/ },
/***/ "./node_modules/@amazon-connect/core/lib-esm/client/get-module-context.js"
/*!********************************************************************************!*\
!*** ./node_modules/@amazon-connect/core/lib-esm/client/get-module-context.js ***!
\********************************************************************************/
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__web