Contact

Represents information about a contact.

new Contact(param)

FieldTypeDescription
paramobjectParameters associated with a contact.
param.idstringOptional. The unique contact ID.
param.listTypestringOptional. The type of destination list for the contact. Possible values: All, Conference, Transfer.
param.typestringOptional. The type of the contact. Possible values: PhoneBook, Queue, PhoneNumber, Agent.
param.namestringOptional. The label for this contact to be displayed in the UI.
param.phoneNumberstringOptional. The phone number associated with this contact.
param.prefixstringOptional. Any prefix to be dialed before dialing the number (for example, “+1”).
param.extensionstringOptional. Any extension to be dialed after dialing the number.
param.endpointARNstringOptional.
param.queuestringOptional. The unique ID of the contact center queue.
param.availabilitystring (Constants.AGENT_AVAILABILITY)Optional. Value for rep availability. This is only used when SharedCapabilitiesResult.hasAgentAvailability is set to true. Possible values: AVAILABLE, BUSY, OFFLINE.
param.queueWaitTimestringOptional. The estimated queue wait time (measured in seconds) calculated by the telephony, Messaging, or CCaaS provider.