Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handling contact services

Hierarchy

  • ContactService

Index

Constructors

  • example
    const contactSvc = new ContactService();
    

    Returns ContactService

Properties

TRANSFER_WORK_ITEM_SKILL: string = '/InContactAPI/services/v23.0/agent-sessions/{sessionId}/interactions/{contactId}/transfer-work-item-to-skill'
acdSession: ACDSessionManager = ...
logger: Logger = ...
utilService: HttpUtilService = ...

Methods

  • acceptConsultContact(contactId: string): Promise<HttpResponse>
  • Accept the incoming contact for consult

    example
    acceptConsultContact(23423423);
    

    Parameters

    • contactId: string

      contact id

    Returns Promise<HttpResponse>

  • Accept the incoming contact

    example
    acceptContact(23423423);
    

    Parameters

    • contactId: string

      contact id

    Returns Promise<HttpResponse>

  • Used to set the contact status to active

    example
    activateContact(23423423);
    

    Parameters

    • contactId: string

      contact id

    Returns Promise<HttpResponse>

  • Override AMD

    example
    amdOverride(23423423, 'answeringMachine')
    

    Parameters

    • contactId: string

      contact id

    • type: amdOverrideType

      'answeringMachine' | 'faxMachine' | 'badMachine'

    Returns Promise<HttpResponse>

  • This method to override answering machine. This should be used when a call is in active state

    example
    answeringMachineOverride(23423423)
    

    Parameters

    • contactId: string

      contact id

    • type: amdOverrideType

      'faxMachine' | 'badNumber'

    Returns Promise<HttpResponse>

  • End the contact

    example
    endContact(23423423);
    

    Parameters

    • contactId: string

      contact id

    Returns Promise<HttpResponse>

  • Reject the incoming contact

    example
    rejectContact(23423423);
    

    Parameters

    • contactId: string

      contact id

    Returns Promise<HttpResponse>

  • transferWorkItemContact(contactId: string, agentUserName: string): Promise<HttpResponse>
  • Method to transfer work item contact

    example
    transferWorkItemContact("123", "234");
    

    Parameters

    • contactId: string
    • agentUserName: string

    Returns Promise<HttpResponse>

  • transferWorkItemSkill(contactId: string, skillName: string): Promise<HttpResponse>
  • Method to transfer work item contact to a skill

    example
    transferWorkItemContact("123", "skill name");
    

    Parameters

    • contactId: string
    • skillName: string

    Returns Promise<HttpResponse>

Generated using TypeDoc