ajustes slm

pull/20/head
adriano 2023-07-26 09:59:24 -03:00
parent e88fd8da98
commit a7d4f99e69
1 changed files with 7 additions and 9 deletions

View File

@ -39,12 +39,12 @@ export const hit = async (req: Request, res: Response): Promise<Response> => {
// cod_web, // cod_web,
// } = req.body as IndexQuery; // } = req.body as IndexQuery;
console.log("req.boy: ", req.body); console.log("==============> req.body: ", req.body);
console.log("req.body['cod_web']: ", req.body["cod_web"]); // console.log("req.body['cod_web']: ", req.body["cod_web"]);
console.log("req.body['action']: ", req.body["action"]); // console.log("req.body['action']: ", req.body["action"]);
console.log("req.body['phone']: ", req.body["phone"]); // console.log("req.body['phone']: ", req.body["phone"]);
console.log("req.body['name']: ", req.body["name"]); // console.log("req.body['name']: ", req.body["name"]);
console.log("req.body['mensagem']: ", req.body["mensagem"]); // console.log("req.body['mensagem']: ", req.body["mensagem"]);
if (req.headers["auth"] === "0424bd59b807674191e7d77572075f33") { if (req.headers["auth"] === "0424bd59b807674191e7d77572075f33") {
let phone = req.body["phone"]; let phone = req.body["phone"];
@ -94,9 +94,7 @@ export const hit = async (req: Request, res: Response): Promise<Response> => {
let response: any = ""; let response: any = "";
if ( if (["atdabriu", "atdatualizou"].includes(req.body["action"])) {
["atdabriu", "atdatualizou", "atdreabriu"].includes(req.body["action"])
) {
response = await hitPortalMonitoring({ response = await hitPortalMonitoring({
"params[n_chamado_web]": req.body["n_chamado_web"], "params[n_chamado_web]": req.body["n_chamado_web"],
method: "omnihit.consultachamado" method: "omnihit.consultachamado"