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 _0x34e9=['./userProfile.events','save','remove','length','userProfile:'];(function(_0x360739,_0x2ec1b2){var _0x3e23a1=function(_0x105b37){while(--_0x105b37){_0x360739['push'](_0x360739['shift']());}};_0x3e23a1(++_0x2ec1b2);}(_0x34e9,0x1c7));var _0x934e=function(_0x1e2e85,_0x2a7d81){_0x1e2e85=_0x1e2e85-0x0;var _0x213858=_0x34e9[_0x1e2e85];return _0x213858;};'use strict';var UserProfileEvents=require(_0x934e('0x0'));var events=[_0x934e('0x1'),_0x934e('0x2'),'update'];function createListener(_0x874af9,_0x2abbce){return function(_0x3c46aa){_0x2abbce['emit'](_0x874af9,_0x3c46aa);};}function removeListener(_0x365ab5,_0x2b7235){return function(){UserProfileEvents['removeListener'](_0x365ab5,_0x2b7235);};}exports['register']=function(_0x2ea6ad){for(var _0x5cedd2=0x0,_0x47b981=events[_0x934e('0x3')];_0x5cedd2<_0x47b981;_0x5cedd2++){var _0x3afb0c=events[_0x5cedd2];var _0x2cdb2d=createListener(_0x934e('0x4')+_0x3afb0c,_0x2ea6ad);UserProfileEvents['on'](_0x3afb0c,_0x2cdb2d);}};