I'm currently working on a project that involves event handling for different media types in Genesys Cloud. Specifically, I'm interested in understanding the events associated with the initiation and conclusion of interactions, such as web chat.
I've successfully implemented event handling for web chat using the following code snippet:
ININ.webchat.chatStarted = function (data) {
const webChatId = data.chatId;
console.log(`Web Chat Started. Web Chat ID: ${webChatId}`);
};
ININ.webchat.chatEnded = function (data) {
const webChatId = data.chatId;
console.log(`Web Chat Ended. Web Chat ID: ${webChatId}`);
};
Now, I'm seeking information on similar events for other media types, such as voice calls, emails, and live chat, web messenger, fax, calls etc Could you kindly provide examples or point me to the relevant documentation for handling events associated with the start and end of interactions for these media types?
Any guidance or code snippets would be greatly appreciated. Thank you in advance for your assistance!