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 _0xf35a=['userProfile:','./userProfile.events','save','update','register','length'];(function(_0x2405bc,_0x2f28a1){var _0x5272d4=function(_0x225294){while(--_0x225294){_0x2405bc['push'](_0x2405bc['shift']());}};_0x5272d4(++_0x2f28a1);}(_0xf35a,0xa3));var _0xaf35=function(_0x14361d,_0x4aa821){_0x14361d=_0x14361d-0x0;var _0x518d84=_0xf35a[_0x14361d];return _0x518d84;};'use strict';var UserProfileEvents=require(_0xaf35('0x0'));var events=[_0xaf35('0x1'),'remove',_0xaf35('0x2')];function createListener(_0x5499d9,_0x459773){return function(_0x3ca82d){_0x459773['emit'](_0x5499d9,_0x3ca82d);};}function removeListener(_0x15d2ce,_0x5a8b70){return function(){UserProfileEvents['removeListener'](_0x15d2ce,_0x5a8b70);};}exports[_0xaf35('0x3')]=function(_0x34276e){for(var _0x11b867=0x0,_0x5f5549=events[_0xaf35('0x4')];_0x11b867<_0x5f5549;_0x11b867++){var _0x351f11=events[_0x11b867];var _0x174f26=createListener(_0xaf35('0x5')+_0x351f11,_0x34276e);UserProfileEvents['on'](_0x351f11,_0x174f26);}};