McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 432

↗ View in doc context
page
432
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::416

getRestHost() Retrieves the destination host where the REST requests are proxied through Shindig. This method can be used before making REST requests to retrieve the hostname. Example finesse.clientservices.ClientServices.getRestHost(); Returns {String} The hostname of Cisco Finesse. init(config) Initiates the ClientServices module with the specified configuration parameters. For more information, see Gadget Configuration, on page 446. Example finesse.clientservices.ClientServices.init(finesse.gadget.Config) Throws {Error} If the valid parameter is missing during initialization. registerOnConnectHandler(handler) Adds a handler to be invoked when the following conditions are met: • Cisco Finesse goes IN_SERVICE wherein all the operations of Cisco Finesse is performed or accepted. • BOSH/WebSocket connection is established and the client application communicates with the Cisco Finesse Notification Service through BOSH/WebSocket to receive notifications. The loss of this connection means that the server is UNAVAILABLE or that the client cannot reach the server. • Cisco Finesse user presence becomes available. The presence indicates whether Finesse has an active connection to the Cisco Finesse Notification Service (Unified CCE) or the Cisco Unified CCX Notification Service (Unified CCX). An UNAVAILABLE presence for the Cisco Finesse XMPP user means that the connection is lost. For more information. If these conditions are met when this function is called, the handler is invoked immediately. Example _cs = finesse.clientservices.ClientServices; _cs.registerOnConnectHandler(_connectionConnectHandler); _connectionConnectHandler = function () { // Perform the logic } Parameters Required Description Type Name Yes The function that is invoked when the conditions are met. Registers only one handler at a time. Handlers registered earlier are overwritten. Function handler Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 416 Cisco Finesse JavaScript APIs Client Services