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 _0x0bb9=['length','voiceQueue:','./voiceQueue.events','remove','update','removeListener','register'];(function(_0x1911ed,_0x4e8c73){var _0x11edaa=function(_0x216008){while(--_0x216008){_0x1911ed['push'](_0x1911ed['shift']());}};_0x11edaa(++_0x4e8c73);}(_0x0bb9,0xd4));var _0x90bb=function(_0x5f3f88,_0x562baf){_0x5f3f88=_0x5f3f88-0x0;var _0xd08119=_0x0bb9[_0x5f3f88];return _0xd08119;};'use strict';var VoiceQueueEvents=require(_0x90bb('0x0'));var events=['save',_0x90bb('0x1'),_0x90bb('0x2')];function createListener(_0x5f2b6d,_0x3b8df8){return function(_0x283a27){_0x3b8df8['emit'](_0x5f2b6d,_0x283a27);};}function removeListener(_0x4b79da,_0x29f70d){return function(){VoiceQueueEvents[_0x90bb('0x3')](_0x4b79da,_0x29f70d);};}exports[_0x90bb('0x4')]=function(_0x1d90ad){for(var _0x12ceaa=0x0,_0x3b54fd=events[_0x90bb('0x5')];_0x12ceaa<_0x3b54fd;_0x12ceaa++){var _0x595e5c=events[_0x12ceaa];var _0x3f827f=createListener(_0x90bb('0x6')+_0x595e5c,_0x1d90ad);VoiceQueueEvents['on'](_0x595e5c,_0x3f827f);}};