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 _0xc17f=['remove','update','removeListener','register','length','voiceExtension:','./voiceExtension.events','save'];(function(_0x19e591,_0x20701b){var _0x1c0f5e=function(_0x5f07e7){while(--_0x5f07e7){_0x19e591['push'](_0x19e591['shift']());}};_0x1c0f5e(++_0x20701b);}(_0xc17f,0x8e));var _0xfc17=function(_0x41606d,_0x5b4a3b){_0x41606d=_0x41606d-0x0;var _0x532fd4=_0xc17f[_0x41606d];return _0x532fd4;};'use strict';var VoiceExtensionEvents=require(_0xfc17('0x0'));var events=[_0xfc17('0x1'),_0xfc17('0x2'),_0xfc17('0x3')];function createListener(_0x4981b3,_0x4dbc00){return function(_0x183244){_0x4dbc00['emit'](_0x4981b3,_0x183244);};}function removeListener(_0x932ad4,_0x1fd251){return function(){VoiceExtensionEvents[_0xfc17('0x4')](_0x932ad4,_0x1fd251);};}exports[_0xfc17('0x5')]=function(_0xcf3519){for(var _0x42e598=0x0,_0x235609=events[_0xfc17('0x6')];_0x42e598<_0x235609;_0x42e598++){var _0x26eec8=events[_0x42e598];var _0x5706e6=createListener(_0xfc17('0x7')+_0x26eec8,_0xcf3519);VoiceExtensionEvents['on'](_0x26eec8,_0x5706e6);}};