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 _0x98e3=['emit','removeListener','register','length','voiceQueue:','./voiceQueue.events','remove','update'];(function(_0x5149ae,_0x4f2388){var _0x5a9a81=function(_0x252c6e){while(--_0x252c6e){_0x5149ae['push'](_0x5149ae['shift']());}};_0x5a9a81(++_0x4f2388);}(_0x98e3,0x65));var _0x398e=function(_0x1a8f99,_0x6af913){_0x1a8f99=_0x1a8f99-0x0;var _0x4c1c19=_0x98e3[_0x1a8f99];return _0x4c1c19;};'use strict';var VoiceQueueEvents=require(_0x398e('0x0'));var events=['save',_0x398e('0x1'),_0x398e('0x2')];function createListener(_0x431087,_0x237491){return function(_0x9dc80d){_0x237491[_0x398e('0x3')](_0x431087,_0x9dc80d);};}function removeListener(_0x317779,_0x164c78){return function(){VoiceQueueEvents[_0x398e('0x4')](_0x317779,_0x164c78);};}exports[_0x398e('0x5')]=function(_0x3c52c6){for(var _0x34aefb=0x0,_0x541c0e=events[_0x398e('0x6')];_0x34aefb<_0x541c0e;_0x34aefb++){var _0x25fc7d=events[_0x34aefb];var _0x26654c=createListener(_0x398e('0x7')+_0x25fc7d,_0x3c52c6);VoiceQueueEvents['on'](_0x25fc7d,_0x26654c);}};