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 _0xc1f6=['./userProfile.events','save','update','emit','removeListener','length'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0xc1f6,0xae));var _0x6c1f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc1f6[_0x3dd15e];return _0x231fd0;};'use strict';var UserProfileEvents=require(_0x6c1f('0x0'));var events=[_0x6c1f('0x1'),'remove',_0x6c1f('0x2')];function createListener(_0xa80c75,_0x4211d6){return function(_0xc04b51){_0x4211d6[_0x6c1f('0x3')](_0xa80c75,_0xc04b51);};}function removeListener(_0x4d7d0c,_0x50b845){return function(){UserProfileEvents[_0x6c1f('0x4')](_0x4d7d0c,_0x50b845);};}exports['register']=function(_0x531749){for(var _0x22071e=0x0,_0x4cec78=events[_0x6c1f('0x5')];_0x22071e<_0x4cec78;_0x22071e++){var _0x1ee33b=events[_0x22071e];var _0x4626ee=createListener('userProfile:'+_0x1ee33b,_0x531749);UserProfileEvents['on'](_0x1ee33b,_0x4626ee);}};