1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x3e46=['voiceExtension:','./voiceExtension.events','save','remove','update','emit','removeListener','length'];(function(_0x2dcd76,_0x121c9d){var _0x197efa=function(_0x17719f){while(--_0x17719f){_0x2dcd76['push'](_0x2dcd76['shift']());}};_0x197efa(++_0x121c9d);}(_0x3e46,0x151));var _0x63e4=function(_0x430294,_0x44a4fb){_0x430294=_0x430294-0x0;var _0x40c240=_0x3e46[_0x430294];return _0x40c240;};'use strict';var VoiceExtensionEvents=require(_0x63e4('0x0'));var events=[_0x63e4('0x1'),_0x63e4('0x2'),_0x63e4('0x3')];function createListener(_0x4dcc3a,_0x1cbda3){return function(_0x54477c){_0x1cbda3[_0x63e4('0x4')](_0x4dcc3a,_0x54477c);};}function removeListener(_0x977c72,_0x48e4cd){return function(){VoiceExtensionEvents[_0x63e4('0x5')](_0x977c72,_0x48e4cd);};}exports['register']=function(_0x313684){for(var _0x2cb258=0x0,_0x53ca80=events[_0x63e4('0x6')];_0x2cb258<_0x53ca80;_0x2cb258++){var _0x447730=events[_0x2cb258];var _0x4caab6=createListener(_0x63e4('0x7')+_0x447730,_0x313684);VoiceExtensionEvents['on'](_0x447730,_0x4caab6);}};