API Docs for: 2.6
Show:

endpoint_types Class

Module: user

Provides the type of the endpoints and some functions for it.

It can throw Exceptions.

Methods

isValidEndpointNethctiDevice

(
  • type
)
Boolean

Checks if the device type used for nethcti is valid.

Parameters:

  • type String

    The device type used for nethcti

Returns:

Boolean:

Return true if the type is valid, false otherwise.

isValidEndpointNethctiStatus

(
  • status
)
Boolean

Checks if the nethcti endpoint status is valid.

Parameters:

  • status String

    The status of the nethcti endpoint

Returns:

Boolean:

Return true if the nethcti endpoint status is valid, false otherwise.

isValidEndpointType

(
  • type
)
Boolean

Checks if the endpoint type is valid.

Parameters:

  • type String

    The type of the endpoint

Returns:

Boolean:

Return true if the type is valid, false otherwise.

Properties

ENDPOINT_NETHCTI_DEVICE_TYPE

Object

The list of the nethcti endpoint status.

ENDPOINT_NETHCTI_STATUS

Object

The list of the nethcti endpoint status.

Default: { busy: "busy", away: "away", online: "online", offline: "offline" }

TYPES

Object

The public list of the endpoint types.

Default: { email: "email", jabber: "jabber", nethcti: "nethcti", calendar: "calendar", extension: "extension", cellphone: "cellphone", voicemail: "voicemail" }