get instance for agent auth and session
Method to create singleton object of the class
@example
const cxoneClient = CXoneClient.instance();
Method to clear local and session storage
Clears out all Local Storage except Settings Any other items thst should persist can be added if needed.
Lazily establishes the Copilot (Agent Assist) WebSocket connection when enabled and not already connected.
This method checks the FeatureToggles.LAZY_LOAD_COPILOT_WEBSOCKET feature toggle and only attempts to connect if the Copilot WebSocket has not yet been marked as connected via CXoneClient.getCopilotWsConnected.
Connection details are derived from:
aahNotificationWssUriicAgentId, userId, icBUIdIf FeatureToggles.MULTI_ACD_WEBSOCKET is enabled, the connection identifier uses userId;
otherwise it uses icAgentId. The WebSocket URL is constructed as:
aahNotificationWssUri?agentId=<connectionIdentifier>&BUid=<icBUId>.
On connection attempt, the internal "connected" flag is set optimistically. If the connection attempt throws, the flag is reset and an error is logged.
void
create Agent Assist Web Socket service object
create auto summary notification service object
create auto summary service object
Method to get feedback categories and priorities
handler for update the refresh token
method to initialize AgentIntegrationConfigurationService
Method to initialize auth dependent module when authentication gets successful
Subscription for leader change event
Method to submit feedback issue
subscribe the agent assist event for copilot provider
Subscription for request message over broadcast channel
Subscription for response message over broadcast channel
Assigns selected case id to user in CXone sdk
contactId, interactionId, mediaType
Method to terminate util worker
Gets the Copilot notification WebSocket connection status.
True if the websocket is connected (or connection is in progress).
Sets the Copilot notification WebSocket connection flag.
True if the websocket is connected (or connection is in progress).
Generated using TypeDoc
This is the base class for ACD