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 _0x3399=['remove','emit','removeListener','length','userProfile:','save'];(function(_0x4d8e08,_0x5c4c73){var _0x49a12a=function(_0xe0ba77){while(--_0xe0ba77){_0x4d8e08['push'](_0x4d8e08['shift']());}};_0x49a12a(++_0x5c4c73);}(_0x3399,0xef));var _0x9339=function(_0x132074,_0x1651d8){_0x132074=_0x132074-0x0;var _0xb502b7=_0x3399[_0x132074];return _0xb502b7;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0x9339('0x0'),_0x9339('0x1'),'update'];function createListener(_0x494086,_0x332b11){return function(_0x42bc2e){_0x332b11[_0x9339('0x2')](_0x494086,_0x42bc2e);};}function removeListener(_0x3d04da,_0x260766){return function(){UserProfileEvents[_0x9339('0x3')](_0x3d04da,_0x260766);};}exports['register']=function(_0x268170){for(var _0xf4292d=0x0,_0x571c29=events[_0x9339('0x4')];_0xf4292d<_0x571c29;_0xf4292d++){var _0x1f26cd=events[_0xf4292d];var _0x272f5b=createListener(_0x9339('0x5')+_0x1f26cd,_0x268170);UserProfileEvents['on'](_0x1f26cd,_0x272f5b);}};