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 _0x2cf5=['userProfile:','./userProfile.events','save','remove','update','length'];(function(_0x237c28,_0x3ab7ca){var _0x25b613=function(_0x52a6ae){while(--_0x52a6ae){_0x237c28['push'](_0x237c28['shift']());}};_0x25b613(++_0x3ab7ca);}(_0x2cf5,0xbb));var _0x52cf=function(_0x1fbc01,_0x3dabf1){_0x1fbc01=_0x1fbc01-0x0;var _0x5e3e56=_0x2cf5[_0x1fbc01];return _0x5e3e56;};'use strict';var UserProfileEvents=require(_0x52cf('0x0'));var events=[_0x52cf('0x1'),_0x52cf('0x2'),_0x52cf('0x3')];function createListener(_0x736abe,_0x575722){return function(_0x7262b9){_0x575722['emit'](_0x736abe,_0x7262b9);};}function removeListener(_0x211bd5,_0xbde382){return function(){UserProfileEvents['removeListener'](_0x211bd5,_0xbde382);};}exports['register']=function(_0x527e97){for(var _0x41ac4e=0x0,_0x491c22=events[_0x52cf('0x4')];_0x41ac4e<_0x491c22;_0x41ac4e++){var _0x2b829d=events[_0x41ac4e];var _0x27fa20=createListener(_0x52cf('0x5')+_0x2b829d,_0x527e97);UserProfileEvents['on'](_0x2b829d,_0x27fa20);}};