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 _0xbb3f=['emit','removeListener','length','userVoiceQueueRt:','remove'];(function(_0x3f5571,_0x3b564f){var _0x22c05f=function(_0x229f5b){while(--_0x229f5b){_0x3f5571['push'](_0x3f5571['shift']());}};_0x22c05f(++_0x3b564f);}(_0xbb3f,0x1e9));var _0xfbb3=function(_0x22ef0f,_0x5212fd){_0x22ef0f=_0x22ef0f-0x0;var _0x4f70e1=_0xbb3f[_0x22ef0f];return _0x4f70e1;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save',_0xfbb3('0x0'),'update'];function createListener(_0x9aae8b,_0x4072e9){return function(_0x58a988){_0x4072e9[_0xfbb3('0x1')](_0x9aae8b,_0x58a988);};}function removeListener(_0xf7c46c,_0x3e5272){return function(){UserVoiceQueueRtEvents[_0xfbb3('0x2')](_0xf7c46c,_0x3e5272);};}exports['register']=function(_0x1b889b){for(var _0x371cf9=0x0,_0x4bf095=events[_0xfbb3('0x3')];_0x371cf9<_0x4bf095;_0x371cf9++){var _0x243043=events[_0x371cf9];var _0x3f730d=createListener(_0xfbb3('0x4')+_0x243043,_0x1b889b);UserVoiceQueueRtEvents['on'](_0x243043,_0x3f730d);}};