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 _0x8b4d=['emit','register','userProfile:','./userProfile.events','remove','update'];(function(_0xb65834,_0x1b46ed){var _0x467cbd=function(_0x38c83f){while(--_0x38c83f){_0xb65834['push'](_0xb65834['shift']());}};_0x467cbd(++_0x1b46ed);}(_0x8b4d,0x1c5));var _0xd8b4=function(_0x340380,_0x4bd2a8){_0x340380=_0x340380-0x0;var _0x49ce1c=_0x8b4d[_0x340380];return _0x49ce1c;};'use strict';var UserProfileEvents=require(_0xd8b4('0x0'));var events=['save',_0xd8b4('0x1'),_0xd8b4('0x2')];function createListener(_0x4c7c0d,_0x37f1ee){return function(_0x24aae1){_0x37f1ee[_0xd8b4('0x3')](_0x4c7c0d,_0x24aae1);};}function removeListener(_0x3b7e03,_0x56d1d4){return function(){UserProfileEvents['removeListener'](_0x3b7e03,_0x56d1d4);};}exports[_0xd8b4('0x4')]=function(_0x101188){for(var _0x2de81c=0x0,_0x47a413=events['length'];_0x2de81c<_0x47a413;_0x2de81c++){var _0x456e18=events[_0x2de81c];var _0x2f434b=createListener(_0xd8b4('0x5')+_0x456e18,_0x101188);UserProfileEvents['on'](_0x456e18,_0x2f434b);}};