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 _0xaba9=['removeListener','register','length','voiceExtension:','./voiceExtension.events','save','remove','emit'];(function(_0x33cdc6,_0x3a13ad){var _0x2f456e=function(_0x27431e){while(--_0x27431e){_0x33cdc6['push'](_0x33cdc6['shift']());}};_0x2f456e(++_0x3a13ad);}(_0xaba9,0x18c));var _0x9aba=function(_0x4f4beb,_0x5c01aa){_0x4f4beb=_0x4f4beb-0x0;var _0x496443=_0xaba9[_0x4f4beb];return _0x496443;};'use strict';var VoiceExtensionEvents=require(_0x9aba('0x0'));var events=[_0x9aba('0x1'),_0x9aba('0x2'),'update'];function createListener(_0x4d32e1,_0x33964f){return function(_0x544a1f){_0x33964f[_0x9aba('0x3')](_0x4d32e1,_0x544a1f);};}function removeListener(_0x54ba19,_0x3aeb55){return function(){VoiceExtensionEvents[_0x9aba('0x4')](_0x54ba19,_0x3aeb55);};}exports[_0x9aba('0x5')]=function(_0x317103){for(var _0x2e4157=0x0,_0x33607b=events[_0x9aba('0x6')];_0x2e4157<_0x33607b;_0x2e4157++){var _0x1182eb=events[_0x2e4157];var _0x10e203=createListener(_0x9aba('0x7')+_0x1182eb,_0x317103);VoiceExtensionEvents['on'](_0x1182eb,_0x10e203);}};