Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Alexander
/
alex-hunter-sales-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1643e7a5
authored
Nov 09, 2022
by
softwhiskey8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
подготовка к отправке данных шаблону (почта)
1 parent
d3368359
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
app/main.dsl
app/main.dsl
View file @
1643e7a
...
@@ -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);
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment