'use strict';
import { loadPermissions } from '../../../meta/auth/permissions/permission-checker.js';
import { handlePromiseRejection, handleGlobalError } from '../../../../fd-toolbox/lib/utils.js';
import { setCustomResourceListConfigs } from '../../../meta/resource-list/resource-list-configs.js';

var __defProp=Object['defineProperty'],__name=(_0x3707c6,_0x5c542e)=>__defProp(_0x3707c6,'name',{'value':_0x5c542e,'configurable':!![]});async function initialize(_0x37dbd4,_0x3173f8,_0xeeb204){setCustomResourceListConfigs(_0x37dbd4),_0xeeb204&&await loadPermissions(_0xeeb204),_0x3173f8(![]);}__name(initialize,'initialize');function setupErrorHandling(){window['onerror']=onWindowError,window['onunhandledrejection']=handlePromiseRejection;}__name(setupErrorHandling,'setupErrorHandling');function onWindowError(_0x16df71,_0x266361,_0x36337f,_0x25808d,_0x5ebac2){return handleGlobalError(_0x16df71,_0x5ebac2);}__name(onWindowError,'onWindowError');

export { initialize, setupErrorHandling };
