@tiledesk/tiledesk-server 2.4.7 → 2.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/.circleci/config.yml +1 -1
  2. package/app.js +11 -0
  3. package/config/email.js +1 -1
  4. package/event/botEvent.js +12 -2
  5. package/middleware/has-role.js +6 -0
  6. package/middleware/passport.js +1 -0
  7. package/models/auth.js +9 -1
  8. package/models/faq_kb.js +4 -0
  9. package/models/lead.js +5 -0
  10. package/models/user.js +3 -0
  11. package/package.json +3 -3
  12. package/public/wstest/index.html +5 -41
  13. package/pubmodules/apps/listener.js +3 -3
  14. package/pubmodules/queue/reconnect.js +24 -0
  15. package/pubmodules/queue/reconnectFanout.js +17 -0
  16. package/routes/auth.js +44 -3
  17. package/routes/faq_kb.js +42 -0
  18. package/routes/images.js +3 -1
  19. package/routes/lead.js +51 -0
  20. package/routes/project.js +12 -0
  21. package/routes/users.js +2 -0
  22. package/services/emailService.js +2 -2
  23. package/services/trainingService.js +7 -2
  24. package/template/email/assignedEmailMessage.html +253 -149
  25. package/template/email/assignedRequest.html +273 -173
  26. package/template/email/beenInvitedExistingUser.html +213 -130
  27. package/template/email/beenInvitedNewUser.html +200 -119
  28. package/template/email/emailDirect.html +207 -114
  29. package/template/email/newMessage.html +250 -157
  30. package/template/email/newMessageFollower.html +351 -225
  31. package/template/email/passwordChanged.html +178 -96
  32. package/template/email/pooledEmailMessage.html +250 -151
  33. package/template/email/pooledRequest.html +270 -164
  34. package/template/email/resetPassword.html +201 -115
  35. package/template/email/sendTranscript.html +299 -197
  36. package/template/email/ticket.html +263 -160
  37. package/template/email/verify.html +208 -126
  38. package/websocket/webSocketServer.js +70 -3
package/routes/users.js CHANGED
@@ -20,6 +20,7 @@ router.put('/', function (req, res) {
20
20
  update.firstname = req.body.firstname;
21
21
  update.lastname = req.body.lastname;
22
22
  update.attributes = req.body.attributes;
23
+ update.description = req.body.description;
23
24
 
24
25
 
25
26
 
@@ -75,6 +76,7 @@ router.delete('/physical', function (req, res) {
75
76
  // cancello virtualmente progetti owner
76
77
  winston.debug('delete USER - REQ BODY ', req.body);
77
78
 
79
+ // TODO use findByIdAndRemove otherwise user don't contains label object
78
80
  User.remove({ _id: req.user.id }, function (err, user) {
79
81
  if (err) {
80
82
  winston.error(err);
@@ -1857,7 +1857,7 @@ parseText(text, payload) {
1857
1857
  var baseScope = JSON.parse(JSON.stringify(this));
1858
1858
  delete baseScope.pass;
1859
1859
 
1860
- winston.info("parseText text: "+ text);
1860
+ winston.debug("parseText text: "+ text);
1861
1861
 
1862
1862
  var templateHand = handlebars.compile(text);
1863
1863
 
@@ -1868,7 +1868,7 @@ parseText(text, payload) {
1868
1868
  };
1869
1869
 
1870
1870
  var textTemplate = templateHand(replacements);
1871
- winston.info("parseText textTemplate: "+ textTemplate);
1871
+ winston.debug("parseText textTemplate: "+ textTemplate);
1872
1872
 
1873
1873
  return textTemplate;
1874
1874
 
@@ -3,6 +3,7 @@ const Faq_kb = require('../models/faq_kb');
3
3
  const Faq = require('../models/faq');
4
4
  var winston = require('../config/winston');
5
5
  const axios = require("axios").default;
6
+ var configGlobal = require('../config/global');
6
7
 
7
8
 
8
9
  let chatbot_training_api_url = "http://34.65.210.38/model/train"
@@ -35,14 +36,18 @@ class TrainingService {
35
36
  if (err) {
36
37
  winston.error("[Training] find all error: ", err);
37
38
  } else {
38
-
39
+
39
40
  let json = {
40
41
  "configuration": {
41
42
  "language": faq_kb.language,
42
43
  "pipeline":["lstm"]
43
44
  },
44
45
  "model": faq_kb._id,
45
- "nlu": []
46
+ "nlu": [],
47
+
48
+ // curl -v -X PUT -H 'Content-Type:application/json' -u admin@tiledesk.com:adminadmin -d '{"trained":false}' http://localhost:3000/63ed15febb8a5eb3b247fdfd/bots/64551b3422cdfb93ddb1b784
49
+ "webhook_url": process.env.API_URL || configGlobal.apiUrl + "/" + faq_kb.id_project + "/bots/" + faq_kb._id+"/training",
50
+ "token" : process.env.TRAINING_BOT_JWT_TOKEN
46
51
  }
47
52
 
48
53
  faqs.forEach((f) => {
@@ -1,215 +1,319 @@
1
1
 
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
3
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml"
4
+ style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
4
5
 
5
6
  <head>
6
- <meta name="viewport" content="width=device-width" />
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <title>New message ticket from TileDesk</title>
7
+ <meta name="viewport" content="width=device-width" />
8
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9
+ <title>New message ticket from Tiledesk</title>
9
10
 
10
- <style type="text/css">
11
+ <style type="text/css">
11
12
  img {
12
- max-width: 100%;
13
- margin-left:16px;
14
- text-align:center !important;
13
+ max-width: 100%;
14
+ margin-left: 16px;
15
+ text-align: center !important;
15
16
  }
17
+
16
18
  img.CToWUd {
17
- margin-bottom: 16px;
18
- max-width: 200px !important;
19
- width: 200px !important;
20
- min-width: 200px !important;
21
- outline: none;
22
- text-decoration: none;
23
- border: none;
24
- height: auto;
25
- margin-left: 0px;
19
+ margin-bottom: 16px;
20
+ max-width: 200px !important;
21
+ width: 200px !important;
22
+ min-width: 200px !important;
23
+ outline: none;
24
+ text-decoration: none;
25
+ border: none;
26
+ height: auto;
27
+ margin-left: 0px;
26
28
  }
29
+
27
30
  body {
28
- -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em;
31
+ -webkit-font-smoothing: antialiased;
32
+ -webkit-text-size-adjust: none;
33
+ width: 100% !important;
34
+ height: 100%;
35
+ line-height: 1.6em;
29
36
  }
37
+
30
38
  body {
31
- background-color: #f6f6f6;
39
+ background-color: #f6f6f6;
32
40
  }
33
41
 
34
42
  @media only screen and (max-width: 640px) {
35
- body {
43
+ body {
36
44
  padding: 0 !important;
37
- }
38
- h1 {
39
- font-weight: 800 !important; margin: 20px 0 5px !important;
40
- text-align:center !important;
41
- }
42
- h2 {
43
- font-weight: 800 !important; margin: 20px 0 5px !important;
44
- }
45
- h3 {
46
- font-weight: 800 !important; margin: 20px 0 5px !important;
47
- }
48
- h4 {
49
- font-weight: 800 !important; margin: 20px 0 5px !important;
50
- }
51
- h1 {
45
+ }
46
+
47
+ h1 {
48
+ font-weight: 800 !important;
49
+ margin: 20px 0 5px !important;
50
+ text-align: center !important;
51
+ }
52
+
53
+ h2 {
54
+ font-weight: 800 !important;
55
+ margin: 20px 0 5px !important;
56
+ }
57
+
58
+ h3 {
59
+ font-weight: 800 !important;
60
+ margin: 20px 0 5px !important;
61
+ }
62
+
63
+ h4 {
64
+ font-weight: 800 !important;
65
+ margin: 20px 0 5px !important;
66
+ }
67
+
68
+ h1 {
52
69
  font-size: 22px !important;
53
- }
54
- h2 {
70
+ }
71
+
72
+ h2 {
55
73
  font-size: 18px !important;
56
- }
57
- h3 {
74
+ }
75
+
76
+ h3 {
58
77
  font-size: 16px !important;
59
- }
60
- .container {
61
- padding: 0 !important; width: 100% !important;
62
- }
63
- .content {
78
+ }
79
+
80
+ .container {
81
+ padding: 0 !important;
82
+ width: 100% !important;
83
+ }
84
+
85
+ .content {
64
86
  padding: 0 !important;
65
- }
66
- .content-wrap {
87
+ }
88
+
89
+ .content-wrap {
67
90
  padding: 10px !important;
68
- }
69
- .invoice {
91
+ }
92
+
93
+ .invoice {
70
94
  width: 100% !important;
71
- }
95
+ }
72
96
  }
73
- </style>
97
+ </style>
74
98
  </head>
75
99
 
76
- <body itemscope itemtype="http://schema.org/EmailMessage" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
100
+ <body itemscope itemtype="http://schema.org/EmailMessage"
101
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;"
102
+ bgcolor="#f6f6f6">
77
103
 
78
- {{#if baseScope.replyEnabled}}
79
- <div>\# Please type your reply above this line \#</div>
80
- {{/if}}
104
+ {{#if baseScope.replyEnabled}}
105
+ <div>\# Please type your reply above this line \#</div>
106
+ {{/if}}
81
107
 
82
- <!-- <table class="body-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
83
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
84
- <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
85
- <td class="container" width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top">
86
- <div class="content" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;"> -->
108
+ <table class="body-wrap"
109
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;"
110
+ bgcolor="#f6f6f6">
111
+ <tr
112
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
113
+ <td
114
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
115
+ valign="top"></td>
116
+ <td class="container" width="600"
117
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;"
118
+ valign="top">
119
+ <div class="content"
120
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
87
121
 
88
122
 
89
- <table class="main" width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff">
90
-
91
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
123
+ <table class="main" width="100%" cellpadding="0" cellspacing="0"
124
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;"
125
+ bgcolor="#fff">
92
126
 
93
- <div style="text-align:center">
94
- <a href="http://www.tiledesk.com" style="color:#2daae1;font-weight:bold;text-decoration:none;word-break:break-word" target="_blank">
95
- <img src="https://tiledesk.com/wp-content/uploads/2023/01/tiledesk_log_email_200.png" class="CToWUd">
96
- </a>
97
- </div>
98
- </tr>
127
+ <!--
128
+ <tr
129
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
99
130
 
100
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
131
+ <div style="text-align:center">
132
+ <a href="http://www.tiledesk.com"
133
+ style="color:#2daae1;font-weight:bold;text-decoration:none;word-break:break-word" target="_blank">
134
+ <img src="https://tiledesk.com/wp-content/uploads/2023/01/tiledesk_log_email_200.png" class="CToWUd">
135
+ </a>
136
+ </div>
137
+ </tr>
138
+ -->
139
+
140
+ <tr
141
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
101
142
 
102
- <td class="alert alert-warning" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; margin: 0;" align="center" valign="top">
143
+ <td class="alert alert-warning"
144
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; margin: 0;"
145
+ align="center" valign="top">
103
146
  <div>
104
- <h2>New Message from a ticket assigned to you</h2>
147
+ <h2>New Message from a ticket assigned to you</h2>
105
148
  </div>
106
149
 
107
- </td>
150
+ </td>
108
151
  </tr>
109
-
110
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
111
- <td class="content-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" valign="top">
112
- <table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
113
-
114
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
115
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
116
- {{#ifEquals message.type "text"}}
117
- <div style="white-space: pre-wrap;">{{{msgText}}}</div>
118
- {{/ifEquals}}
119
- {{#ifEquals message.type "image"}}
120
- <img src="{{message.metadata.src}}"/>
121
- {{/ifEquals}}
122
- {{#ifEquals message.type "file"}}
123
- <a href="{{message.metadata.src}}">{{message.metadata.name}}</a>
124
- {{/ifEquals}}
125
152
 
126
- </td>
127
- </tr>
153
+ <tr
154
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
155
+ <td class="content-wrap"
156
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;"
157
+ valign="top">
158
+ <table width="100%" cellpadding="0" cellspacing="0"
159
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
128
160
 
129
-
161
+ <tr
162
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
163
+ <td class="content-block"
164
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
165
+ valign="top">
166
+ {{#ifEquals message.type "text"}}
167
+ <div style="white-space: pre-wrap;">{{{msgText}}}</div>
168
+ {{/ifEquals}}
169
+ {{#ifEquals message.type "image"}}
170
+ <img src="{{message.metadata.src}}" />
171
+ {{/ifEquals}}
172
+ {{#ifEquals message.type "file"}}
173
+ <a href="{{message.metadata.src}}">{{message.metadata.name}}</a>
174
+ {{/ifEquals}}
130
175
 
176
+ </td>
177
+ </tr>
131
178
 
132
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
133
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
134
- Project name : <strong style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{project.name}}</strong>
135
- </td>
136
- </tr>
137
-
138
179
 
139
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
140
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
141
- Department name : <strong style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{request.department.name}}</strong>
142
- </td>
143
- </tr>
144
180
 
145
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
146
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
147
- From email : <strong style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{request.lead.email}}</strong>
148
- </td>
149
- </tr>
150
181
 
151
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
152
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
153
- Contact name : <strong style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{request.lead.fullname}}</strong>
154
- </td>
155
- </tr>
182
+ <tr
183
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
184
+ <td class="content-block"
185
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
186
+ valign="top">
187
+ Project name : <strong
188
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{project.name}}</strong>
189
+ </td>
190
+ </tr>
191
+
192
+
193
+ <tr
194
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
195
+ <td class="content-block"
196
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
197
+ valign="top">
198
+ Department name : <strong
199
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{request.department.name}}</strong>
200
+ </td>
201
+ </tr>
156
202
 
157
- <!-- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
203
+ <tr
204
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
205
+ <td class="content-block"
206
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
207
+ valign="top">
208
+ From email : <strong
209
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{request.lead.email}}</strong>
210
+ </td>
211
+ </tr>
212
+
213
+ <tr
214
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
215
+ <td class="content-block"
216
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
217
+ valign="top">
218
+ Contact name : <strong
219
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{request.lead.fullname}}</strong>
220
+ </td>
221
+ </tr>
222
+
223
+ <!-- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
158
224
  <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
159
225
  Assignee : <strong style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"></strong>
160
226
  </td>
161
227
  </tr> -->
162
228
 
163
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
164
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
165
- Channel : <strong style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
166
- {{#ifEquals request.channel.name "chat21"}}
229
+ <tr
230
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
231
+ <td class="content-block"
232
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
233
+ valign="top">
234
+ Channel : <strong
235
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
236
+ {{#ifEquals request.channel.name "chat21"}}
167
237
  Chat
168
- {{else}}
238
+ {{else}}
169
239
  {{request.channel.name}}
170
- {{/ifEquals}}
171
- </strong>
172
- </td>
173
- </tr>
240
+ {{/ifEquals}}
241
+ </strong>
242
+ </td>
243
+ </tr>
174
244
 
175
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
176
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
177
- <a href="{{baseScope.baseUrl}}/#/project/{{request.id_project}}/wsrequest/{{request.request_id}}/messages">Open the dashboard</a>.
178
-
179
- </td>
180
- </tr>
181
-
245
+ <tr
246
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
247
+ <td class="content-block"
248
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
249
+ valign="top">
250
+ <a
251
+ href="{{baseScope.baseUrl}}/#/project/{{request.id_project}}/wsrequest/{{request.request_id}}/messages">Open
252
+ the dashboard</a>.
253
+
254
+ </td>
255
+ </tr>
182
256
 
183
-
184
257
 
185
-
186
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
187
- <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top">
258
+
259
+
260
+
261
+ <tr
262
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
263
+ <td class="content-block"
264
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
265
+ valign="top">
188
266
  </td>
189
- </tr>
267
+ </tr>
190
268
  </table>
191
- </td>
269
+ </td>
192
270
  </tr>
193
- </table>
194
- <div class="footer" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
195
- <table width="100%" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
196
- <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
197
- <td class="aligncenter content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0;" align="center" valign="top">
198
- <span><a href="http://www.tiledesk.com" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; color: #999; text-decoration: underline; margin: 0;" > Tiledesk.com </a></span>
199
- <br><span><a href="%unsubscribe_url%" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; color: #999; text-decoration: underline; margin: 0;">Unsubscribe</a></span>
271
+
272
+ <tr>
273
+ <td>
274
+ <hr style="width:94%;height:1px;border:none;background-color: #cacaca;">
275
+
276
+ <div style="display: flex; padding: 20px 18px; color: #888888;">
277
+ <span>Powered by </span>
278
+ <span style="display: flex;"><img
279
+ src="https://panel.tiledesk.com/v3/dashboard/assets/img/logos/tiledesk-solo_logo_new_gray.svg"
280
+ width="18" height="auto" style="margin-left: 6px;" /></span>
281
+ <span style="font-weight: bold; margin-left: 2px;">Tiledesk</span>
282
+ </div>
283
+
284
+ </td>
285
+ </tr>
286
+ </table>
287
+
288
+ <div class="footer"
289
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
290
+ <table width="100%"
291
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
292
+ <tr
293
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
294
+ <td class="aligncenter content-block"
295
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0;"
296
+ align="center" valign="top">
297
+ <span><a href="http://www.tiledesk.com"
298
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; color: #999; text-decoration: underline; margin: 0;">
299
+ Tiledesk.com </a></span>
300
+ <br><span><a href="%unsubscribe_url%"
301
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; color: #999; text-decoration: underline; margin: 0;">Unsubscribe</a></span>
200
302
  </td>
201
- </tr>
303
+ </tr>
202
304
  </table>
203
305
 
204
306
 
205
307
 
206
- <!-- </div>
207
- </div>
208
- </td>
209
- <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
308
+ </div>
309
+ </td>
310
+ <td
311
+ style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
312
+ valign="top"></td>
210
313
  </tr>
211
- </table> -->
212
-
314
+ </table>
315
+ </div>
213
316
 
214
317
  </body>
318
+
215
319
  </html>