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 _0xbf83=['save','remove','emit','removeListener','length','./userProfile.events'];(function(_0x1e06c0,_0x3c8d32){var _0x20a073=function(_0x5e370f){while(--_0x5e370f){_0x1e06c0['push'](_0x1e06c0['shift']());}};_0x20a073(++_0x3c8d32);}(_0xbf83,0x83));var _0x3bf8=function(_0x883339,_0x568895){_0x883339=_0x883339-0x0;var _0x3402f3=_0xbf83[_0x883339];return _0x3402f3;};'use strict';var UserProfileEvents=require(_0x3bf8('0x0'));var events=[_0x3bf8('0x1'),_0x3bf8('0x2'),'update'];function createListener(_0x22ca95,_0x7874ea){return function(_0x2f6143){_0x7874ea[_0x3bf8('0x3')](_0x22ca95,_0x2f6143);};}function removeListener(_0x2df77f,_0x1a1e59){return function(){UserProfileEvents[_0x3bf8('0x4')](_0x2df77f,_0x1a1e59);};}exports['register']=function(_0x5ab996){for(var _0x335d21=0x0,_0x54d85b=events[_0x3bf8('0x5')];_0x335d21<_0x54d85b;_0x335d21++){var _0xc6ab4a=events[_0x335d21];var _0xd8a3d2=createListener('userProfile:'+_0xc6ab4a,_0x5ab996);UserProfileEvents['on'](_0xc6ab4a,_0xd8a3d2);}};