feature/Reynolds-and-Reynolds-DMS-API-Integration - Add dealer id / merge fortellis
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export const determineDmsType = (bodyshop) => {
|
||||
const dmsMapping = {
|
||||
cdk_dealerid: "cdk",
|
||||
pbs_serialnumber: "pbs",
|
||||
rr_dealerid: "rr"
|
||||
};
|
||||
|
||||
return Object.keys(dmsMapping).find((key) => bodyshop[key])
|
||||
? dmsMapping[Object.keys(dmsMapping).find((key) => bodyshop[key])]
|
||||
: "pbs";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user