forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: conversation export job direct to email (#55)
* feat: job to send conversation report to admins * feat: renabled the download conversation export button on frontend * feat: psql statement timeout to 60s for DailyConversationReportJob * feat: added conversation job to hulalahome * feat: shopurl instead of name in intercom * feat: fetch job data from URL in DailyConversationReportJob * fix: set_statement_timeout should be called when generating a report
- Loading branch information
1 parent
95981f7
commit b2834fb
Showing
8 changed files
with
104 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# class TestJob < ApplicationJob | ||
# queue_as :default | ||
|
||
# def perform(*args) | ||
# # Do something later | ||
# puts "TestJob is running" | ||
|
||
# DailyConversationReportJob.new.generate_custom_report(785, { since: 12.month.ago, until: Time.current }) | ||
# end | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...dministrator_notifications/channel_notifications_mailer/custom_conversation_report.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<p>Hello,</p> | ||
|
||
<p>Please find attached the conversation report you requested.</p> | ||
|
||
<p> | ||
Click <a href="{{action_url}}">here</a> to download. | ||
</p> | ||
|
||
<p>Regards,<br>BiteSpeed</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters