I am a newbie and i am trying to create our CTI app for Freshdesk Mint. Right now my problem is that i want to open the CTI sidebar when an external event comes in but i don't know to what event i must subscribe in the app.js. I can open the CTI in the app.activated event but what I want is something like this:
app.js
$(document).ready(function () {
app.initialized()
.then(function (_client) {
var client = _client;
var eventCallback = function (event) {
client.interface.trigger('show', {id: 'softphone'});
};
client.events.on("myExternalEvent", eventCallback);
});
});
Besides I have registered in the server.js a callback url (in OnAppInstallation) and i have created the handler function for the external event (OnExternalEvent) following the same procedure that in the external_events_app but i don't now how to follow in order to open the CTI sidebar.