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 _0xe36b=['register','length','voiceQueue:','./voiceQueue.events','save','remove','update'];(function(_0xc6dc35,_0x333ad6){var _0x5236f5=function(_0x59d8c7){while(--_0x59d8c7){_0xc6dc35['push'](_0xc6dc35['shift']());}};_0x5236f5(++_0x333ad6);}(_0xe36b,0xb9));var _0xbe36=function(_0x9ac298,_0x3db8ae){_0x9ac298=_0x9ac298-0x0;var _0xbecca6=_0xe36b[_0x9ac298];return _0xbecca6;};'use strict';var VoiceQueueEvents=require(_0xbe36('0x0'));var events=[_0xbe36('0x1'),_0xbe36('0x2'),_0xbe36('0x3')];function createListener(_0x5da505,_0x4df0f9){return function(_0xed0449){_0x4df0f9['emit'](_0x5da505,_0xed0449);};}function removeListener(_0x1f6818,_0xa7db88){return function(){VoiceQueueEvents['removeListener'](_0x1f6818,_0xa7db88);};}exports[_0xbe36('0x4')]=function(_0x55c7dd){for(var _0x378ccc=0x0,_0x1a56db=events[_0xbe36('0x5')];_0x378ccc<_0x1a56db;_0x378ccc++){var _0x417041=events[_0x378ccc];var _0x283dc4=createListener(_0xbe36('0x6')+_0x417041,_0x55c7dd);VoiceQueueEvents['on'](_0x417041,_0x283dc4);}};