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 _0x970d=['remove','emit','removeListener','length','userProfile:','./userProfile.events','save'];(function(_0x4fc79e,_0x3b1919){var _0x301cba=function(_0x39ed05){while(--_0x39ed05){_0x4fc79e['push'](_0x4fc79e['shift']());}};_0x301cba(++_0x3b1919);}(_0x970d,0x15c));var _0xd970=function(_0x70fd53,_0x2a95a6){_0x70fd53=_0x70fd53-0x0;var _0x4b71c5=_0x970d[_0x70fd53];return _0x4b71c5;};'use strict';var UserProfileEvents=require(_0xd970('0x0'));var events=[_0xd970('0x1'),_0xd970('0x2'),'update'];function createListener(_0x79dae4,_0x24ad24){return function(_0x50b2bc){_0x24ad24[_0xd970('0x3')](_0x79dae4,_0x50b2bc);};}function removeListener(_0x4c0f9e,_0x4d640b){return function(){UserProfileEvents[_0xd970('0x4')](_0x4c0f9e,_0x4d640b);};}exports['register']=function(_0x3ef441){for(var _0x1354d8=0x0,_0x44d50e=events[_0xd970('0x5')];_0x1354d8<_0x44d50e;_0x1354d8++){var _0x195047=events[_0x1354d8];var _0x473b09=createListener(_0xd970('0x6')+_0x195047,_0x3ef441);UserProfileEvents['on'](_0x195047,_0x473b09);}};