import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";import{Cr as n,fr as r,hr as i,r as a}from"./axios-BDcMaxoP.js";import{i as o}from"./ctiAxios-ByP7DQwN.js";import{t as s}from"./queryOptions-Cg9orY1Y.js";e();var c=t(),l=[{title:`Nom`,width:200,dataKey:`name`,frozen:`left`,key:`name`,resizable:!0},{title:`Titre`,width:150,dataKey:`title`,key:`title`,resizable:!0},{title:`Démarré`,width:120,dataKey:`start`,key:`start`,resizable:!0},{title:`Terminé`,width:120,dataKey:`end`,key:`end`,resizable:!0},{title:`Statut`,width:200,dataKey:`endStatus`,key:`endStatus`,resizable:!0},{title:`Durée`,width:200,dataKey:`duration`,key:`duration`,resizable:!0},{title:`Logs`,fixed:`right`,width:200,key:`operation`,resizable:!0,dataGetter:({rowData:e})=>(0,c.jsx)(`a`,{href:window.location.origin+r()+`modules/outils/php/getLogFile.php?longfile=`+encodeURI(e.logFile),target:`_blank`,rel:`noopener noreferrer`,children:`Afficher`})}];function u(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],r=i(t,`JOB`),a=i(t,`EXE`),o=i(t,`LASTJOBS`);return{jobs:n(r),execs:n(a),lastJobs:n(o)}}var d=async(e,t)=>{await o(`modules/ssae/php/execSynchronize.php`,{exe_path:e,saeYear:t})},f=async e=>u(await o(`modules/ssae/php/getSynchronize.php`,{saeYear:e})),p=async e=>u(await o(`modules/outils/php/httpService_synchronizeManager_get.php`,{exe:e})),m={all:[`synchronize`],ssaeJobs:e=>[...m.all,`ssae`,e],specJobs:e=>[...m.all,`spec`,e]},h=e=>s({queryKey:m.ssaeJobs(e),queryFn:()=>f(e)}),g=e=>s({queryKey:m.specJobs(e),queryFn:()=>p(e)}),_=e=>a(h(e)),v=e=>a(g(e));export{l as a,d as i,_ as n,m as r,v as t};
|