Options
All
  • Public
  • Public/Protected
  • All
Menu

Indicators manager class

Hierarchy

  • CXoneIndicatorManager

Index

Constructors

  • get instance for admin service

    example
    const indicatorManager = new IndicatorManager();
    

    Returns CXoneIndicatorManager

Properties

acdSessionManager: ACDSessionManager = ...
adminService: AdminService = ...
agentIndicatorsEvent: Subject<CXoneIndicator[]> = ...
agentIndicatorsEventObservable: ObservableValue<CXoneIndicator[], CXoneIndicator[], any> = ...
contactIndicator: CXoneIndicator[] = []
contactIndicatorsEvent: Subject<CXoneIndicator[]> = ...
contactIndicatorsEventObservable: ObservableValue<CXoneIndicator[], CXoneIndicator[], any> = ...
logger: Logger = ...
validationUtils: ValidationUtils = ...

Methods

  • dispose(): void
  • Dispose observable values when sequence ends

    example

    CXoneClient.instance.indicator.dipose();

    Returns void

  • Handles indicators based on actionType

    example
    this.handleIndicatorActions(indicators);
    

    Parameters

    Returns CXoneIndicator[]

    • updated- indicators array
  • onCustomFormSubmit(event: any): void
  • Submit function for custom form

    example
    this.onCustomFormSubmit(submitEvent);
    

    Parameters

    • event: any

      submit event with form elements

    Returns void

  • parseSignalScriptParameters(input: string): { contactId: any; parameters: {} }
  • Method to parse the signal script parameters

    example
    parseSignalScriptParameters("\"384734477\" \"city\" \"state\" \"country\" \"\" \"\"");
    

    Parameters

    • input: string

    Returns { contactId: any; parameters: {} }

    • contactId: any
    • parameters: {}
      • [key: string]: any
  • parseSpawnParameters(input: string): { parameters: string; scriptName: string; skillId: number; startDate: string }
  • Method to parse the spawn script parameters

    example
    parseSpawnParameters("\"abc\\indicator_script\" 638173 \"\" \"\" \"\" \"\" \"\"")
    

    Parameters

    • input: string

      actionURI

    Returns { parameters: string; scriptName: string; skillId: number; startDate: string }

    • parameters: string
    • scriptName: string
    • skillId: number
    • startDate: string
  • Prepares html document for custom form indicator

    example
    this.prepareHtmlDocument(customIndicatorData);
    

    Parameters

    Returns CXoneIndicator

    • indicator data with embeded html
  • Used to start signal script

    example
    openSignalScript();
    

    Parameters

    Returns void

  • Method to call the spawn script

    example
    openSpawnScript();
    

    Parameters

    Returns void

  • updateAgentIndicator(): void
  • subscribe the update agent indicators event

    Returns void

  • updateContactIndicator(): void
  • subscribe the update contact indicators event

    Returns void

Generated using TypeDoc