1import { a as axiosInstance } from "./Interceptor-B5ufdAhf.js"; 2var define_process_env_default = {}; 3const BASE_API_URL = define_process_env_default.API_URL; 4const BASE_API_WEB_URL = `${BASE_API_URL ?? "/"}web-api`; 5const BASE_API_ADMIN_URL = `${BASE_API_URL ?? "/"}admin`; 6const fetchStatues = (params) => { 7 return axiosInstance({ 8 method: "GET", 9 url: `${BASE_API_WEB_URL}/customer-statuses`, 10 params 11 }); 12}; 13const fetchOwners = (params) => { 14 return axiosInstance({ 15 method: "GET", 16 url: `${BASE_API_WEB_URL}/contact-transfer/users`, 17 params 18 }); 19}; 20const updateOwnerOfContact = ({ 21 customerId, 22 ownerId 23}) => { 24 return axiosInstance({ 25 method: "PUT", 26 url: `${BASE_API_WEB_URL}/customers/${customerId}/change-owner`, 27 data: { 28 ownerId 29 } 30 }); 31}; 32const changeContactType = (payload) => { 33 return axiosInstance({ 34 method: "PUT", 35 url: `${BASE_API_ADMIN_URL}/customers/${payload.customerId}/change-type`, 36 data: payload 37 }); 38}; 39const updateContacts = (payload) => { 40 return axiosInstance({ 41 method: "PUT", 42 url: `${BASE_API_ADMIN_URL}/customers/${payload.customerId}/change-status`, 43 data: payload 44 }); 45}; 46const getAuthToken = async () => { 47 return axiosInstance({ 48 method: "GET", 49 url: `${BASE_API_ADMIN_URL}/auth/jwt-token` 50 }); 51}; 52export { 53 updateOwnerOfContact as a, 54 fetchOwners as b, 55 changeContactType as c, 56 fetchStatues as f, 57 getAuthToken as g, 58 updateContacts as u 59};
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.