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 _0xa41a=['length','./userProfile.events','save','remove','emit','removeListener','register'];(function(_0x18ff42,_0x4a3b2d){var _0x1b850c=function(_0x5907ee){while(--_0x5907ee){_0x18ff42['push'](_0x18ff42['shift']());}};_0x1b850c(++_0x4a3b2d);}(_0xa41a,0x16d));var _0xaa41=function(_0x37a443,_0x5228e4){_0x37a443=_0x37a443-0x0;var _0xb631c=_0xa41a[_0x37a443];return _0xb631c;};'use strict';var UserProfileEvents=require(_0xaa41('0x0'));var events=[_0xaa41('0x1'),_0xaa41('0x2'),'update'];function createListener(_0xdc90c7,_0x2d82b6){return function(_0x501302){_0x2d82b6[_0xaa41('0x3')](_0xdc90c7,_0x501302);};}function removeListener(_0x3dfaac,_0xd7106f){return function(){UserProfileEvents[_0xaa41('0x4')](_0x3dfaac,_0xd7106f);};}exports[_0xaa41('0x5')]=function(_0x4d7706){for(var _0x835ee4=0x0,_0x459ce5=events[_0xaa41('0x6')];_0x835ee4<_0x459ce5;_0x835ee4++){var _0x37f05a=events[_0x835ee4];var _0x398fe2=createListener('userProfile:'+_0x37f05a,_0x4d7706);UserProfileEvents['on'](_0x37f05a,_0x398fe2);}};