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 _0x4524=['register','./userProfile.events','save','remove','update','emit','removeListener'];(function(_0x353363,_0x3944ef){var _0x3b2052=function(_0xf52e4b){while(--_0xf52e4b){_0x353363['push'](_0x353363['shift']());}};_0x3b2052(++_0x3944ef);}(_0x4524,0x8d));var _0x4452=function(_0x145417,_0x565bfc){_0x145417=_0x145417-0x0;var _0x57c74b=_0x4524[_0x145417];return _0x57c74b;};'use strict';var UserProfileEvents=require(_0x4452('0x0'));var events=[_0x4452('0x1'),_0x4452('0x2'),_0x4452('0x3')];function createListener(_0x1856d8,_0x13e83b){return function(_0x265803){_0x13e83b[_0x4452('0x4')](_0x1856d8,_0x265803);};}function removeListener(_0x2c2627,_0x4384ab){return function(){UserProfileEvents[_0x4452('0x5')](_0x2c2627,_0x4384ab);};}exports[_0x4452('0x6')]=function(_0x5c453a){for(var _0x39da08=0x0,_0x3849a5=events['length'];_0x39da08<_0x3849a5;_0x39da08++){var _0x288f97=events[_0x39da08];var _0x1d7307=createListener('userProfile:'+_0x288f97,_0x5c453a);UserProfileEvents['on'](_0x288f97,_0x1d7307);}};