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 _0x018c=['register','length','save','remove','emit','removeListener'];(function(_0x9e53dc,_0x4c6bdc){var _0x5e3f70=function(_0x5cc845){while(--_0x5cc845){_0x9e53dc['push'](_0x9e53dc['shift']());}};_0x5e3f70(++_0x4c6bdc);}(_0x018c,0x18e));var _0xc018=function(_0x493c0d,_0x45c6ad){_0x493c0d=_0x493c0d-0x0;var _0x1a53f1=_0x018c[_0x493c0d];return _0x1a53f1;};'use strict';var VoiceExtensionEvents=require('./voiceExtension.events');var events=[_0xc018('0x0'),_0xc018('0x1'),'update'];function createListener(_0x59c75a,_0x4afddb){return function(_0x426c1c){_0x4afddb[_0xc018('0x2')](_0x59c75a,_0x426c1c);};}function removeListener(_0x2965ab,_0x276188){return function(){VoiceExtensionEvents[_0xc018('0x3')](_0x2965ab,_0x276188);};}exports[_0xc018('0x4')]=function(_0x3f5661){for(var _0x308d88=0x0,_0x48f4db=events[_0xc018('0x5')];_0x308d88<_0x48f4db;_0x308d88++){var _0xf92cf1=events[_0x308d88];var _0x4bb3ad=createListener('voiceExtension:'+_0xf92cf1,_0x3f5661);VoiceExtensionEvents['on'](_0xf92cf1,_0x4bb3ad);}};