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 _0xba24=['voiceQueue:','./voiceQueue.events','save','remove','emit','removeListener','length'];(function(_0x36da4a,_0x880fcc){var _0x550534=function(_0xfcf4ac){while(--_0xfcf4ac){_0x36da4a['push'](_0x36da4a['shift']());}};_0x550534(++_0x880fcc);}(_0xba24,0x17b));var _0x4ba2=function(_0x2b75e4,_0x34b47b){_0x2b75e4=_0x2b75e4-0x0;var _0x344627=_0xba24[_0x2b75e4];return _0x344627;};'use strict';var VoiceQueueEvents=require(_0x4ba2('0x0'));var events=[_0x4ba2('0x1'),_0x4ba2('0x2'),'update'];function createListener(_0x1bda6f,_0x550607){return function(_0x5edde6){_0x550607[_0x4ba2('0x3')](_0x1bda6f,_0x5edde6);};}function removeListener(_0x2ae1e9,_0x44ab6b){return function(){VoiceQueueEvents[_0x4ba2('0x4')](_0x2ae1e9,_0x44ab6b);};}exports['register']=function(_0x5ca804){for(var _0x5174eb=0x0,_0x2bee95=events[_0x4ba2('0x5')];_0x5174eb<_0x2bee95;_0x5174eb++){var _0x77a730=events[_0x5174eb];var _0x27c091=createListener(_0x4ba2('0x6')+_0x77a730,_0x5ca804);VoiceQueueEvents['on'](_0x77a730,_0x27c091);}};