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 _0xc37e=['register','voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener'];(function(_0x44ae0b,_0x3e9865){var _0x69232a=function(_0x5ae588){while(--_0x5ae588){_0x44ae0b['push'](_0x44ae0b['shift']());}};_0x69232a(++_0x3e9865);}(_0xc37e,0x152));var _0xec37=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xc37e[_0x122ef9];return _0x42fba0;};'use strict';var VoiceQueueEvents=require(_0xec37('0x0'));var events=[_0xec37('0x1'),_0xec37('0x2'),_0xec37('0x3')];function createListener(_0x41f2c4,_0x346a20){return function(_0x9b6de4){_0x346a20[_0xec37('0x4')](_0x41f2c4,_0x9b6de4);};}function removeListener(_0xdef813,_0x345668){return function(){VoiceQueueEvents[_0xec37('0x5')](_0xdef813,_0x345668);};}exports[_0xec37('0x6')]=function(_0x2a1100){for(var _0xeca95=0x0,_0x378e1c=events['length'];_0xeca95<_0x378e1c;_0xeca95++){var _0x1c027e=events[_0xeca95];var _0x198f4a=createListener(_0xec37('0x7')+_0x1c027e,_0x2a1100);VoiceQueueEvents['on'](_0x1c027e,_0x198f4a);}};