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 _0xb2e0=['length','update','emit','removeListener','register'];(function(_0x45482a,_0x27a7f2){var _0x23dd24=function(_0x303a11){while(--_0x303a11){_0x45482a['push'](_0x45482a['shift']());}};_0x23dd24(++_0x27a7f2);}(_0xb2e0,0x88));var _0x0b2e=function(_0x1ff2bc,_0x18af8b){_0x1ff2bc=_0x1ff2bc-0x0;var _0x48c5b2=_0xb2e0[_0x1ff2bc];return _0x48c5b2;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save','remove',_0x0b2e('0x0')];function createListener(_0x5affc7,_0x4b9666){return function(_0x53b3df){_0x4b9666[_0x0b2e('0x1')](_0x5affc7,_0x53b3df);};}function removeListener(_0x35e99b,_0x2194a3){return function(){VoiceQueueEvents[_0x0b2e('0x2')](_0x35e99b,_0x2194a3);};}exports[_0x0b2e('0x3')]=function(_0x117439){for(var _0x426f51=0x0,_0x1bb631=events[_0x0b2e('0x4')];_0x426f51<_0x1bb631;_0x426f51++){var _0xe2e5f4=events[_0x426f51];var _0x13dc10=createListener('voiceQueue:'+_0xe2e5f4,_0x117439);VoiceQueueEvents['on'](_0xe2e5f4,_0x13dc10);}};