Global

Methods

activityFromFolder(activity, folder) → {boolean}

Returns whether a record came from the specified folder when moving to another one.
Parameters:
Name Type Description
activity Object
folder number Destination folder id.
Source:
Returns:
Type
boolean

activityToFolder(activity, folder) → {boolean}

Returns whether a record went into the specified folder.
Parameters:
Name Type Description
activity Object
folder number Destination folder id.
Source:
Returns:
Type
boolean

setIdField(fieldName)

Sets the name of the field in settings where the webhook id will be stored.
Parameters:
Name Type Description
fieldName string
Source:

setKeyField(fieldName)

Sets the name of the field in settings where the webhook secret key will be stored.
Parameters:
Name Type Description
fieldName string
Source:

validateSecret(settings, request) → {boolean}

Validates whether a webhook secret matches the saved one.
Parameters:
Name Type Description
settings Object Saved settings
request Object The HTTP Request
Source:
Returns:
Type
boolean