feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Checkpoint - Remove old attempt at Reynolds Integration in favor of new library.

This commit is contained in:
Dave
2025-10-29 10:42:32 -04:00
parent 319f3220ed
commit e06f0f9918
36 changed files with 2468 additions and 3736 deletions

11
server/rr/withClient.js Normal file
View File

@@ -0,0 +1,11 @@
const { getRRConfigForBodyshop } = require("./rr-config");
const { makeRRClient } = require("./rr-client");
const logger = require("../utils/logger");
async function withClient(bodyshopId, fn) {
const routing = await getRRConfigForBodyshop(bodyshopId);
const client = makeRRClient({ logger });
return fn(client, routing);
}
module.exports = { withClient };