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 _0x2963=['save','remove','update','emit','length','userVoiceQueueRt:','./userVoiceQueueRt.events'];(function(_0x78f947,_0x391495){var _0x51c44d=function(_0x9ad043){while(--_0x9ad043){_0x78f947['push'](_0x78f947['shift']());}};_0x51c44d(++_0x391495);}(_0x2963,0xd8));var _0x3296=function(_0x553f07,_0x399995){_0x553f07=_0x553f07-0x0;var _0xf5a29c=_0x2963[_0x553f07];return _0xf5a29c;};'use strict';var UserVoiceQueueRtEvents=require(_0x3296('0x0'));var events=[_0x3296('0x1'),_0x3296('0x2'),_0x3296('0x3')];function createListener(_0x4a65d4,_0x1956fa){return function(_0x4a392c){_0x1956fa[_0x3296('0x4')](_0x4a65d4,_0x4a392c);};}function removeListener(_0x16e6ee,_0x526d81){return function(){UserVoiceQueueRtEvents['removeListener'](_0x16e6ee,_0x526d81);};}exports['register']=function(_0x53a781){for(var _0xab335b=0x0,_0x114431=events[_0x3296('0x5')];_0xab335b<_0x114431;_0xab335b++){var _0x5b8d59=events[_0xab335b];var _0x39bcb7=createListener(_0x3296('0x6')+_0x5b8d59,_0x53a781);UserVoiceQueueRtEvents['on'](_0x5b8d59,_0x39bcb7);}};