Avaya Client SDK

< Back to Package Overview

Working with the API

Initialization

Initializing the Customer Interaction Utilities Services Client SDK package for JavaScript simply requires creating a new Client SDK object when your web application launches i.e. window.onLoad or document.ready()

var client = new AvayaCustomerInteractionUtilitiesClient(acconfig);
    var _agentControllerClient = new AvayaCustomerInteractionUtilitiesClient(acconfig);
    _agentControllerClient.registerlogger(window.console);
    client = _agentControllerClient.createCustomerInteractionUtilitiesService(acconfig);

A configuration object (see below) is used to instruct the Client SDK on how it will communicate with back-end services.

Configuring the SDK

Example Configuration Object

In the following example, the configuration object contains configuration details.

var acconfig = new AvayaCustomerInteractionUtilitiesClient.Config.AcConfiguration();
    acconfig.enabled = true;
    acconfig.isGuest = true;
    acconfig.serverInfo.token = token;
    acconfig.serverInfo.hostName = clusterIP;
    acconfig.serverInfo.isSecure = false;

Configuration Options

Name Type Default Value Description
enabled boolean true Set this to true to enable the Services.
isGuest boolean true Set to false if authentication is required for Provider to communicate with back end service.
serverInfo.hostName string '' The server's host name. This may by a fully qualified domain name or an IP address.
serverInfo.isSecure boolean false Used to determine if security is to be used for the connection to the server.
serverInfo.tokens string '' Customer Interaction Utilities does not support authentication.