import { pool } from "./utils/db";
import { scrapeExtremeLegacyOem }   from "./scrapers/extreme-legacy-oem";
import { scrapeNortelLegacyOem }    from "./scrapers/nortel-legacy-oem";
import { scrape3comLegacyOem }      from "./scrapers/3com-legacy-oem";
import { scrapeAvayaLegacyOem }     from "./scrapers/avaya-legacy-oem";

async function main() {
  await scrapeExtremeLegacyOem();
  await scrapeNortelLegacyOem();
  await scrape3comLegacyOem();
  await scrapeAvayaLegacyOem();
}

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