Using the SharingServices Package, the Customer can request Avaya Co-Browsing session.
To request Avaya Co-Browsing session, you must complete the following activities.
You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that Avaya Co-Browsing session is created successfully. The onFailure callback is called to report a failure in request session.
var onSuccess = function (data) {
// Called to report co-browsing session
// has been created successfully
// Add code here to notify agent
};
var onFailure = function (error) {
// Called to report failure in request session
// Add code here to notify agent
};
To request a Avaya Co-Browsing session, you must provide customer name. Email and locale are optional.
_cbinstance.requestSession(name, locale).then(onSuccess.bind(this), onFailure);