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 _0x865f=['./userProfile.events','save','remove','update','emit','removeListener','register','length','userProfile:'];(function(_0x5700a5,_0x26d35c){var _0x1703cf=function(_0x4df030){while(--_0x4df030){_0x5700a5['push'](_0x5700a5['shift']());}};_0x1703cf(++_0x26d35c);}(_0x865f,0xfc));var _0xf865=function(_0x280cc7,_0x24e905){_0x280cc7=_0x280cc7-0x0;var _0x354e2b=_0x865f[_0x280cc7];return _0x354e2b;};'use strict';var UserProfileEvents=require(_0xf865('0x0'));var events=[_0xf865('0x1'),_0xf865('0x2'),_0xf865('0x3')];function createListener(_0x5af441,_0x35b0f4){return function(_0x1be455){_0x35b0f4[_0xf865('0x4')](_0x5af441,_0x1be455);};}function removeListener(_0x41560d,_0x3494d4){return function(){UserProfileEvents[_0xf865('0x5')](_0x41560d,_0x3494d4);};}exports[_0xf865('0x6')]=function(_0x2c869c){for(var _0x23eb2d=0x0,_0xb723d=events[_0xf865('0x7')];_0x23eb2d<_0xb723d;_0x23eb2d++){var _0x554c29=events[_0x23eb2d];var _0x482d45=createListener(_0xf865('0x8')+_0x554c29,_0x2c869c);UserProfileEvents['on'](_0x554c29,_0x482d45);}};