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 _0xb606=['register','voiceQueue:','./voiceQueue.events','save','remove','update'];(function(_0x3da9b1,_0x7db7b8){var _0x4c7061=function(_0x23da67){while(--_0x23da67){_0x3da9b1['push'](_0x3da9b1['shift']());}};_0x4c7061(++_0x7db7b8);}(_0xb606,0x98));var _0x6b60=function(_0x1627ae,_0x2aaa24){_0x1627ae=_0x1627ae-0x0;var _0x34b38f=_0xb606[_0x1627ae];return _0x34b38f;};'use strict';var VoiceQueueEvents=require(_0x6b60('0x0'));var events=[_0x6b60('0x1'),_0x6b60('0x2'),_0x6b60('0x3')];function createListener(_0x32b03d,_0x3b6da7){return function(_0x4edd4e){_0x3b6da7['emit'](_0x32b03d,_0x4edd4e);};}function removeListener(_0x23180e,_0xe668aa){return function(){VoiceQueueEvents['removeListener'](_0x23180e,_0xe668aa);};}exports[_0x6b60('0x4')]=function(_0x1ca33d){for(var _0x10cf30=0x0,_0x461d51=events['length'];_0x10cf30<_0x461d51;_0x10cf30++){var _0x50cc27=events[_0x10cf30];var _0x398dc4=createListener(_0x6b60('0x5')+_0x50cc27,_0x1ca33d);VoiceQueueEvents['on'](_0x50cc27,_0x398dc4);}};