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 _0x1ee1=['save','remove','update','emit','removeListener','length','userProfile:','./userProfile.events'];(function(_0x55ff79,_0x3d45e7){var _0x579067=function(_0x3650e4){while(--_0x3650e4){_0x55ff79['push'](_0x55ff79['shift']());}};_0x579067(++_0x3d45e7);}(_0x1ee1,0x15f));var _0x11ee=function(_0x567e94,_0x3284a7){_0x567e94=_0x567e94-0x0;var _0x3880ff=_0x1ee1[_0x567e94];return _0x3880ff;};'use strict';var UserProfileEvents=require(_0x11ee('0x0'));var events=[_0x11ee('0x1'),_0x11ee('0x2'),_0x11ee('0x3')];function createListener(_0x46c093,_0x15f9e5){return function(_0x103599){_0x15f9e5[_0x11ee('0x4')](_0x46c093,_0x103599);};}function removeListener(_0x15bcad,_0x343945){return function(){UserProfileEvents[_0x11ee('0x5')](_0x15bcad,_0x343945);};}exports['register']=function(_0x126f07){for(var _0x52d921=0x0,_0xf78b1e=events[_0x11ee('0x6')];_0x52d921<_0xf78b1e;_0x52d921++){var _0x3caf91=events[_0x52d921];var _0x99a47=createListener(_0x11ee('0x7')+_0x3caf91,_0x126f07);UserProfileEvents['on'](_0x3caf91,_0x99a47);}};