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 _0xa590=['voiceQueue:','remove','emit','register'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa590,0x129));var _0x0a59=function(_0x58965a,_0x2e71db){_0x58965a=_0x58965a-0x0;var _0x254efc=_0xa590[_0x58965a];return _0x254efc;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save',_0x0a59('0x0'),'update'];function createListener(_0x59da3d,_0xc8d18c){return function(_0x5a154b){_0xc8d18c[_0x0a59('0x1')](_0x59da3d,_0x5a154b);};}function removeListener(_0x59c03a,_0x22befe){return function(){VoiceQueueEvents['removeListener'](_0x59c03a,_0x22befe);};}exports[_0x0a59('0x2')]=function(_0x2963e7){for(var _0x2033a5=0x0,_0x1487ea=events['length'];_0x2033a5<_0x1487ea;_0x2033a5++){var _0x156a47=events[_0x2033a5];var _0x5d2a9a=createListener(_0x0a59('0x3')+_0x156a47,_0x2963e7);VoiceQueueEvents['on'](_0x156a47,_0x5d2a9a);}};