Commit 1643e7a5 by softwhiskey8

подготовка к отправке данных шаблону (почта)

1 parent d3368359
Showing with 13 additions and 7 deletions
...@@ -20,6 +20,9 @@ context { ...@@ -20,6 +20,9 @@ context {
output conversation_end: number = 0; output conversation_end: number = 0;
output channel_type: string = ""; output channel_type: string = "";
output mail: string = ""; output mail: string = "";
output promocode: string = "PROMO-CODE";
output mail_start: number = 0;
output mail_end: number = 0;
} }
external function numbers_from_text(text: string): string; external function numbers_from_text(text: string): string;
...@@ -205,15 +208,18 @@ node mail ...@@ -205,15 +208,18 @@ node mail
} }
onexit onexit
{ {
negative: do
{
set $mail_start = external time_stamp();
set $mail = #getMessageText();
set $mail_end = external time_stamp();
//var mail = "temp@mail.ru";
//set $channel_type = "почту";
//external sendTelegramChannel($phone, $channel_type, $mail);
}
positive: do positive: do
{ {
//здесь будет определение мыла через mail recognizer //отправка сразу без getmessagetext
//var mail = external getMailByVoice();
//а здесь отправка
//external sendMail($mail, $promocode);
var mail = "temp@mail.ru";
set $channel_type = "почту";
external sendTelegramChannel($phone, $channel_type, mail);
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!