Options
All
  • Public
  • Public/Protected
  • All
Menu

UserSlot Provider Class

Hierarchy

  • CXoneUserSlotProvider

Index

Constructors

Properties

DIGITAL_STATE_POLLING_INTERVAL_MS: number = 120000
USER_SLOT_POLLING_INTERVAL_MS: number = 30000
acdSession: ACDSessionManager = ...
agentStateSubject: any
auth: CXoneAuth = CXoneAuth.instance
digitalContactManager: DigitalContactManager = ...
getUserSlotPollingisActive: boolean = false
loader: LoadWorker = ...
logger: CcfLogger = ...
updateUserSlotPollingisActive: boolean = false
user: CXoneUser = CXoneUser.instance
userSlotWorker: any
utilService: HttpUtilService = ...

Methods

  • getUserSlots(): void
  • Method to initiate UserSlot worker for digital contact

    example
    • getUserSlots()

    Returns void

  • handleResponse(resp: any): void
  • Callback method which will passed on to the worker and will be executed after digital user status api response then will use where we need

    example
    handleResponse(response);
    

    Parameters

    • resp: any

    Returns void

  • handleUserSlotSubscriptionResponse(response: any): void
  • Callback method which will passed on to the worker and will be executed after user slot epi response then will use where we need

    example
    handleUserSlotSubscriptionResponse(response);
    

    Parameters

    • response: any

      user slot subscription response

    Returns void

  • initUserSlotWorker(): void
  • Used for initializing the user slot worker and will return the method inside the worker

    example
    this.initUserSlotWorker()
    

    Returns void

  • restartWorker(): void
  • Use to restart worker

    example
    this.restartWorker();
    

    Returns void

  • Used to set the acd sdk base instance to access the subject from the base class

    example

    Parameters

    Returns void

  • terminatePolling(ifRestart?: boolean): void
  • Used to terminate the polling of user slot api

    example
    this.userSlotProvider.terminatePolling();
    

    Parameters

    • Optional ifRestart: boolean

    Returns void

  • terminateUserSlotPolling(): void
  • Used to terminate the polling of user slot api

    example
    this.userSlotProvider.terminateUserSlotPolling();
    

    Returns void

  • updateDigitalStatus(): void
  • Method to initiate digital agent status worker

    example
    this.updateDigitalStatus()
    

    Returns void

Generated using TypeDoc