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