import env from './index'
const leave = `${env.API_URI}/leave`
const urlFile = `${env.API_URI}/salary`
const orgKeycloak = `${env.API_URI}/org/keycloak`

export default {
  checkin: () => `${leave}/check-in`,
  checkTime: () => `${leave}/check-time`,
  checkStatus: () => `${leave}/check-status`,

  keycloakLogSSO: `${env.API_URI}/org/keycloak/log/sso`,
  keycloakPosition: () => `${env.API_URI}/org/profile/keycloak/position`,
  fileByFile: (name: string, group: string, id: string, fileName: string) =>
    `${urlFile}/file/${name}/${group}/${id}/${fileName}`,

  changePassword:`${orgKeycloak}/user/change-password`,
  resetPassword:`${orgKeycloak}/user/reset-password`,

  checkoutCheck:`${leave}/user/checkout-check`
}
