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 _0x84da=['register','length','userProfile:','./userProfile.events','remove','update','emit','removeListener'];(function(_0x1f71d8,_0x278518){var _0x10b045=function(_0x57aea4){while(--_0x57aea4){_0x1f71d8['push'](_0x1f71d8['shift']());}};_0x10b045(++_0x278518);}(_0x84da,0x16b));var _0xa84d=function(_0xdbf73b,_0x5e5173){_0xdbf73b=_0xdbf73b-0x0;var _0x198847=_0x84da[_0xdbf73b];return _0x198847;};'use strict';var UserProfileEvents=require(_0xa84d('0x0'));var events=['save',_0xa84d('0x1'),_0xa84d('0x2')];function createListener(_0x53ca5d,_0x1eecbe){return function(_0x4817b8){_0x1eecbe[_0xa84d('0x3')](_0x53ca5d,_0x4817b8);};}function removeListener(_0x1fa878,_0x3b9c6f){return function(){UserProfileEvents[_0xa84d('0x4')](_0x1fa878,_0x3b9c6f);};}exports[_0xa84d('0x5')]=function(_0x40602f){for(var _0x4f741b=0x0,_0x57e278=events[_0xa84d('0x6')];_0x4f741b<_0x57e278;_0x4f741b++){var _0x4f2b2b=events[_0x4f741b];var _0x1609a0=createListener(_0xa84d('0x7')+_0x4f2b2b,_0x40602f);UserProfileEvents['on'](_0x4f2b2b,_0x1609a0);}};