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 _0x3bf1=['removeListener','register','length','./userProfile.events','update','emit'];(function(_0x5d4977,_0x21ce13){var _0x45b712=function(_0x4c2f8c){while(--_0x4c2f8c){_0x5d4977['push'](_0x5d4977['shift']());}};_0x45b712(++_0x21ce13);}(_0x3bf1,0x99));var _0x13bf=function(_0x28a4c8,_0x1c7867){_0x28a4c8=_0x28a4c8-0x0;var _0x154cc3=_0x3bf1[_0x28a4c8];return _0x154cc3;};'use strict';var UserProfileEvents=require(_0x13bf('0x0'));var events=['save','remove',_0x13bf('0x1')];function createListener(_0x10a553,_0x54d2a9){return function(_0x2a2f8f){_0x54d2a9[_0x13bf('0x2')](_0x10a553,_0x2a2f8f);};}function removeListener(_0x424e35,_0x3f1cb0){return function(){UserProfileEvents[_0x13bf('0x3')](_0x424e35,_0x3f1cb0);};}exports[_0x13bf('0x4')]=function(_0x51d5b3){for(var _0x4a112b=0x0,_0x58a712=events[_0x13bf('0x5')];_0x4a112b<_0x58a712;_0x4a112b++){var _0x125686=events[_0x4a112b];var _0x4693b2=createListener('userProfile:'+_0x125686,_0x51d5b3);UserProfileEvents['on'](_0x125686,_0x4693b2);}};