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 _0x3790=['removeListener','register','userProfile:','./userProfile.events','save','remove','update','emit'];(function(_0x1f3cdf,_0x42c9c0){var _0x53e68a=function(_0x25db3a){while(--_0x25db3a){_0x1f3cdf['push'](_0x1f3cdf['shift']());}};_0x53e68a(++_0x42c9c0);}(_0x3790,0x1bb));var _0x0379=function(_0x174bcd,_0x13ee7a){_0x174bcd=_0x174bcd-0x0;var _0x1ee0d3=_0x3790[_0x174bcd];return _0x1ee0d3;};'use strict';var UserProfileEvents=require(_0x0379('0x0'));var events=[_0x0379('0x1'),_0x0379('0x2'),_0x0379('0x3')];function createListener(_0x124602,_0x26df66){return function(_0x4af445){_0x26df66[_0x0379('0x4')](_0x124602,_0x4af445);};}function removeListener(_0x772029,_0x3325d4){return function(){UserProfileEvents[_0x0379('0x5')](_0x772029,_0x3325d4);};}exports[_0x0379('0x6')]=function(_0x3fafd2){for(var _0xbb5f93=0x0,_0x181c14=events['length'];_0xbb5f93<_0x181c14;_0xbb5f93++){var _0x560431=events[_0xbb5f93];var _0x10a6a3=createListener(_0x0379('0x7')+_0x560431,_0x3fafd2);UserProfileEvents['on'](_0x560431,_0x10a6a3);}};