Using the SharingServices Package, Agent can cancel the initiated Avaya Co-Browsing session control request if already not granted by the customer.
To cancel the Avaya Co-Browsing session control request, you must complete the following activities.
You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that the Agent has cancelled the Avaya Co-Browsing Session control request.The onFailure callback is called to report a failure in cancel Avaya Co-Browsing session control request.
var onSuccess = function (data) {
// Called to report agent has cancelled
// the Co-Browsing Session control request
// Add code here to notify agent
};
var onFailure = function (error) {
// Called to report failure in cancel
// co-browsing session control request
// Add code here to notify agent
};
Call cancelRequestControl() method to cancel the Avaya Co-Browsing Session Control request. Customer gets notification on the registered callback method "addOnCancelRequestControlCallback" at customer end.
_cbinstance.cancelRequestControl().then(onSuccess, onFailure);