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 _0x3695=['register','length','voiceQueue:','./voiceQueue.events','remove','emit','removeListener'];(function(_0x6a0266,_0x1552d6){var _0x309e00=function(_0x17c1d1){while(--_0x17c1d1){_0x6a0266['push'](_0x6a0266['shift']());}};_0x309e00(++_0x1552d6);}(_0x3695,0x1df));var _0x5369=function(_0x14a990,_0x55b548){_0x14a990=_0x14a990-0x0;var _0x329428=_0x3695[_0x14a990];return _0x329428;};'use strict';var VoiceQueueEvents=require(_0x5369('0x0'));var events=['save',_0x5369('0x1'),'update'];function createListener(_0x4c0e69,_0x4e311c){return function(_0x521884){_0x4e311c[_0x5369('0x2')](_0x4c0e69,_0x521884);};}function removeListener(_0x55afbb,_0x23f2fd){return function(){VoiceQueueEvents[_0x5369('0x3')](_0x55afbb,_0x23f2fd);};}exports[_0x5369('0x4')]=function(_0xa78a07){for(var _0x424455=0x0,_0x466c35=events[_0x5369('0x5')];_0x424455<_0x466c35;_0x424455++){var _0x4ceda9=events[_0x424455];var _0x3f6911=createListener(_0x5369('0x6')+_0x4ceda9,_0xa78a07);VoiceQueueEvents['on'](_0x4ceda9,_0x3f6911);}};