Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handling voice controls

Hierarchy

  • VoiceService

Index

Constructors

  • example
    const voiceSvc = new VoiceService();
    

    Returns VoiceService

Properties

TRANSFER_VOICE_MAIL_SKILL: string = '/InContactAPI/services/V4.0/agent-sessions/{sessionId}/interactions/{contactId}/transfer-voicemail-to-skill'
acdSession: ACDSessionManager = ...
isAddContactInProgress: boolean = false
logger: Logger = ...
utilService: HttpUtilService = ...

Methods

  • Method to make the conference call

    example
    conferenceCall();
    

    Returns Promise<HttpResponse>

  • Method to hold the conference call

    example
    conferenceHold();
    

    Parameters

    • conferenceNo: string

    Returns Promise<HttpResponse>

  • conferenceJoin(contactId: string, conferenceNo: string): Promise<HttpResponse>
  • Method to join in to the conference call

    example
    conferenceJoin();
    

    Parameters

    • contactId: string
    • conferenceNo: string

    Returns Promise<HttpResponse>

  • conferenceResume(conferenceNo: string): Promise<HttpResponse>
  • Method to resume the conference call

    example
    conferenceResume();
    

    Parameters

    • conferenceNo: string

    Returns Promise<HttpResponse>

  • Method to make a consult to agent

    example
    consultAgent(12345)
    

    Parameters

    • agentId: number

      agent id

    Returns Promise<HttpResponse>

  • dialAgent(agentId: string, parentContactId: string): Promise<HttpResponse>
  • This method to make a call with agent

    example
    dialAgent('23344','234234324');
    

    Parameters

    • agentId: string

      agent Id

    • parentContactId: string

      existing call contact id

    Returns Promise<HttpResponse>

  • Method to place an outbound call

    example
    dialPhone(contactDetails);
    

    Parameters

    Returns Promise<HttpResponse>

  • This method to make a call with another skill

    example
    dialSkill(23344);
    

    Parameters

    • skillId: number

      skill Id

    Returns Promise<HttpResponse>

  • requestInteraction(routabilityObject: string): Promise<HttpResponse>
  • This method will be triggered when requested for a new contact

    example
    requestInteraction();
    

    Parameters

    • routabilityObject: string

    Returns Promise<HttpResponse>

  • sendContinueReskill(continueReskill: boolean): Promise<HttpResponse>
  • Send the continue reskill API

    example
    sendContinueReskill();
    

    Parameters

    • continueReskill: boolean

    Returns Promise<HttpResponse>

  • Method to send the dtmf

    example
    sendDtmf(sendDtmfRequest);
    

    Parameters

    • sendDtmfRequest: SendDtmfRequest

      it contains properties like dtmf sequence, tone duration and tone spacing

    Returns Promise<HttpResponse>

  • This method to transfer call

    example
    transferContact();
    

    Returns Promise<HttpResponse>

  • transferVoicemailContact(contactId: string, agentId: string): Promise<HttpResponse>
  • Method to transfer voicemail

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

    Parameters

    • contactId: string
    • agentId: string

    Returns Promise<HttpResponse>

  • transferVoicemailSkill(contactId: string, skillId: number): Promise<HttpResponse>
  • Method to transfer voicemail to skill

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

    Parameters

    • contactId: string
    • skillId: number

    Returns Promise<HttpResponse>

Generated using TypeDoc