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 _0x376c=['length','./voiceQueue.events','save','remove','removeListener','register'];(function(_0xadd417,_0x207028){var _0x5c79e7=function(_0xa07df0){while(--_0xa07df0){_0xadd417['push'](_0xadd417['shift']());}};_0x5c79e7(++_0x207028);}(_0x376c,0xdf));var _0xc376=function(_0x51020b,_0x38c2c7){_0x51020b=_0x51020b-0x0;var _0x371e47=_0x376c[_0x51020b];return _0x371e47;};'use strict';var VoiceQueueEvents=require(_0xc376('0x0'));var events=[_0xc376('0x1'),_0xc376('0x2'),'update'];function createListener(_0x36fa44,_0x288b9d){return function(_0x5aa428){_0x288b9d['emit'](_0x36fa44,_0x5aa428);};}function removeListener(_0x192d8c,_0x38ef53){return function(){VoiceQueueEvents[_0xc376('0x3')](_0x192d8c,_0x38ef53);};}exports[_0xc376('0x4')]=function(_0xa0fb0b){for(var _0x59f4fc=0x0,_0x4397ce=events[_0xc376('0x5')];_0x59f4fc<_0x4397ce;_0x59f4fc++){var _0x46d0bb=events[_0x59f4fc];var _0x212e54=createListener('voiceQueue:'+_0x46d0bb,_0xa0fb0b);VoiceQueueEvents['on'](_0x46d0bb,_0x212e54);}};