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 _0xb6da=['emit','removeListener','register','length','voiceQueue:','save','remove','update'];(function(_0x6f4c31,_0x11cf01){var _0x191a9c=function(_0x85b741){while(--_0x85b741){_0x6f4c31['push'](_0x6f4c31['shift']());}};_0x191a9c(++_0x11cf01);}(_0xb6da,0xed));var _0xab6d=function(_0x55b709,_0x4a8b6c){_0x55b709=_0x55b709-0x0;var _0x2db908=_0xb6da[_0x55b709];return _0x2db908;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0xab6d('0x0'),_0xab6d('0x1'),_0xab6d('0x2')];function createListener(_0x2d206f,_0x5247c1){return function(_0x26bdf8){_0x5247c1[_0xab6d('0x3')](_0x2d206f,_0x26bdf8);};}function removeListener(_0x2a4845,_0xa2093){return function(){VoiceQueueEvents[_0xab6d('0x4')](_0x2a4845,_0xa2093);};}exports[_0xab6d('0x5')]=function(_0x1d9354){for(var _0x17f3e8=0x0,_0x24fdd3=events[_0xab6d('0x6')];_0x17f3e8<_0x24fdd3;_0x17f3e8++){var _0x48bdce=events[_0x17f3e8];var _0x1d6f79=createListener(_0xab6d('0x7')+_0x48bdce,_0x1d9354);VoiceQueueEvents['on'](_0x48bdce,_0x1d6f79);}};