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 _0x2c7f=['remove','update','emit','removeListener','register','length','save'];(function(_0x4e9628,_0x250573){var _0x27bc8c=function(_0xb3b7ae){while(--_0xb3b7ae){_0x4e9628['push'](_0x4e9628['shift']());}};_0x27bc8c(++_0x250573);}(_0x2c7f,0x1cd));var _0xf2c7=function(_0x367286,_0x52db80){_0x367286=_0x367286-0x0;var _0x251bb3=_0x2c7f[_0x367286];return _0x251bb3;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0xf2c7('0x0'),_0xf2c7('0x1'),_0xf2c7('0x2')];function createListener(_0x1c7d7f,_0x262411){return function(_0x1dcd7e){_0x262411[_0xf2c7('0x3')](_0x1c7d7f,_0x1dcd7e);};}function removeListener(_0x3cf9fb,_0x1d075e){return function(){UserProfileEvents[_0xf2c7('0x4')](_0x3cf9fb,_0x1d075e);};}exports[_0xf2c7('0x5')]=function(_0x138cbd){for(var _0x148fe8=0x0,_0x97606d=events[_0xf2c7('0x6')];_0x148fe8<_0x97606d;_0x148fe8++){var _0x231483=events[_0x148fe8];var _0xc41c3=createListener('userProfile:'+_0x231483,_0x138cbd);UserProfileEvents['on'](_0x231483,_0xc41c3);}};