import ApiService from './ApiService';

export async function apiGetAccountSettingData() {
  return ApiService.fetchData({
    url: '/gateway/Registration/GetUserProfile',
    method: 'get',
  });
}
export async function apiChangePassword(data) {
  return ApiService.fetchData({
    url: '/gateway/Users/ChangePassword',
    method: 'put',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
}

export async function apiGetAccountSettingIntegrationData() {
  return ApiService.fetchData({
    url: '/account/setting/integration',
    method: 'get',
  });
}

export async function apiGetAccountSettingBillingData() {
  return ApiService.fetchData({
    url: '/account/setting/billing',
    method: 'get',
  });
}

export async function apiGetAccountInvoiceData(params) {
  return ApiService.fetchData({
    url: '/account/invoice',
    method: 'get',
    params,
  });
}

export async function apiGetAccountLogData(data) {
  return ApiService.fetchData({
    url: '/account/log',
    method: 'post',
    data,
  });
}

export async function apiGetAccountFormData() {
  return ApiService.fetchData({
    url: '/account/form',
    method: 'get',
  });
}
