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 _0x0a1e=['./user.events','save','remove','update','emit','removeListener','length','user:'];(function(_0x5067db,_0xf8d2f2){var _0x2771e4=function(_0x3d5cb2){while(--_0x3d5cb2){_0x5067db['push'](_0x5067db['shift']());}};_0x2771e4(++_0xf8d2f2);}(_0x0a1e,0x168));var _0xe0a1=function(_0x160f61,_0x2689be){_0x160f61=_0x160f61-0x0;var _0x5c19a8=_0x0a1e[_0x160f61];return _0x5c19a8;};'use strict';var UserEvents=require(_0xe0a1('0x0'));var events=[_0xe0a1('0x1'),_0xe0a1('0x2'),_0xe0a1('0x3')];function createListener(_0x448c85,_0x52557e){return function(_0x1d293e){_0x52557e[_0xe0a1('0x4')](_0x448c85,_0x1d293e);};}function removeListener(_0x2d3076,_0x227b8e){return function(){UserEvents[_0xe0a1('0x5')](_0x2d3076,_0x227b8e);};}exports['register']=function(_0x359351){for(var _0x1d5d35=0x0,_0x5dc0fb=events[_0xe0a1('0x6')];_0x1d5d35<_0x5dc0fb;_0x1d5d35++){var _0x4b5c86=events[_0x1d5d35];var _0xa87425=createListener(_0xe0a1('0x7')+_0x4b5c86,_0x359351);UserEvents['on'](_0x4b5c86,_0xa87425);}};