Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to manage all commitments related methods

Hierarchy

  • CommitmentService

Index

Constructors

Properties

acdSession: ACDSessionManager = ...
auth: CXoneAuth
logger: Logger = ...
onCommitmentEvent: Subject<CommitmentEvent> = ...
onCommitmentStatusEvent: Subject<CommitmentStatusEvent> = ...
onUpdateCommitments: Subject<unknown> = ...
utilService: HttpUtilService = ...
CANCEL_COMMITMENT: string = '/incontactapi/services/v21.0/agent-sessions/{sessionId}/interactions/{callbackId}/cancel'
CREATE_COMMITMENT: string = '/incontactapi/services/v25.0/scheduled-callbacks'
CREATE_COMMITMENT_TS: string = '/incontactapi/services/v33.0/scheduled-callbacks'
DELETE_COMMITMENT: string = '/incontactapi/services/v25.0/scheduled-callbacks/{callbackId}'
EDIT_COMMITMENT: string = '/incontactapi/services/v25.0/scheduled-callbacks/{callbackId}'
EDIT_COMMITMENT_TS: string = '/incontactapi/services/v33.0/scheduled-callbacks/{callbackId}'
GET_COMMITMENTS: string = '/incontactapi/services/v25.0/agents/{agentId}/scheduled-callbacks'
MAKE_COMMITMENT_CALL: string = '/incontactapi/services/v21.0/agent-sessions/{sessionId}/interactions/{callbackId}/dial'
RESCHEDULE_COMMITMENT: string = '/incontactapi/services/v21.0/agent-sessions/{sessionId}/interactions/{callbackId}/reschedule'

Methods

  • cancelCommitment(callbackId: number, notes?: string): Promise<HttpResponse>
  • deleteCommitment(callbackId: number, description?: string): Promise<HttpResponse>
  • makeCommitmentCall(callbackId: number): Promise<unknown>
  • rescheduleCommitment(callbackId: number, rescheduleDate: string): Promise<unknown>
  • This method is to reschedule commitment for schedule app

    example
    rescheduleCommitment(callbackId, rescheduleDate);
    

    Parameters

    • callbackId: number

      callbackId of commitment

    • rescheduleDate: string

      date for reschedule commitment

    Returns Promise<unknown>

  • updateCommitments(): void

Generated using TypeDoc