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 _0xd5da=['update','emit','removeListener','register','length','./userVoiceQueueRt.events','save'];(function(_0x9f0df2,_0x32a8b7){var _0x1e61c9=function(_0x56210a){while(--_0x56210a){_0x9f0df2['push'](_0x9f0df2['shift']());}};_0x1e61c9(++_0x32a8b7);}(_0xd5da,0x9f));var _0xad5d=function(_0x1f2b20,_0x3da97d){_0x1f2b20=_0x1f2b20-0x0;var _0x2fb5f0=_0xd5da[_0x1f2b20];return _0x2fb5f0;};'use strict';var UserVoiceQueueRtEvents=require(_0xad5d('0x0'));var events=[_0xad5d('0x1'),'remove',_0xad5d('0x2')];function createListener(_0x940aba,_0x1daa50){return function(_0x5ea4c6){_0x1daa50[_0xad5d('0x3')](_0x940aba,_0x5ea4c6);};}function removeListener(_0x57a1ae,_0xfb6438){return function(){UserVoiceQueueRtEvents[_0xad5d('0x4')](_0x57a1ae,_0xfb6438);};}exports[_0xad5d('0x5')]=function(_0x2bec21){for(var _0x1ff6fc=0x0,_0xb29da0=events[_0xad5d('0x6')];_0x1ff6fc<_0xb29da0;_0x1ff6fc++){var _0xc6d93a=events[_0x1ff6fc];var _0xdda3bb=createListener('userVoiceQueueRt:'+_0xc6d93a,_0x2bec21);UserVoiceQueueRtEvents['on'](_0xc6d93a,_0xdda3bb);}};