Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to perform get admin api

Hierarchy

  • AdminService

Index

Constructors

Properties

accessToken: string = ''
agentIndicatorsInfo: CXoneIndicator[] = []
apiParser: ApiParser = ...
cxOneConfig: CXoneConfiguration = ...
logger: Logger = ...
userInfo: UserInfo = ...
utilService: HttpUtilService = ...
validationUtils: ValidationUtils = ...
singleton: AdminService

Accessors

  • Method to create singleton object of the class

    @example
    const agentSession = AdminService.instance;

    Returns AdminService

Methods

  • Method to return agent settings

    Returns Promise<AgentSettings>

    • return the agent settings
    @example
    getAgentSettings()
  • Method to return all indicators

    Returns Promise<CXoneIndicator[]>

    • returns all indicators
    @example
    getAllIndicators()
  • Method to return cxone branding profiles

    Returns Promise<CXoneSdkError | BrandingProfile>

    • returns the cxone branding profiles
    @example
    getBrandingProfile()
  • Method to return business unit features

    Returns Promise<CXoneSdkError | BusinessUnit>

    • returns the business unit features
    @example
    getBusinessUnit()
  • example
    const cxoneConfig = this.getCXoneConfig();
    

    Returns CXoneConfiguration

    • cxone configuration object
  • Method to return client data

    Returns Promise<string | CXoneSdkError>

    • returns the client data
    @example
    getClientData()
  • Method to return agent permissions

    Parameters

    • forceFetch: boolean = false

    Returns Promise<CXoneSdkError | Permissions[]>

    • return the agent permissions
    @example
    getPermissions()
  • getScriptByName(scriptName: string): Promise<number>
  • Method to call the script to get the skill Id

    example
    getScriptData('scriptName');
    

    Parameters

    • scriptName: string

    Returns Promise<number>

  • Method to get time stamp offset

    Returns Promise<number | CXoneSdkError>

    • number or CXoneSdkError
    @example
    getTimeStampOffset()
  • Method to return User Hub user details

    Returns Promise<HttpResponse | CXoneSdkError>

    • User Details
    @example
    getUHUserDetails()
  • Method to return aggregator service node url for uiq connection

    Returns Promise<HttpResponse | CXoneSdkError>

    • User Details
    @example
    getUiqHubUrl()
  • Fetches the details of loged in user

    Parameters

    • useCache: boolean = false

      True to use cached data if available

      @example
      getUserDetails(true)

    Returns Promise<CXoneUserDetails>

    Details of the User

  • Method to initialize the user details (i.e) cxoneConfig, userInfo and aceessToken

    example
    const agentSession = AdminService.instance.initialize(accessToken, config, userInfo);
    

    Parameters

    Returns void

  • Method to return client data

    Parameters

    • clientData: {}
      • [key: string]: any

    Returns Promise<string | CXoneSdkError>

    • returns the client data
    @example
    getClientData()
  • resizeEventQueue(sessionId: string, throttle: boolean): Promise<void>
  • Method to resize the event queue

    example
    resizeEventQueue('12345',true)
    

    Parameters

    • sessionId: string

      session id

    • throttle: boolean

      boolean value to throttle the event queue size

    Returns Promise<void>

    • Promise that resolves when the event queue is resized
  • Method to select agent location

    example
    selectUserLocation('123')
    

    Parameters

    • locationId: string

      location id

    Returns Promise<HttpResponse | CXoneSdkError>

    • User Details
  • setAccessToken(accessToken: string): void
  • example
    this.setAccessToken(accessToken);
    

    Parameters

    • accessToken: string

      access token

    Returns void

  • setTimeStampOffset(): Promise<number>
  • Method to set the server time offset in local storage

    example
    • setTimeStampOffset()

    Returns Promise<number>

  • Method to start the signal script

    example
    signalScript('123', {});
    

    Parameters

    • contactId: string

      contact id

    • parameters: any

    Returns Promise<HttpResponse | CXoneSdkError>

  • Method to call spawn script

    example
    spawnScript();
    

    Parameters

    • scriptId: number
    • skillId: number
    • parameters: string
    • startDate: string

    Returns Promise<HttpResponse | CXoneSdkError>

Generated using TypeDoc