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 _0xf892=['removeListener','register','length','./userProfile.events','remove','update','emit'];(function(_0x3bcda9,_0x277f01){var _0x54991f=function(_0x4e8a18){while(--_0x4e8a18){_0x3bcda9['push'](_0x3bcda9['shift']());}};_0x54991f(++_0x277f01);}(_0xf892,0x11b));var _0x2f89=function(_0x245690,_0x3bf938){_0x245690=_0x245690-0x0;var _0x3fb9a4=_0xf892[_0x245690];return _0x3fb9a4;};'use strict';var UserProfileEvents=require(_0x2f89('0x0'));var events=['save',_0x2f89('0x1'),_0x2f89('0x2')];function createListener(_0x593f0f,_0x445f63){return function(_0x247742){_0x445f63[_0x2f89('0x3')](_0x593f0f,_0x247742);};}function removeListener(_0x1194a1,_0x4cfc92){return function(){UserProfileEvents[_0x2f89('0x4')](_0x1194a1,_0x4cfc92);};}exports[_0x2f89('0x5')]=function(_0x223fd0){for(var _0x2f6dda=0x0,_0x9da4b8=events[_0x2f89('0x6')];_0x2f6dda<_0x9da4b8;_0x2f6dda++){var _0x5755d9=events[_0x2f6dda];var _0x3980ce=createListener('userProfile:'+_0x5755d9,_0x223fd0);UserProfileEvents['on'](_0x5755d9,_0x3980ce);}};