class="default no-js"> CallRecord | xmlmc
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CallRecord

An abstraction of the API for improved call handling. Represents an existing call allowing for simple call updates assignments, status changes, etc. Supports method chaining. Supports all methods in constant O(1) time.

Hierarchy

  • CallRecord

Indexable

[key: string]: any

An abstraction of the API for improved call handling. Represents an existing call allowing for simple call updates assignments, status changes, etc. Supports method chaining. Supports all methods in constant O(1) time.

Index

Constructors

constructor

Properties

Private _callClass

_callClass: string | null = null

Private _callref

_callref: number

Private _customer

_customer: Customer | null = null

Private _description

_description: string | null = null

Private _lastUpdateText

_lastUpdateText: string | null = null

Private _logDateX

_logDateX: number | null = null

Private _owner

_owner: string | null = null

Private _status

_status: Status | null = null

Private _summary

_summary: string | null = null

Private _xmlmc

Accessors

callClass

  • get callClass(): Promise<string>
  • Get a promise that resolves with the call class

    Returns Promise<string>

customer

description

  • get description(): Promise<string>
  • Get a promise that resolves with the description of the call

    Returns Promise<string>

latestUpdate

  • get latestUpdate(): Promise<string>
  • Get a promise that resolves with the latest update of the call

    Returns Promise<string>

logDate

  • get logDate(): Promise<Date>
  • Get a promise resolves with a Date object of the log date

    Returns Promise<Date>

owner

  • get owner(): Promise<string>
  • Get a promise that resolves with the owner id of the call

    Returns Promise<string>

reference

  • get reference(): number

status

  • get status(): Promise<Status>
  • Get a promise that resolves with the numeric Status of the call Corresponding to the Call.Status ENUM

    Returns Promise<Status>

summary

  • get summary(): Promise<string>
  • Get a promise that resolves with the summary of the call

    Returns Promise<string>

Methods

accept

addToWatchlist

assignTo

  • assignTo(group: string, owner?: undefined | string): Promise<CallRecord>
  • Assign the call to a new owner.

    Parameters

    • group: string
    • Optional owner: undefined | string

      Owner ID

    Returns Promise<CallRecord>

cancel

  • cancel(cancelReason: string): Promise<CallRecord>

close

  • close(closureDetails: string): Promise<CallRecord>

Private getCallValue

  • getCallValue(field: string): Promise<string>
  • Gets a call value from the database filtered by the callref.

    Parameters

    • field: string

    Returns Promise<string>

invalidateCache

placeOnHold

  • placeOnHold(holdUntil: Date, holdReason: string): Promise<CallRecord>

reactivate

resolve

  • resolve(resolution: string): Promise<CallRecord>

takeOffHold

update

Generated using TypeDoc

<>