1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`[email protected]+8b79e4c`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a2349d79-45cd-41c5-992e-1dcc4da28fed`,e._sentryDebugIdIdentifier=`sentry-dbid-a2349d79-45cd-41c5-992e-1dcc4da28fed`)}catch{}})();import{r as e}from"./chunk-CdQOh_pC.js";import{xn as t}from"./environment-CvYCMuy-.js";import{r as n,t as r}from"./interceptor-CVn3WnTQ.js";var i=e=>btoa(encodeURIComponent(JSON.stringify(e))),a=e({tasksAPI:()=>l}),o=t().tasksapi,s=n.create({baseURL:o});s.interceptors.request.use(r);var c=6e3,l={getTasks:async e=>{let t=i(e);return(t.length<=c?await s.get(`search`,{params:{request:t}}):await s.post(`search`,e)).data.result},getTaskById:async({taskId:e})=>s.get(`search`,{params:{request:i({taskId:e})}}).then(e=>e.data.result),exportTasks:async e=>s.post(`search`,{...e,exportToS3:!0}).then(e=>e.data.result?.presignedUrl??null),exportTaskSchedules:async e=>s.post(`schedule/search`,{...e,exportToS3:!0}).then(e=>e.data.result?.presignedUrl??null),completeTask:async e=>s.post(`${e?.id}/complete`,e).then(e=>e.data.result),updateTask:async e=>s.put(`/${e?.id}`,e).then(e=>e.data.result),deleteTask:async({id:e})=>s.delete(`/${e}`).then(e=>e.data.result),getSchedules:async e=>{let t=i(e);return(t.length<=c?await s.get(`schedule/search`,{params:{request:t}}):await s.post(`schedule/search`,e)).data.result},getTaskSchedule:async({id:e})=>s.get(`/schedule/${e}`).then(async t=>{let n=t.data.result,r=await s.get(`/schedule/${e}/devices`);return{...n,devices:r.data.result?.devices||[],deviceDetails:r.data.result?.deviceDetails||[]}}),createTaskSchedule:async e=>s.post(`/schedule`,{devices:e?.devices,taskSchedule:e?.taskSchedule}).then(e=>e.data.result),deleteSchedule:async e=>s.delete(`schedule/${e?.id}`,{data:{deleteActiveTasks:e?.deleteTasks||!1}}).then(e=>e.data.result),updateSchedule:async e=>s.put(`/schedule/${e?.taskSchedule?.id}`,{taskSchedule:e.taskSchedule,syncActiveTasks:!0}).then(async t=>(await s.post(`/schedule/${e?.taskSchedule?.id}/devices`,{devices:e?.devices}),t.data.result))};export{a as n,l as t}; 2//# sourceMappingURL=tasks-CVvs--Ne.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.