← back to Dw Signup Fulfillment
lib/reps.js
21 lines
'use strict';
// Designer / trade signups are ALL assigned to a single DW House Account.
// (Steve directive 2026-07-28 — NOT round-robin across outside reps.)
//
// The house-account identity is env-configurable so the notify destination can
// be pointed wherever DW wants; it defaults to the office inbox George reads.
// data/reps.json (the outside-rep roster) is retained in the repo for reference
// but is intentionally NOT used for assignment.
const HOUSE_ACCOUNT = {
id: 'dw-house',
name: process.env.HOUSE_ACCOUNT_NAME || 'DW House Account',
email: (process.env.HOUSE_ACCOUNT_EMAIL || 'info@designerwallcoverings.com').trim().toLowerCase(),
};
function houseAccount() { return { ...HOUSE_ACCOUNT }; }
// Canonical assignment for a new trade customer: always the DW House Account.
function assignRep() { return houseAccount(); }
module.exports = { houseAccount, assignRep, HOUSE_ACCOUNT };