async function loadBradesco(tipo){ const cont=document.getElementById(tipo+'-content'); const cnt=document.getElementById(tipo+'-cnt'); const sbcnt=document.getElementById('sb-cnt-'+tipo); try{ const r=await fetch('/api/bradesco_'+tipo+'?order=created_at.desc&limit=500'); const data=await r.json(); if(cnt)cnt.textContent=data.length+' leads'; if(sbcnt)sbcnt.textContent=data.length; if(!data.length){cont.innerHTML='
πŸ“’ Nenhum lead ainda.
Use o botΓ£o "Novo Lead" ou extraΓ­a dados do portal Bradesco.
';return;} let h='
'; data.forEach(lead=>{ const ramoKey=(lead.ramo||'OUTROS').toUpperCase().replace(/[^A-Z]/g,''); const ramoLabel=lead.ramo||'OUTROS'; const produto=lead.produto?'
'+esc(lead.produto)+'
':''; const doc=lead.cpf?'
CPF: '+esc(lead.cpf)+'
':lead.cnpj?'
CNPJ: '+esc(lead.cnpj)+'
':''; const fone=lead.wpp||lead.telefone||lead.tel1||''; const foneNum=fone.replace(/\D/g,''); const fonesH=fone?'':'β€”'; h+=``; }); h+='
Nome / DocCidadeRamo / ProdutoContatoE-mailEstΓ‘gioAΓ§Γ΅es
${esc(lead.nome||'β€”')}${doc} ${esc(lead.cidade||'β€”')} ${esc(ramoLabel)}${produto} ${fonesH} ${lead.email?''+esc(lead.email)+'':'β€”'} ${esc(lead.estagio||'novo')}
'; cont.innerHTML=h; }catch(e){cont.innerHTML='
⚠️ Erro ao carregar: '+e.message+'
';} } MaxCorretora β€” Leads

MaxCorretora

Plataforma de Leads β€” Bradesco Seguros
🏦
Bradesco Rede
AgΓͺncia 3036 e futuras
0 leads
⏳ Carregando...
πŸ“Š
Bradesco Mercado
VisΓ£o geral do mercado
0 leads
⏳ Carregando...
β€”

Leads β€” Comercial V2

β€” Meta hoje
0 selecionados

β€”

β€”
πŸ“‹ Dados
🏷️ Tags
πŸ“ AnotaΓ§Γ΅es
πŸ“ž HistΓ³rico de Contato
πŸ“© Templates
🎯 EstÑgio