Finding chats which ended due to no activity timeout

We want to know how many chat ended due to no activity timeout. Currently we are doing the inactivity timeout using the below code.

if (timeOutChat == 300) {
// console.log('Chat Ending due to Inactivity')
customPlugin.command("WebChat.endChat", getAdvancedConfig());
}

The chat is ending properly after the given timeout but we are unable see if the chat was timeout using genesys cloud platform APIs [conversation APIs]
We have tried using the subscribtion event but it doesn't appear in platform API logs.

customPlugin.command("WebChat.injectMessage", getAdvancedConfig12());
function getAdvancedConfig12() {
return {
type: 'text',
name: 'person',
text: 'Your session will be disconnected in .....',

custom: false,

bubble:{

fill: '#00FF00',
radius: '4px',
time: false,
name: false,
direction: 'right',

avatar:{
  custom: '<div>word</div>',
  icon: 'email'

}

}};
}

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.