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 _0xa5bb=['remove','update','emit','removeListener','register','length','./voiceQueue.events','save'];(function(_0x2d1a01,_0x82d8df){var _0x2ffe32=function(_0x1c45a2){while(--_0x1c45a2){_0x2d1a01['push'](_0x2d1a01['shift']());}};_0x2ffe32(++_0x82d8df);}(_0xa5bb,0xce));var _0xba5b=function(_0x245494,_0x473030){_0x245494=_0x245494-0x0;var _0x1dc99a=_0xa5bb[_0x245494];return _0x1dc99a;};'use strict';var VoiceQueueEvents=require(_0xba5b('0x0'));var events=[_0xba5b('0x1'),_0xba5b('0x2'),_0xba5b('0x3')];function createListener(_0x498510,_0x1cd49d){return function(_0x2fa734){_0x1cd49d[_0xba5b('0x4')](_0x498510,_0x2fa734);};}function removeListener(_0x394f95,_0x20dea4){return function(){VoiceQueueEvents[_0xba5b('0x5')](_0x394f95,_0x20dea4);};}exports[_0xba5b('0x6')]=function(_0xa96380){for(var _0x3d4cdf=0x0,_0x1baadb=events[_0xba5b('0x7')];_0x3d4cdf<_0x1baadb;_0x3d4cdf++){var _0x4bc23e=events[_0x3d4cdf];var _0x4f005d=createListener('voiceQueue:'+_0x4bc23e,_0xa96380);VoiceQueueEvents['on'](_0x4bc23e,_0x4f005d);}};