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 _0x9f15=['emit','register','length','userProfile:','save','remove','update'];(function(_0x29ee0e,_0x1c4708){var _0x515090=function(_0x1a9ad9){while(--_0x1a9ad9){_0x29ee0e['push'](_0x29ee0e['shift']());}};_0x515090(++_0x1c4708);}(_0x9f15,0x138));var _0x59f1=function(_0x1c4c1a,_0x1e4d6b){_0x1c4c1a=_0x1c4c1a-0x0;var _0x434002=_0x9f15[_0x1c4c1a];return _0x434002;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0x59f1('0x0'),_0x59f1('0x1'),_0x59f1('0x2')];function createListener(_0x25c386,_0x3014cb){return function(_0x3512f8){_0x3014cb[_0x59f1('0x3')](_0x25c386,_0x3512f8);};}function removeListener(_0x4a757b,_0x2bae8a){return function(){UserProfileEvents['removeListener'](_0x4a757b,_0x2bae8a);};}exports[_0x59f1('0x4')]=function(_0x44d6a9){for(var _0x5308a7=0x0,_0x1fe5ac=events[_0x59f1('0x5')];_0x5308a7<_0x1fe5ac;_0x5308a7++){var _0x1e3b78=events[_0x5308a7];var _0x4cd13b=createListener(_0x59f1('0x6')+_0x1e3b78,_0x44d6a9);UserProfileEvents['on'](_0x1e3b78,_0x4cd13b);}};