Contact
Represents information about a contact.
new Contact(param)
| Field | Type | Description |
|---|---|---|
| param | object | Parameters associated with a contact. |
| param.id | string | Optional. The unique contact ID. |
| param.listType | string | Optional. The type of destination list for the contact. Possible values: All, Conference, Transfer. |
| param.type | string | Optional. The type of the contact. Possible values: PhoneBook, Queue, PhoneNumber, Agent. |
| param.name | string | Optional. The label for this contact to be displayed in the UI. |
| param.phoneNumber | string | Optional. The phone number associated with this contact. |
| param.prefix | string | Optional. Any prefix to be dialed before dialing the number (for example, “+1”). |
| param.extension | string | Optional. Any extension to be dialed after dialing the number. |
| param.endpointARN | string | Optional. |
| param.queue | string | Optional. The unique ID of the contact center queue. |
| param.availability | string (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.queueWaitTime | string | Optional. The estimated queue wait time (measured in seconds) calculated by the telephony, Messaging, or CCaaS provider. |