Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to perform Agent state's

Hierarchy

  • AgentStateService

Index

Constructors

Properties

acdSession: ACDSessionManager = ...
agentStateDetails: AgentStateEvent
agentStateSubject: Subject<AgentStateEvent> = ...
auth: CXoneAuth
logger: Logger = ...
urlUtilSvc: UrlUtilsService = ...
utilService: HttpUtilService = ...

Accessors

  • Method to create singleton object of the class

    @example
    const agentStateManaget = AgentStateManager.instance;

    Returns AgentStateService

Methods

  • Method to return Team Unavailable Codes

    Parameters

    • updateCache: boolean = false
    • Optional teamId: string

    Returns Promise<CXoneSdkError | UnavailableCode[]>

    • returns Promise of Unavailable code
    @example
    getTeamUnavailableCodes(updateCache);
  • isAgentInWorkingState(state: string): boolean
  • Method to check the agent is working or not

    Parameters

    • state: string

      Agent state

      @example
      this.isAgentInWorkingState();

    Returns boolean

  • Service method to set agent state

    example
    const agentState = { state: 'Unavailable', reason:'Break' };
    setAgentState(agentState)

    Parameters

    • agentState: AgentState

      Updated agent state along with reason

    Returns Promise<HttpResponse | CXoneSdkError>

    • response from the setAgentState api
  • updateAgentCurrentState(): void
  • Method to update agent current state

    @example
    this.updateAgentCurrentState();

    Returns void

  • updateAgentStates(): void
  • Method to update agent states

    @example
    this.updateAgentStates();

    Returns void

Generated using TypeDoc