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 _0xf256=['userProfile:','remove','update','emit','removeListener','register','length'];(function(_0x57014b,_0x360c0f){var _0x2b258a=function(_0x52c4a3){while(--_0x52c4a3){_0x57014b['push'](_0x57014b['shift']());}};_0x2b258a(++_0x360c0f);}(_0xf256,0x135));var _0x6f25=function(_0x2e547a,_0x3a4dfa){_0x2e547a=_0x2e547a-0x0;var _0x252463=_0xf256[_0x2e547a];return _0x252463;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=['save',_0x6f25('0x0'),_0x6f25('0x1')];function createListener(_0x4034da,_0x1c575a){return function(_0x5cfeab){_0x1c575a[_0x6f25('0x2')](_0x4034da,_0x5cfeab);};}function removeListener(_0x41f125,_0x37df06){return function(){UserProfileEvents[_0x6f25('0x3')](_0x41f125,_0x37df06);};}exports[_0x6f25('0x4')]=function(_0x11542b){for(var _0x16aac0=0x0,_0x1504e8=events[_0x6f25('0x5')];_0x16aac0<_0x1504e8;_0x16aac0++){var _0xe2621=events[_0x16aac0];var _0x40c5b7=createListener(_0x6f25('0x6')+_0xe2621,_0x11542b);UserProfileEvents['on'](_0xe2621,_0x40c5b7);}};