diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 8969c93eb..399953905 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -12791,27 +12791,6 @@ - - allow_text_message - false - - - - - - en-US - false - - - es-MX - false - - - fr-CA - false - - - checklist false @@ -42614,27 +42593,6 @@ - - allow_text_message - false - - - - - - en-US - false - - - es-MX - false - - - fr-CA - false - - - name false diff --git a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx index 18f5d025e..eca3147dc 100644 --- a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx +++ b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx @@ -129,24 +129,6 @@ export function JobChecklistForm({ insertAuditTrail, formItems, bodyshop, curren } } - if (type === "intake" && job.owner && job.owner.id) { - //Updae Owner Allow to Text - const updateOwnerResult = await updateOwner({ - variables: { - ownerId: job.owner.id, - owner: { allow_text_message: values.allow_text_message } - } - }); - - if (!!updateOwnerResult.errors) { - notification["error"]({ - message: t("checklist.errors.complete", { - error: JSON.stringify(result.errors) - }) - }); - } - } - setLoading(false); if (!!!result.errors) { @@ -189,7 +171,6 @@ export function JobChecklistForm({ insertAuditTrail, formItems, bodyshop, curren initialValues={{ ...(type === "intake" && { addToProduction: true, - allow_text_message: job.owner && job.owner.allow_text_message, scheduled_completion: (job && job.scheduled_completion && dayjs(job.scheduled_completion)) || (job && @@ -228,14 +209,6 @@ export function JobChecklistForm({ insertAuditTrail, formItems, bodyshop, curren > - - - - - - ); diff --git a/client/src/components/owner-detail-form/owner-detail-form.component.jsx b/client/src/components/owner-detail-form/owner-detail-form.component.jsx index 5de4231f7..a71cbc836 100644 --- a/client/src/components/owner-detail-form/owner-detail-form.component.jsx +++ b/client/src/components/owner-detail-form/owner-detail-form.component.jsx @@ -1,4 +1,4 @@ -import { Form, Input, Switch } from "antd"; +import { Form, Input } from "antd"; import React from "react"; import { useTranslation } from "react-i18next"; import FormFieldsChanged from "../form-fields-changed-alert/form-fields-changed-alert.component"; @@ -26,7 +26,7 @@ export default function OwnerDetailFormComponent({ form, loading }) { - + @@ -50,9 +50,6 @@ export default function OwnerDetailFormComponent({ form, loading }) { - - - - - allow_text_message - - - - - en-US - false - - - es-ES - false - - - fr-CA - false - - - checklist @@ -33000,25 +32981,6 @@ - - allow_text_message - - - - - en-US - false - - - es-ES - false - - - fr-CA - false - - - name diff --git a/server/sms/receive.js b/server/sms/receive.js index 864531f36..2106b206b 100644 --- a/server/sms/receive.js +++ b/server/sms/receive.js @@ -12,8 +12,7 @@ const { phone } = require("phone"); const { admin } = require("../firebase/firebase-handler"); const InstanceManager = require("../utils/instanceMgr").default; -/ TWILLIO KEYWORDS; -// Note: When we handle different languages, we might need to adjust these keywords accordingly. +9; // Note: When we handle different languages, we might need to adjust these keywords accordingly. const optInKeywords = ["START", "YES", "UNSTOP"]; const optOutKeywords = ["STOP", "STOPALL", "UNSUBSCRIBE", "CANCEL", "END", "QUIT", "REVOKE", "OPTOUT"];