Using the Javascript tab, you can write Java code using the available predefined functions, script data, and agent parameters created for the script to function. The following table describes the use of certain script functions that appear in theFunctions section of theJavaScript tab.
The Javascript tab in the Script section controls the functions for the entire script; whereas, the Javascript tab in the Page section controls the code on a page level.
The following table describes the use of certain script functions that appear in theFunctions section of theJavaScript tab.
Function
Use
LiveVox API
lvcore.completeConference()
Enables you to close a conference.
lvcore.leaveConference()
Enables you to exit from the conference.
lvcore.reconnectCall()
Enables you to reconnect back to the conference.
lvcore.setPendingStatus(ready,breakCode)
Sets the pending status to either ready or breaks code. That is, defines if the Boolean disposition should go to ready (true) or not ready (false).
Ensures that the agent has entered the same information twice. For example, when creating a password, you are prompted to enter the same password twice for validation. This function uses thefocusandforceMatchingparameters,