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 _0x419f=['emit','removeListener','userProfile:','save','remove','update'];(function(_0xa8494,_0x47dd23){var _0x4bc87c=function(_0xb7accf){while(--_0xb7accf){_0xa8494['push'](_0xa8494['shift']());}};_0x4bc87c(++_0x47dd23);}(_0x419f,0x117));var _0xf419=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x419f[_0x397e5f];return _0x5302b8;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0xf419('0x0'),_0xf419('0x1'),_0xf419('0x2')];function createListener(_0x3d6d0b,_0x438db4){return function(_0xda596d){_0x438db4[_0xf419('0x3')](_0x3d6d0b,_0xda596d);};}function removeListener(_0x4859c9,_0x5eb455){return function(){UserProfileEvents[_0xf419('0x4')](_0x4859c9,_0x5eb455);};}exports['register']=function(_0x34c818){for(var _0x347ce1=0x0,_0x51673f=events['length'];_0x347ce1<_0x51673f;_0x347ce1++){var _0x4b4819=events[_0x347ce1];var _0x5c6c23=createListener(_0xf419('0x5')+_0x4b4819,_0x34c818);UserProfileEvents['on'](_0x4b4819,_0x5c6c23);}};