import { pool } from "./utils/db";
import { scrapeSierraWirelessOem } from "./scrapers/sierra-wireless-oem";
import { scrapeSenaoOem }          from "./scrapers/senao-oem";
import { scrapeEmcoreOem }         from "./scrapers/emcore-oem";
import { scrapeReflexPhotonicsOem }from "./scrapers/reflex-photonics-oem";

async function main() {
  await scrapeSierraWirelessOem();
  await scrapeSenaoOem();
  await scrapeEmcoreOem();
  await scrapeReflexPhotonicsOem();
}

main()
  .then(() => pool.end())
  .catch((err) => { console.error("Fatal:", err); pool.end(); process.exit(1); });
