JavaScript Representation of Finesse REST API

Finesse JavaScript library uses JavaScript objects that represent the underlying REST API objects1 such as a User, Dialog, Phonebook and so on. When a Finesse JavaScript class is initialized, a corresponding REST API call is made, and the response is populated into a JavaScript object. In addition to having JavaScript object representations of Finesse REST API objects, the Finesse JavaScript library also supports the subscription to the Finesse Notification Service. When a Finesse notification is sent for a particular JavaScript object, the corresponding handler of the object is triggered with the updated JavaScript object as the parameter.

1JavaScript objects that represent the underlying REST API objects are referred to as JavaScript REST objects further on in this document.

This section establishes the principle behind the Finesse JavaScript objects. For example, consider the Finesse REST API called User. A User is an agent who can log in to the Finesse Desktop with valid credentials. A User object can be a composition of various fields such as State, Dialogs, Phonebooks, and so on.