Built-in functions
Built-in functions are special objects and functions provided by the platform. You can invoke them from any JS script without defining them separately.
Function | Description |
---|---|
bind | The function is used for setting up handlers. |
capitalize | Converts the first letter of the string passed to it to uppercase and the rest of characters to lowercase. Used to display names. |
currentDate | Returns a moment.js object with the current date. |
hasOperatorsOnline | Checks the presence status of agents. |
log | Outputs a message to the server log and is used for debugging. |
parseXml | Converts the .xml text passed to it to a JSON object. |
toPrettyString | Converts the object passed to it to a formatted JSON object with indents. |