Add ES Auth Header & staging URLs.

This commit is contained in:
Patrick Fic
2025-09-16 13:52:25 -07:00
parent 8ef36504c5
commit 8c08922e22
6 changed files with 84 additions and 4 deletions

View File

@@ -36,11 +36,12 @@ async function ScrubEstimate({ job }) {
//No secret or private information is exposed.
const basicAuthUser = "Imex2";
const basicAuthpassword = "Patrick";
const currentChannel = autoUpdater.channel
const estimateScrubberUrl = process.env.NODE_ENV !== undefined || currentChannel === 'alpha' ? 'https://4284-79073.el-alt.com/api/sendems' : "https://insurtechtoolkit.com/api/sendems";
console.log("*** ~ ScrubEstimate ~ process.env.NODE_ENV:", process.env.NODE_ENV);
const currentChannel = autoUpdater.channel
const estimateScrubberUrl = process.env.NODE_ENV === undefined || currentChannel === 'alpha' ? 'https://4284-79073.el-alt.com/api/sendems' : "https://insurtechtoolkit.com/api/sendems";
log.debug(`Estimate Scrubber URL: [${currentChannel} |`, estimateScrubberUrl);
const sendingEntityId = "87330f61-412b-4251-baaa-d026565b23c5";
try { const esApiKey = job?.bodyshop?.es_api_key
try {
const esApiKey = job?.bodyshop?.es_api_key
//Perform data manipulation on the job object
if (!job) {
console.error("No job provided to ScrubEstimate");