Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handling voice controls

Hierarchy

  • VoiceControlService

Index

Constructors

Properties

acdSession: ACDSessionManager = ...
logger: Logger = ...
utilService: HttpUtilService = ...

Methods

  • This method to end the contact

    example
    endContact(23423423);
    

    Parameters

    • contactId: string

      contact id

    Returns Promise<HttpResponse>

  • Method to hold the active contact

    example
    holdContact(123);
    

    Parameters

    • contactId: string

      Active contactId

    Returns Promise<HttpResponse>

  • Method to mask a call

    example
    maskCall(contactId);
    

    Parameters

    • contactId: string

      contact Id

    Returns Promise<HttpResponse>

  • Method to mute the agent

    example
    muteAgent();
    

    Returns Promise<HttpResponse>

  • playVoiceMail(contactId: string, playTimeStamp: boolean, position: number): Promise<HttpResponse>
  • This method will play a voicemail contact audio at the specified position

    example
    playVoiceMail(23423423, true, 50);
    

    Parameters

    • contactId: string

      contact id

    • playTimeStamp: boolean

      Include date/time in audio playback

    • position: number

      Position of the wav file at a specified second

    Returns Promise<HttpResponse>

  • Method to record a call

    example
    recordCall(contactId);
    

    Parameters

    • contactId: string

      contact Id

    Returns Promise<HttpResponse>

  • Method to resume the holding contact

    example
    resumeContact(123);
    

    Parameters

    • contactId: string

      holding contactId

    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>

  • Method to stop masking a call

    example
    unmaskCall(contactId);
    

    Parameters

    • contactId: string

      contact Id

    Returns Promise<HttpResponse>

  • Method to unmute the agent

    example
    unmuteAgent();
    

    Returns Promise<HttpResponse>

Generated using TypeDoc