let xmlLote = await this.json2xml(jsonXmlLote);
const body = Buffer.from(xmlLote, "utf8");
try {
let tempUF = urlEventos(__classPrivateFieldGet(this, _Tools_config, "f").UF, __classPrivateFieldGet(this, _Tools_config, "f").versao);
const req = https.request(
tempUF[`mod${__classPrivateFieldGet(this, _Tools_config, "f").mod}`][
__classPrivateFieldGet(this, _Tools_config, "f").tpAmb == 1 ? "producao" : "homologacao"
].NFeAutorizacao,
{
...{
method: "POST",
headers: {
"Content-Type": "application/soap+xml; charset=utf-8",
// 'Content-Length': xmlLote.length,
// eu ///////////////////////////////////////////////
"Content-Length": body.length,
},
rejectUnauthorized: false,
},