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