/mcpC H A P T E R 10 Cisco Finesse JavaScript APIs • Client Services, on page 415 • Container Services, on page 417 • ClientLogger, on page 437 • Digital Channel, on page 438 • Gadget Configuration, on page 446 • Interfaces, on page 447 • REST Services, on page 448 • ShortcutKey Service, on page 519 • Utilities, on page 524 • JSON Schema, on page 540 Client Services Class finesse.clientservices.ClientServices Allows clients to make the Cisco Finesse API requests and use Cisco Finesse events by using the JavaScript functions that are provided by this module. This service layer establishes a notification connection that is shared between all the gadgets and the desktop for its eventing needs. It uses events for client subscriptions and constructs API requests. Methods getNotificationConnectionState() Retrieves the current state of the BOSH/WebSocket connection. Example finesse.clientservices.ClientServices.getNotificationConnectionState(); Returns {String} The current state of the BOSH/WebSocket connection from the following options:. • Connected—When the connection is established between client and openfire. • Recovered —When the connection is re-established after a failure. • Failing —When the notification service or the Cisco Finesse server is down. Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 415
