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 _0xed77=['update','emit','register','./userVoiceQueueRt.events','save','remove'];(function(_0x30a31e,_0x31f766){var _0x170879=function(_0x313ee7){while(--_0x313ee7){_0x30a31e['push'](_0x30a31e['shift']());}};_0x170879(++_0x31f766);}(_0xed77,0x99));var _0x7ed7=function(_0x2228e4,_0x480393){_0x2228e4=_0x2228e4-0x0;var _0x32fe37=_0xed77[_0x2228e4];return _0x32fe37;};'use strict';var UserVoiceQueueRtEvents=require(_0x7ed7('0x0'));var events=[_0x7ed7('0x1'),_0x7ed7('0x2'),_0x7ed7('0x3')];function createListener(_0x333080,_0x4a9881){return function(_0x51f6aa){_0x4a9881[_0x7ed7('0x4')](_0x333080,_0x51f6aa);};}function removeListener(_0x52e36d,_0x242e67){return function(){UserVoiceQueueRtEvents['removeListener'](_0x52e36d,_0x242e67);};}exports[_0x7ed7('0x5')]=function(_0x3bdfe5){for(var _0x45fc0c=0x0,_0x184bc9=events['length'];_0x45fc0c<_0x184bc9;_0x45fc0c++){var _0x167a9d=events[_0x45fc0c];var _0x29615b=createListener('userVoiceQueueRt:'+_0x167a9d,_0x3bdfe5);UserVoiceQueueRtEvents['on'](_0x167a9d,_0x29615b);}};