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 _0x0934=['remove','emit','removeListener','register','length','./voiceQueue.events','save'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x0934,0x18d));var _0x4093=function(_0x25bea7,_0x49ab45){_0x25bea7=_0x25bea7-0x0;var _0x175952=_0x0934[_0x25bea7];return _0x175952;};'use strict';var VoiceQueueEvents=require(_0x4093('0x0'));var events=[_0x4093('0x1'),_0x4093('0x2'),'update'];function createListener(_0x3a7443,_0x3df874){return function(_0xc434be){_0x3df874[_0x4093('0x3')](_0x3a7443,_0xc434be);};}function removeListener(_0x4638ad,_0x5eda3e){return function(){VoiceQueueEvents[_0x4093('0x4')](_0x4638ad,_0x5eda3e);};}exports[_0x4093('0x5')]=function(_0x3c9d17){for(var _0x195c90=0x0,_0x10b74b=events[_0x4093('0x6')];_0x195c90<_0x10b74b;_0x195c90++){var _0x369807=events[_0x195c90];var _0x2e2a9e=createListener('voiceQueue:'+_0x369807,_0x3c9d17);VoiceQueueEvents['on'](_0x369807,_0x2e2a9e);}};