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 _0xf396=['save','remove','removeListener','length','userProfile:','./userProfile.events'];(function(_0x106bd7,_0xbb7a9){var _0x25899b=function(_0x45a139){while(--_0x45a139){_0x106bd7['push'](_0x106bd7['shift']());}};_0x25899b(++_0xbb7a9);}(_0xf396,0xad));var _0x6f39=function(_0x155704,_0x448728){_0x155704=_0x155704-0x0;var _0x1a28cf=_0xf396[_0x155704];return _0x1a28cf;};'use strict';var UserProfileEvents=require(_0x6f39('0x0'));var events=[_0x6f39('0x1'),_0x6f39('0x2'),'update'];function createListener(_0x58cf80,_0x52df2e){return function(_0x5ad0d9){_0x52df2e['emit'](_0x58cf80,_0x5ad0d9);};}function removeListener(_0x591b81,_0x472e0a){return function(){UserProfileEvents[_0x6f39('0x3')](_0x591b81,_0x472e0a);};}exports['register']=function(_0x54b141){for(var _0x55a00=0x0,_0x42a760=events[_0x6f39('0x4')];_0x55a00<_0x42a760;_0x55a00++){var _0x11fa41=events[_0x55a00];var _0x2ae7cc=createListener(_0x6f39('0x5')+_0x11fa41,_0x54b141);UserProfileEvents['on'](_0x11fa41,_0x2ae7cc);}};