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 _0xf417=['update','length','userVoiceQueueRt:','save','remove'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xf417,0x8f));var _0x7f41=function(_0x16954c,_0x2f3051){_0x16954c=_0x16954c-0x0;var _0x93e220=_0xf417[_0x16954c];return _0x93e220;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x7f41('0x0'),_0x7f41('0x1'),_0x7f41('0x2')];function createListener(_0x57aab7,_0x85053){return function(_0x5d5098){_0x85053['emit'](_0x57aab7,_0x5d5098);};}function removeListener(_0x2b7d4c,_0x5170ec){return function(){UserVoiceQueueRtEvents['removeListener'](_0x2b7d4c,_0x5170ec);};}exports['register']=function(_0x5ecdb2){for(var _0x1775d8=0x0,_0x4e37b5=events[_0x7f41('0x3')];_0x1775d8<_0x4e37b5;_0x1775d8++){var _0x295136=events[_0x1775d8];var _0x507ac0=createListener(_0x7f41('0x4')+_0x295136,_0x5ecdb2);UserVoiceQueueRtEvents['on'](_0x295136,_0x507ac0);}};