From e66bcde0fd445e48e4b9411b64655d265f6833d8 Mon Sep 17 00:00:00 2001 From: adhmenon Date: Wed, 27 Nov 2024 11:18:52 +0530 Subject: [PATCH] feat(cc-sdk): resolved-comments --- packages/@webex/plugin-cc/src/cc.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@webex/plugin-cc/src/cc.ts b/packages/@webex/plugin-cc/src/cc.ts index f391a2e89fe..9dd28ab4e9f 100644 --- a/packages/@webex/plugin-cc/src/cc.ts +++ b/packages/@webex/plugin-cc/src/cc.ts @@ -311,7 +311,7 @@ export default class ContactCenter extends WebexPlugin implements IContactCenter await this.setAgentState(stateChangeData); } - await this.handleDeviceType(deviceType, dn); + await this.handleDeviceType(deviceType as LoginOption, dn); this.agentConfig.isAgentLoggedIn = true; } catch (error) { const {reason, error: detailedError} = getErrorDetails(error, 'silentReLogin', CC_FILE); @@ -330,7 +330,7 @@ export default class ContactCenter extends WebexPlugin implements IContactCenter /** * Handles the device type specific logic */ - private async handleDeviceType(deviceType: string, dn: string): Promise { + private async handleDeviceType(deviceType: LoginOption, dn: string): Promise { switch (deviceType) { case LoginOption.BROWSER: await this.webCallingService.registerWebCallingLine(); @@ -345,6 +345,6 @@ export default class ContactCenter extends WebexPlugin implements IContactCenter }); throw new Error(`Unsupported device type: ${deviceType}`); } - this.agentConfig.deviceType = deviceType as LoginOption; + this.agentConfig.deviceType = deviceType; } }