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 _0x5c43=['update','emit','register','length','voiceExtension:','./voiceExtension.events','save'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5c43,0x8a));var _0x35c4=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x5c43[_0x20a584];return _0x4b41a8;};'use strict';var VoiceExtensionEvents=require(_0x35c4('0x0'));var events=[_0x35c4('0x1'),'remove',_0x35c4('0x2')];function createListener(_0xbccf64,_0x20d8cb){return function(_0x57165f){_0x20d8cb[_0x35c4('0x3')](_0xbccf64,_0x57165f);};}function removeListener(_0x1f1842,_0x1b0fe9){return function(){VoiceExtensionEvents['removeListener'](_0x1f1842,_0x1b0fe9);};}exports[_0x35c4('0x4')]=function(_0x322ebc){for(var _0xb255fa=0x0,_0xb953d2=events[_0x35c4('0x5')];_0xb255fa<_0xb953d2;_0xb255fa++){var _0x4081b2=events[_0xb255fa];var _0x345332=createListener(_0x35c4('0x6')+_0x4081b2,_0x322ebc);VoiceExtensionEvents['on'](_0x4081b2,_0x345332);}};