export const __webpack_esm_id__=15321;export const __webpack_esm_ids__=[15321];export const __webpack_esm_modules__={15321(t,e,r){r(22742);var o=r(57154);angular.module("graphdb.framework.stats",["toastr"]).controller("AdminInfoCtrl",["$scope","$http","toastr","$timeout","$jwtAuth","$translate",function(t,e,r,n,s,c){const a=(0,o.service)(o.AuthenticationService),i=(0,o.service)(o.AuthenticationStorageService);e.get("rest/info/data").success(function(e){t.info=e}).error(function(t){const e=getError(t);r.error(e,c.instant("common.error"))}),t.getReportStatus=function(){e.get("rest/report/status").success(function(e){const r=e.split("|",3);t.status=r[0],t.timestamp=r[1],t.errorMessage=r[2],"IN_PROGRESS"===t.status&&n(t.getReportStatus,3e3)}).error(function(t){const e=getError(t);r.error(e,c.instant("common.error"))})},t.getReportStatus(),t.getReport=function(){let t="rest/report";a.isAuthenticated()&&(t=t+"?authToken="+encodeURIComponent(i.getAuthToken().getValue())),window.open(t)},t.makeReport=function(){e.post("rest/report").success(function(){t.status="IN_PROGRESS",n(t.getReportStatus,2e3)}).error(function(t){const e=getError(t);r.error(e,c.instant("common.error"))})}}])}};
//# sourceMappingURL=15321.f8ce9f15706b75f93dea.bundle.js.map