Liferay.Loader.define("@liferay/analytics-settings-web@5.0.42/js/utils/api",["module","exports","require","frontend-js-web"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.fetchConnection=function(e){return(0,o.fetch)("/o/analytics-settings-rest/v1.0/data-source",{body:JSON.stringify({token:e}),headers:{"Content-Type":"application/json"},method:"POST"})},t.deleteConnection=function(){return(0,o.fetch)("/o/analytics-settings-rest/v1.0/data-source",{method:"DELETE"})},t.fetchProperties=function(){return(0,o.fetch)("/o/analytics-settings-rest/v1.0/channel",{method:"GET"}).then((e=>e.json())).then((e=>e))},t.fetchConnectionModal=function(e){return new Promise((t=>{setTimeout((()=>{t({connected:!0,propertyName:e})}),2e3)}))};var o=n("frontend-js-web")}));
//# sourceMappingURL=api.js.map