const URL = "/one-api/mockup/refout/refout/"; export async function search(search, company_id, is_internal, page) { try { var resp = await axios.post(URL + 'refout/search', { search: search, company_id: company_id, is_internal: is_internal, page: page }); 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 send(token, ids) { try { var resp = await axios.post(URL + 'refout/send', { token: token, ids: ids }); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } }