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 _0x2aca=['removeListener','register','userProfile:','./userProfile.events','save','remove','update','emit'];(function(_0x152b6b,_0x4c61f5){var _0xa0541=function(_0xe44b36){while(--_0xe44b36){_0x152b6b['push'](_0x152b6b['shift']());}};_0xa0541(++_0x4c61f5);}(_0x2aca,0x19b));var _0xa2ac=function(_0x867dab,_0x1daea5){_0x867dab=_0x867dab-0x0;var _0x4d2cee=_0x2aca[_0x867dab];return _0x4d2cee;};'use strict';var UserProfileEvents=require(_0xa2ac('0x0'));var events=[_0xa2ac('0x1'),_0xa2ac('0x2'),_0xa2ac('0x3')];function createListener(_0xb6d340,_0x45c4a1){return function(_0x206f6a){_0x45c4a1[_0xa2ac('0x4')](_0xb6d340,_0x206f6a);};}function removeListener(_0x16d151,_0x20876d){return function(){UserProfileEvents[_0xa2ac('0x5')](_0x16d151,_0x20876d);};}exports[_0xa2ac('0x6')]=function(_0x16eb42){for(var _0x9908ae=0x0,_0x19e3c0=events['length'];_0x9908ae<_0x19e3c0;_0x9908ae++){var _0x10c45a=events[_0x9908ae];var _0x3372ab=createListener(_0xa2ac('0x7')+_0x10c45a,_0x16eb42);UserProfileEvents['on'](_0x10c45a,_0x3372ab);}};