add notifications settings

This commit is contained in:
Alex Turchyn
2023-09-17 20:38:09 +03:00
parent 41d3eaf582
commit 2f74caf16a
19 changed files with 156 additions and 7 deletions
+13
View File
@@ -1,6 +1,19 @@
# frozen_string_literal: true
module AccountConfigs
REMINDER_DURATIONS = {
'one_hour' => '1 hour',
'two_hours' => '2 hours',
'four_hours' => '4 hours',
'eight_hours' => '8 hours',
'twelve_hours' => '12 hours',
'twenty_four_hours' => '24 hours',
'two_days' => '2 days',
'four_days' => '4 days',
'eight_days' => '8 days',
'fifteen_days' => '15 days'
}.freeze
module_function
def find_or_initialize_for_key(account, key)
+1
View File
@@ -5,6 +5,7 @@ module SubmissionEvents
EVENT_NAMES = {
send_email: 'Email sent',
send_reminder_email: 'Reminder email sent',
send_sms: 'SMS sent',
open_email: 'Email opened',
click_email: 'Email link clicked',