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 _0x0954=['save','remove','emit','removeListener','register'];(function(_0x5f5059,_0x469cd8){var _0x2245e3=function(_0x5739b9){while(--_0x5739b9){_0x5f5059['push'](_0x5f5059['shift']());}};_0x2245e3(++_0x469cd8);}(_0x0954,0x82));var _0x4095=function(_0x32c012,_0xe3c576){_0x32c012=_0x32c012-0x0;var _0x48562e=_0x0954[_0x32c012];return _0x48562e;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0x4095('0x0'),_0x4095('0x1'),'update'];function createListener(_0x3ec912,_0x2e8e3a){return function(_0x36dad5){_0x2e8e3a[_0x4095('0x2')](_0x3ec912,_0x36dad5);};}function removeListener(_0x1de085,_0x114a21){return function(){UserProfileEvents[_0x4095('0x3')](_0x1de085,_0x114a21);};}exports[_0x4095('0x4')]=function(_0x4ee8d2){for(var _0x39dc8f=0x0,_0x3bb6e9=events['length'];_0x39dc8f<_0x3bb6e9;_0x39dc8f++){var _0x7696e4=events[_0x39dc8f];var _0x5ae8be=createListener('userProfile:'+_0x7696e4,_0x4ee8d2);UserProfileEvents['on'](_0x7696e4,_0x5ae8be);}};