import { readFileSync } from "fs";

interface IConfig {
  base_url: string;
  schedule: string[];
  delay: number;
  row_per_batch: number;
  // kode, date, target
  // kode:string,
  // date:string,
  // target:string
}
const j_config = JSON.parse(readFileSync("./config-etl-tat.json").toString());

const config: IConfig = {
  base_url: j_config["base_url"],
  schedule: j_config["schedule"],
  delay: j_config["delay"],
  row_per_batch: j_config["row_per_batch"],
  // kode, date, target
  // kode: j_config["kode"],
  // date: j_config["date"],
  // target: j_config["target"]
};
export default config;
