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 _0x8395=['remove','emit','removeListener','register','length','userProfile:','./userProfile.events','save'];(function(_0x556927,_0x34b53f){var _0x5f1235=function(_0x4f4e44){while(--_0x4f4e44){_0x556927['push'](_0x556927['shift']());}};_0x5f1235(++_0x34b53f);}(_0x8395,0x15e));var _0x5839=function(_0x5e3b04,_0xbb6795){_0x5e3b04=_0x5e3b04-0x0;var _0x1fc44d=_0x8395[_0x5e3b04];return _0x1fc44d;};'use strict';var UserProfileEvents=require(_0x5839('0x0'));var events=[_0x5839('0x1'),_0x5839('0x2'),'update'];function createListener(_0x5d057b,_0x163d11){return function(_0x237a49){_0x163d11[_0x5839('0x3')](_0x5d057b,_0x237a49);};}function removeListener(_0x4b9453,_0x516a9d){return function(){UserProfileEvents[_0x5839('0x4')](_0x4b9453,_0x516a9d);};}exports[_0x5839('0x5')]=function(_0x26dcdc){for(var _0x1be2e3=0x0,_0x942168=events[_0x5839('0x6')];_0x1be2e3<_0x942168;_0x1be2e3++){var _0x1f0264=events[_0x1be2e3];var _0x58585d=createListener(_0x5839('0x7')+_0x1f0264,_0x26dcdc);UserProfileEvents['on'](_0x1f0264,_0x58585d);}};