Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // O nome da função pode ser escolhido arbitrariamente
  2. //
  3. // config: objeto contendo configuração estática relacionada ao fluxo;
  4. //
  5. // callback: função que recebe como argumento um bloco a ser adicionado
  6. // ao chat e termina o estado de loading.
  7.  
  8. function nldAPI_JornalDoCarro_LeadComplete(config, callback) {
  9. // Extrai os dados usando o objeto global "neurolead"
  10. var leadData = neurolead.getData();
  11. var leadId = neurolead.guid;
  12.  
  13. // Tenta sincronizar os dados, possivelmente várias vezes
  14. // ...
  15.  
  16. // Quando conseguir:
  17. callback(config.message);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement