Contact

Represents information about a contact.

new Contact(param)

FieldTypeDescription
paramobjectParameters associated with a contact.
param.idstringOptional. The unique contact ID.
param.typestringOptional. The type of the contact. One of these 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 agent availability. This is only used when SharedCapabilitiesResult.hasAgentAvailability is set to true. Allowed values are: AVAILABLE, BUSY, OFFLINE.
param.queueWaitTimestringOptional. The estimated queue wait time (measured in seconds) calculated by the telephony, Messaging, or CCaaS provider.