Using the SharingServices Package, the Agent can request for control of active Avaya Co-Browsing session.
To request 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 Agent has requested control of Avaya Co-Browsing Session.The onFailure callback is called to report a failure in requesting Avaya Co-Browsing session control.
var onSuccess = function (data) {
// Called to report agent has requested
// control of Co-Browsing Session
// Add code here to notify agent
};
var onFailure = function (error) {
// Called to report failure in
// request co-browsing session control
// Add code here to notify agent
};
Call requestControl() method to request Avaya Co-Browsing Session Control. Customer gets notification to grant or deny Avaya Co-Browsing Session Control.
_cbinstance.requestControl().then(onSuccess, onFailure);