Updated on 2023-10-12 GMT+08:00

Deactivating an Account

Application Scenario

After signing out of the CTI platform, the agent also needs to deactivate the phone account.

Prerequisites

  • An agent has signed in to the CTI platform.
  • The account has been registered.

Process Description

Invoke the deRegister interface of the OpenEyeCall to deactivate the account.

/**
* Deactivate
 */
function deRegister() { 
    if (global_openEye_SDK!= null && global_openEye_SDK.openEyeCall!= null) 
    { 
        global_openEye_SDK.openEyeCall.deRegister(global_userPhoneNumber, { 
            response: deRegisterResponse 
        }); 
    } 
} 
/**
* Deactivation result
 * @param {*} data 
 */
function deRegisterResponse(data) { 
    if (data.result == 0) { 
        writeLog("Phone DeRegister Success."); 
    } else { 
        writeLog("Phone DeRegister Failed."); 
    } 
}