@tiledesk/tiledesk-server 2.2.39 → 2.3.1-8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/LICENSE +14 -657
  3. package/README.md +17 -3
  4. package/app.js +21 -60
  5. package/channels/chat21/chat21Handler.js +18 -3
  6. package/channels/chat21/chat21WebHook.js +31 -15
  7. package/channels/chat21/package-lock.json +663 -706
  8. package/channels/chat21/package.json +2 -2
  9. package/deploy.sh +2 -0
  10. package/event/botEvent.js +1 -1
  11. package/event/subscriptionEvent.js +11 -0
  12. package/fonts/Roboto-Italic.ttf +0 -0
  13. package/fonts/Roboto-Medium.ttf +0 -0
  14. package/fonts/Roboto-MediumItalic.ttf +0 -0
  15. package/fonts/Roboto-Regular.ttf +0 -0
  16. package/middleware/ipFilter.js +220 -0
  17. package/middleware/passport.js +11 -2
  18. package/models/lead.js +2 -0
  19. package/models/project.js +10 -0
  20. package/models/project_user.js +4 -0
  21. package/models/request.js +50 -12
  22. package/models/subscriptionLog.js +34 -0
  23. package/models/tagLibrary.js +42 -0
  24. package/package.json +6 -12
  25. package/pubmodules/activities/activityArchiver.js +314 -0
  26. package/pubmodules/activities/index.js +3 -0
  27. package/pubmodules/activities/models/activity.js +88 -0
  28. package/pubmodules/activities/routes/activity.js +710 -0
  29. package/pubmodules/activities/test/activityRoute.js +85 -0
  30. package/pubmodules/analytics/analytics.js +1719 -0
  31. package/pubmodules/analytics/index.js +3 -0
  32. package/pubmodules/canned/cannedResponse.js +55 -0
  33. package/pubmodules/canned/cannedResponseRoute.js +163 -0
  34. package/pubmodules/canned/index.js +3 -0
  35. package/pubmodules/emailNotification/requestNotification.js +215 -28
  36. package/pubmodules/events/eventRoute.js +37 -7
  37. package/pubmodules/messageActions/messageActionsInterceptor.js +4 -2
  38. package/pubmodules/pubModulesManager.js +129 -5
  39. package/pubmodules/rasa/listener.js +5 -5
  40. package/pubmodules/rules/conciergeBot.js +4 -4
  41. package/pubmodules/scheduler/tasks/closeAgentUnresponsiveRequestTask.js +3 -1
  42. package/pubmodules/scheduler/tasks/closeBotUnresponsiveRequestTask.js +3 -1
  43. package/pubmodules/tilebot/index.js +11 -0
  44. package/pubmodules/tilebot/listener.js +69 -0
  45. package/pubmodules/trigger/default.js +271 -0
  46. package/pubmodules/trigger/event/actionEventEmitter.js +10 -0
  47. package/pubmodules/trigger/event/flowEventEmitter.js +10 -0
  48. package/pubmodules/trigger/event/triggerEventEmitter.js +10 -0
  49. package/pubmodules/trigger/index.js +3 -0
  50. package/pubmodules/trigger/models/trigger.js +149 -0
  51. package/pubmodules/trigger/rulesTrigger.js +1181 -0
  52. package/pubmodules/trigger/start.js +118 -0
  53. package/pubmodules/trigger/triggerRoute.js +150 -0
  54. package/routes/auth.js +7 -2
  55. package/routes/department.js +51 -0
  56. package/routes/faq.js +7 -0
  57. package/routes/faq_kb.js +1 -1
  58. package/routes/group.js +140 -0
  59. package/routes/lead.js +24 -1
  60. package/routes/message.js +6 -3
  61. package/routes/project.js +118 -0
  62. package/routes/project_user.js +9 -0
  63. package/routes/public-request.js +280 -2
  64. package/routes/request.js +122 -16
  65. package/routes/subscription.js +140 -0
  66. package/routes/tag.js +138 -0
  67. package/routes/user-request.js +3 -2
  68. package/routes/users.js +1 -1
  69. package/routes/widget.js +80 -3
  70. package/routes/widgetLoader.js +31 -0
  71. package/services/banUserNotifier.js +86 -0
  72. package/services/emailService.js +189 -11
  73. package/services/faqService.js +2 -2
  74. package/services/geoService.js +30 -4
  75. package/services/leadService.js +2 -0
  76. package/services/modulesManager.js +7 -188
  77. package/services/requestService.js +364 -6
  78. package/services/subscriptionNotifier.js +485 -0
  79. package/template/email/assignedEmailMessage.html +1 -1
  80. package/template/email/assignedRequest.html +1 -1
  81. package/template/email/newMessage.html +1 -1
  82. package/template/email/newMessageFollower.html +236 -0
  83. package/template/email/passwordChanged.html +1 -1
  84. package/template/email/pooledEmailMessage.html +1 -1
  85. package/template/email/pooledRequest.html +1 -1
  86. package/template/email/resetPassword.html +2 -2
  87. package/template/email/ticket.html +1 -1
  88. package/test/cannedRoute.js +166 -0
  89. package/test/messageRoute.js +69 -0
  90. package/test/requestService.js +3 -1
  91. package/utils/orgUtil.js +3 -3
  92. package/views/messages.jade +2 -2
  93. package/websocket/webSocketServer.js +23 -5
package/CHANGELOG.md CHANGED
@@ -1,4 +1,125 @@
1
+ # 2.3.17 -> PROD
2
+ - Webhook chat21 fix return
1
3
 
4
+ # 2.3.16
5
+ - Request close activity added as event
6
+ - Log fix webhook chat21
7
+
8
+ # 2.3.15
9
+ - Endpoint Widget fix undefined project.widget
10
+
11
+ # 2.3.14
12
+ - Added ip filter with Deny roles and ban User roles
13
+ - Ban notifier
14
+ - Middleware decodeJwt before passport with passport fallback
15
+ - Removed unused requestService.incrementMessagesCountByRequestId from chat21Webhook
16
+ - Enable agent to manage groups endpoint
17
+ - Added tilebot chat server
18
+
19
+ # 2.3.13
20
+ - Getting ip fix
21
+
22
+ # 2.3.10
23
+ - Added tilebot submodule
24
+ - Askbot endpoint fix for tilebot and auto create faqs for tilebot
25
+ - Added /widgets/ip endpoint
26
+ - Added bot and subscription as permission check for /intents or /faq
27
+
28
+ # 2.3.9
29
+ - Rasa process env variable read fix
30
+
31
+ # 2.3.8
32
+ - @tiledesk/tiledesk-rasa-connector": "^1.0.10
33
+
34
+ # 2.3.7
35
+ - Find by intent_display_name parameter intents
36
+
37
+ # 2.3.5
38
+ - CHAT_REOPENED updated conversation true
39
+
40
+ # 2.3.4
41
+ - download pdf fix
42
+ - added no_count and no_textscore fields query parameters to request search endpoint
43
+
44
+ # 2.3.3
45
+ - Follower notification fix by email
46
+
47
+ # 2.3.2
48
+ - Dowload trascript as csv, pdf and txt endpoint
49
+ - Added closed_by field to the request model
50
+ - Added followers field to the request model
51
+ - Added lead index
52
+ - Added widget v5 code loader /widgets/v5/:project_id -> heroku blocca cache-control PROVA IN PROD
53
+ - Bugfix Cannot read property 'profile' of null
54
+ - Added filter by channel offline and online
55
+ - Updated Rasa Connector to 1.0.7 -- QUANDO PORTI IN PROD AGGIORNA SUL DB PER FARLI PUNTARE QUI..
56
+ - Send info message on lead.fullaname.update
57
+ - Follower email notification
58
+
59
+ https://support.zendesk.com/hc/en-us/articles/4408822451482-Using-CCs-followers-and-mentions#topic_wm2_zgq_qgb
60
+
61
+ Followers allow you to include additional internal users (agents or administrators) on ticket notifications. Internal users can add followers to tickets. There's no limit to the number of followers you can include on a ticket.
62
+
63
+ Agents and administrators can use the Followers field in the properties panel of the ticket interface to add internal users to a ticket.
64
+
65
+ Internal users who can view the ticket can add followers to the ticket.
66
+
67
+ Followers can:
68
+
69
+ * Receive public comments and private comments added to the ticket conversation.
70
+ * Ability to make a private comments and public comment.
71
+ * Replying to a private comment creates a private comment and likewise for public comments.
72
+ * Remove themselves from the ticket conversation.
73
+ * Remain hidden from end users copied on the ticket.
74
+ * Access any ticket that they are following, even if they would not normally be allowed to access the ticket.
75
+
76
+ # Adding agents as followers from the ticket interface
77
+ If followers have been enabled by the administrator, internal users (your company's agents and administrators) can add followers from the Followers field from the properties panel in the ticket interface. Followers are internal users such as agents, light agents, and administrators that receive email notifications when a ticket is updated.
78
+
79
+ Note these things about using followers:
80
+
81
+ * Followers can add and receive public comments and private comments.
82
+ * Followers can reply to a public comment with a public comment, and reply to a private comment with a private comment.
83
+ * Followers can remove themselves from the ticket.
84
+ * Followers are hidden from copied (CC'd) end users and other followers on email notifications. Their name and email address don't appear in email notifications sent to other users. For more information about the email notifications that followers receive, see Best practices for using email clients with CCs and followers.
85
+ * If your administrator has enabled Automatically make an agent a follower, you can added internal users, such as agents and admins, to tickets as followers from ticket notifications by adding them to the reply as a CC. In this case, the agent becomes both a CC and a follower.
86
+ ## To add agents as followers from the ticket interface
87
+ * Select a ticket from one of your views.
88
+ The Followers field appears in the ticket properties panel on the left side.
89
+
90
+ * In the Followers field, enter a user's name, email domain, or organization name and the relevant results appear.
91
+ Internal users such as agents, light agents, and administrators can be followers.
92
+
93
+ * To quickly add yourself as a follower, click follow.
94
+
95
+
96
+
97
+ ## To remove a follower from the ticket interface
98
+ * Click the delete button (X) in the person's name box in the Followers list
99
+
100
+
101
+ * To quickly remove yourself as a follower, click unfollow.
102
+
103
+ * To add agents as followers from ticket notifications
104
+
105
+ * From your email client, open the ticket notification.
106
+ * Open the CC line, per your email provider’s instructions.
107
+ * Add the name of the user you want to add as a follower. Repeat as necessary.
108
+ * Add your comment and send the email.
109
+
110
+
111
+
112
+ # 2.3.1
113
+ - changed tiledesk logo for emails
114
+ - open modules: analytics, activity log, multi tenancy, departments, groups, canned responses, tags, triggers, webhooks
115
+
116
+ # 2.2.39
117
+ - Added enterprise module
118
+ - Log fix
119
+ - Added DISABLE_MONGO_PASSWORD_MASK env variable
120
+ - Embedded rasa proxy
121
+ - Added Swedish, Uzbek and Kazakh languages
122
+ - Added Azerbaijani language
2
123
 
3
124
  # 2.2.38
4
125
  - Unlocked departments, groups, multi-tenant, tags and canned resposes modules