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 _0x1088=['removeListener','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x1df2b0,_0x557e89){var _0x528da3=function(_0x266980){while(--_0x266980){_0x1df2b0['push'](_0x1df2b0['shift']());}};_0x528da3(++_0x557e89);}(_0x1088,0x120));var _0x8108=function(_0xe30817,_0x5975c6){_0xe30817=_0xe30817-0x0;var _0x1a50ae=_0x1088[_0xe30817];return _0x1a50ae;};'use strict';var VoiceQueueEvents=require(_0x8108('0x0'));var events=[_0x8108('0x1'),'remove','update'];function createListener(_0x153060,_0x87c763){return function(_0x5cb06f){_0x87c763['emit'](_0x153060,_0x5cb06f);};}function removeListener(_0x3bde21,_0x35ea26){return function(){VoiceQueueEvents[_0x8108('0x2')](_0x3bde21,_0x35ea26);};}exports['register']=function(_0x347efe){for(var _0x1181e4=0x0,_0xa82c1f=events[_0x8108('0x3')];_0x1181e4<_0xa82c1f;_0x1181e4++){var _0x5e030d=events[_0x1181e4];var _0xa3ebce=createListener(_0x8108('0x4')+_0x5e030d,_0x347efe);VoiceQueueEvents['on'](_0x5e030d,_0xa3ebce);}};