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 _0x04f1=['length','userProfile:','./userProfile.events','save','remove','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x04f1,0x92));var _0x104f=function(_0x3ef273,_0x835720){_0x3ef273=_0x3ef273-0x0;var _0x164c48=_0x04f1[_0x3ef273];return _0x164c48;};'use strict';var UserProfileEvents=require(_0x104f('0x0'));var events=[_0x104f('0x1'),_0x104f('0x2'),'update'];function createListener(_0x49868f,_0x1c9941){return function(_0x442b5d){_0x1c9941[_0x104f('0x3')](_0x49868f,_0x442b5d);};}function removeListener(_0x55c56e,_0x4b4197){return function(){UserProfileEvents['removeListener'](_0x55c56e,_0x4b4197);};}exports['register']=function(_0x4e767b){for(var _0x20a746=0x0,_0x289bb8=events[_0x104f('0x4')];_0x20a746<_0x289bb8;_0x20a746++){var _0x1d5651=events[_0x20a746];var _0x57acf5=createListener(_0x104f('0x5')+_0x1d5651,_0x4e767b);UserProfileEvents['on'](_0x1d5651,_0x57acf5);}};