GARANTIA
Caro cliente, seja bem-vindo à nossa área de solicitação de serviços via Garantia Total SC Medical.
Para realizar a solicitação do serviço para qualquer produto que você tenha adquirido conosco, dentro do prazo estabelecido, basta preencher os dados no formulário a seguir.
INFORMAÇÕES
[contact-form-7 id=”2667″ title=”Garantia”]
var wpcf7Elm = document.querySelector('.wpcf7');
wpcf7Elm.addEventListener('wpcf7submit', enviarDados);
function enviarDados() {
let endpointHash = "https://app.pipe.run/webservice/integradorJson?hash=54b49707-ff41-4f7a-9265-12d0a7f03f7f";
let product = document.getElementById("idProduto").value;
let serie = document.getElementById("idSerie").value;
let name = document.getElementById("idName").value;
let company = document.getElementById("idCompany").value;
let document = document.getElementById("idCpfcnpj").value;
let phone = document.getElementById("idTel").value;
let email = document.getElementById("idEmail").value;
let address = document.getElementById("idEmail").value;
let cep = document.getElementById("idEndereco").value;
let city = document.getElementById("idCep").value;
let state = document.getElementById("idCidade").value;
function configPost(method,body) {
return {
"method": method,
"headers": { "Content-Type": "application/json"},
"body": JSON.stringify(body)
};
}
let rules = {
"update": true,
"status": "open",
"equal_pipeline": true,
"filter_status_update": "open"
};
let lead = [{
"id": email,
"title": assunto,
"company": company,
"person": name,
"email": email,
"notes": [
"Mensagem: " + mensagem
]
}];
let dataToSend = {
"rules": rules,
"leads": lead
};
fetch(endpointHash, configPost("POST", dataToSend))
.then(response => response.json())
.then(data => {
console.log(data);
});
}