Options
All
  • Public
  • Public/Protected
  • All
Menu

Agent Queues Provider Class

Hierarchy

  • CXoneAgentQueuesProvider

Index

Constructors

Properties

acdSession: ACDSessionManager = ACDSessionManager.instance
agentId: string = ''
baseUri: string = ''
cxoneClient: CXoneClient = ...
logger: Logger = ...
pollingWorker: any
urlUtilService: UrlUtilsService = ...
utilService: HttpUtilService = ...

Methods

  • agentQueuesPolling(agentId: string): void
  • Used to initiate the polling for agent queue data

    example
    const agentQueuesProvider = new CXoneAgentQueuesProvider();
    this.agentQueuesProvider.agentQueuesPolling();

    Parameters

    • agentId: string

    Returns void

  • This method to format agent queues api response and return the agent queue model object

    example
    formatAgentQueueResponse(response);
    

    Parameters

    • response: any

      agent queue api response object

    Returns AgentQueues

    • agent queue
  • handleAgentQueueResponse(response: any): void
  • Callback method which will passed on to the worker and will be executed after the polling api response then will publish to the subject subscriber with the agent queue data

    example
    handleAgentQueueResponse(data);
    

    Parameters

    • response: any

      agent queue api response object

    Returns void

  • initAgentQueuesWorker(): void
  • Use to initializing the util worker and will return the method inside the worker

    example
    this.initAgentQueuesWorker();
    

    Returns void

  • restartWorker(agentId: string): void
  • Use to restart worker

    example
    this.restartWorker(agentId: string);
    

    Parameters

    • agentId: string

    Returns void

  • Used to set the directory base instance to access the subject from the base class

    example
    const agentQueuesProvider = new CXoneAgentQueuesProvider();
    agentQueuesProvider.setACDSdkBaseInstance(this);

    Parameters

    Returns void

  • terminatePolling(): void
  • Use to terminate the agent queue worker

    example
    this.terminatePolling
    

    Returns void

Generated using TypeDoc