Hi Genesys,
Is there a way, using the embeddable framework api, to get a consistent State value of an interaction regardless of the language used in the framework ?
I want to perform some actions in our CRM based on the interaction state change: for example when a call goes to hold or unhold, but I've realized that the interaction object, received in the callback of the subscription method, returns the state value translated to the language used on the framework; for example:
with a framework.js using
getUserLanguage: function (callback) {
callback("es-ES");
},
I get
{ "category": "add", "interaction": { "id": "68bcd3d9-91cd-4ee2-8a34-1abb11c7f3d8", "phone": "", "name": "", "isConnected": false, "isDisconnected": false, "isDone": false, "state": "ALERTANDO", "isCallback": false, "isDialer": false, "isChat": false, "isEmail": false, "isMessage": false, "isVoicemail": false, "recordingState": "none", "displayAddress": "", "ani": "Interno", "direction": "Outbound", "isInternal": false } }
with callback("pt-PT") i get: "state": "EM ALERTA"
with callback("de-DE") i get: "state": "BENACHRICHTIGEN"
with callback("ko") i get: "state": "알림을 보내는 중"
and by default, in english, i get "state": "ALERTING"
I would expect that, regardless of the language used in the framework, the State value would be some kind of enumerated value not linked to the language.
regards !