Using the SharingServices Package, the Customer can grant Avaya Co-Browsing session control during active Avaya Co-Browsing.
To grant Avaya Co-Browsing session control, you must complete the following activities.
You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that the Customer has granted Avaya Co-Browsing Session control for the agent request. The onFailure callback is called to report a failure in grant Avaya Co-Browsing session control.
var onSuccess = function () {
// Called to report customer has granted
// control of Co-Browsing Session
// Add code here to notify customer
};
var onFailure = function (error) {
// Called to report failure in
// grant co-browsing session control
// Add code here to notify customer
};
Call grantControl() method to grant Avaya Co-Browsing Session Control. Agent gets notification that Customer has granted Avaya Co-Browsing Session Control.
_cbinstance.grantControl().then(onSuccess.bind(this), onFailure);