Module: baseConnector

Methods

(static) initializeConnector(connector)

Initialize a vendor connector
Parameters:
Name Type Description
connector function Vendor connector function to initialize
Source:

(static) publishEvent(eventType, payload)

Publish an event to Sfdc
Parameters:
Name Type Description
eventType string Event type to publish. Has to be one of EVENT_TYPE
payload object Payload for the event. Has to be a result class associated with the EVENT_TYPE
Source:

(inner) dispatchError(errorType, error)

Dispatch a telephony integration error to Salesforce
Parameters:
Name Type Description
errorType string Error Type, i.e. constants.ErrorType.MICROPHONE_NOT_SHARED
error object Error object representing the error
Source:

(inner) dispatchEvent(EventType, Payload)

Dispatch a telephony event to Salesforce
Parameters:
Name Type Description
EventType String event type, i.e. constants.EVENT_TYPE.CALL_STARTED
Payload Object event payload
Source:

(async, inner) setConnectorReady()

Notify Salesforce that the connector is ready
Source: