const URL = "/one-api/cpone/mcuoffline/"; // cpone start export async function xdeletev0(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/deletev0',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getGroupPemeriksaan(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/getGroupPemeriksaan',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getPacketById(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/getPaketById',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function savesetupv0(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/savesetupv0',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getTTestByTPriceHeaderCurrent(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/getTTestByTPriceHeaderCurrent',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getTPriceHeaderCurrent(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/getTPriceHeaderCurrent',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getTPriceHeader(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/getTPriceHeader',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function searchv0(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev2/searchv0',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } }