const URL = "/one-api/cpone/mcuoffline/"; // cpone start export async function copypacket(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev3/copypacket',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 xdeletev0(prm) { try { var resp = await axios.post(URL + 'packet/packetcponev3/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/packetcponev3/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/packetcponev3/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/packetcponev3/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/packetcponev3/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/packetcponev3/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/packetcponev3/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/packetcponev3/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 }; } }