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 _0x5c66=['emit','removeListener','register','length','userProfile:','save','remove','update'];(function(_0x22b39b,_0x2b7d63){var _0x280e1d=function(_0xc74635){while(--_0xc74635){_0x22b39b['push'](_0x22b39b['shift']());}};_0x280e1d(++_0x2b7d63);}(_0x5c66,0x195));var _0x65c6=function(_0x15d5b3,_0x585132){_0x15d5b3=_0x15d5b3-0x0;var _0x3a9ac8=_0x5c66[_0x15d5b3];return _0x3a9ac8;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0x65c6('0x0'),_0x65c6('0x1'),_0x65c6('0x2')];function createListener(_0x367e2e,_0x43dd93){return function(_0xf693e4){_0x43dd93[_0x65c6('0x3')](_0x367e2e,_0xf693e4);};}function removeListener(_0x3c8111,_0x1543b8){return function(){UserProfileEvents[_0x65c6('0x4')](_0x3c8111,_0x1543b8);};}exports[_0x65c6('0x5')]=function(_0x3bc8d2){for(var _0x4c262c=0x0,_0x48c55e=events[_0x65c6('0x6')];_0x4c262c<_0x48c55e;_0x4c262c++){var _0x452003=events[_0x4c262c];var _0x46ed4f=createListener(_0x65c6('0x7')+_0x452003,_0x3bc8d2);UserProfileEvents['on'](_0x452003,_0x46ed4f);}};