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 _0x547b=['register','length','voiceQueue:','./voiceQueue.events','save','emit','removeListener'];(function(_0x2dc5b7,_0x3837ba){var _0x4edb5b=function(_0x3ed644){while(--_0x3ed644){_0x2dc5b7['push'](_0x2dc5b7['shift']());}};_0x4edb5b(++_0x3837ba);}(_0x547b,0x1b5));var _0xb547=function(_0x41458c,_0x2e3ffc){_0x41458c=_0x41458c-0x0;var _0x250e13=_0x547b[_0x41458c];return _0x250e13;};'use strict';var VoiceQueueEvents=require(_0xb547('0x0'));var events=[_0xb547('0x1'),'remove','update'];function createListener(_0x1d3cea,_0x56aebc){return function(_0x658071){_0x56aebc[_0xb547('0x2')](_0x1d3cea,_0x658071);};}function removeListener(_0x578a5d,_0xc6533d){return function(){VoiceQueueEvents[_0xb547('0x3')](_0x578a5d,_0xc6533d);};}exports[_0xb547('0x4')]=function(_0x2e6293){for(var _0x146eb7=0x0,_0x2b9508=events[_0xb547('0x5')];_0x146eb7<_0x2b9508;_0x146eb7++){var _0xd0f30f=events[_0x146eb7];var _0x2d3748=createListener(_0xb547('0x6')+_0xd0f30f,_0x2e6293);VoiceQueueEvents['on'](_0xd0f30f,_0x2d3748);}};