Options
All
  • Public
  • Public/Protected
  • All
Menu

skill activity Provider Class

Hierarchy

  • CXoneSkillActivityProvider

Index

Constructors

Properties

acdSession: ACDSessionManager = ACDSessionManager.instance
baseUri: string = ''
cxoneClient: CXoneClient = ...
entityCounts: { skillList: number } = ...

Type declaration

  • skillList: number
isOutbound: boolean = false
limit: number = -1
logger: Logger = ...
mediaTypeId: number = undefined
offset: number = -1
pollingWorker: any
searchText: string = ''
skillActivityPollingRequest: SkillActivityPollingRequest = {}
totalSearchResultCount: { skillList: number } = ...

Type declaration

  • skillList: number
utilService: HttpUtilService = ...

Methods

  • method to filter skill list on the basis on mediatype, isActive and isOutbound property

    example
    this.filterActiveSkillswithMediatype([SkillActivityEvent, SkillActivityEvent]);
    

    Parameters

    Returns SkillActivityEvent[]

  • method to filter skill list on the basis on mediatypeid and isoutbound property

    example
    this.filterSkillwithMediatype();
    

    Parameters

    Returns SkillActivityEvent[]

  • This method to format skill activity response

    example
    formatSkillActivityResponse(response);
    

    Parameters

    • response: any

      activity api response object

    Returns SkillActivityEvent[]

    • array of skill activity's
  • getSkillActivityPolling(): any
  • Checks if skill activity polling is running

    example
    const isSkillActivityPolling =  this.getSkillActivityPolling();
    

    Returns any

    • local storage key for skill activity polling
  • getSkillsFromIndexDB(): Promise<void>
  • Used to get the skill data from index DB

    example
    getSkillsFromIndexDB();
    

    Returns Promise<void>

  • Used to handle the pagination based on the offset and limit in case of normal directory request flow without search request

    Returns Promise<SkillActivityResponse>

  • handleSkillActivityResponse(response: any): Promise<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 activity data

    example
    handleSkillActivityResponse(data);
    

    Parameters

    • response: any

      activity api response object

    Returns Promise<void>

  • initSkillActivityWorker(): void
  • Use to initializing the skill activity worker and will return the method inside the worker

    example
    this.initSkillActivityWorker();
    

    Returns void

  • restartWorker(): void
  • Restarts skill activity worker when new auth token received from Refresh token flow

    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

  • Used to initiate the polling for skill activity data

    example
    const skillActivityProvider = new CXoneSkillActivityProvider();
    this.skillActivityProvider.startPolling();

    Parameters

    Returns Promise<void>

  • terminateAgentWorker(): void
  • Use to terminate the skill activity worker

    example
    this.terminateAgentWorker
    

    Returns void

  • terminatePolling(): void
  • Used to terminate the polling of skill activity

    example
    const agentActivityProvider = new CXoneSkillActivityProvider();
    this.agentActivityProvider.terminatePolling();

    Returns void

Generated using TypeDoc