pager_tree-integrations 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/pager_tree/integrations/live_call_routing/twilio/v3_controller.rb +11 -0
- data/app/mailers/pager_tree/integrations/live_call_routing/twilio/v3_mailer.rb +17 -0
- data/app/models/pager_tree/integrations/apex_ping/v3.rb +1 -1
- data/app/models/pager_tree/integrations/app_dynamics/v3.rb +1 -1
- data/app/models/pager_tree/integrations/auvik/v3.rb +1 -1
- data/app/models/pager_tree/integrations/aws_cloudwatch/v3.rb +1 -1
- data/app/models/pager_tree/integrations/azure_monitor/v3.rb +5 -6
- data/app/models/pager_tree/integrations/channel/hangouts/v3.rb +1 -1
- data/app/models/pager_tree/integrations/channel/microsoft_teams/v3.rb +1 -1
- data/app/models/pager_tree/integrations/channel/slack/v3.rb +1 -1
- data/app/models/pager_tree/integrations/cronitor/v3.rb +1 -1
- data/app/models/pager_tree/integrations/datadog/v3.rb +1 -1
- data/app/models/pager_tree/integrations/dead_mans_snitch/v3.rb +1 -1
- data/app/models/pager_tree/integrations/elast_alert/v3.rb +1 -1
- data/app/models/pager_tree/integrations/form/v3.rb +1 -1
- data/app/models/pager_tree/integrations/freshdesk/v3.rb +1 -1
- data/app/models/pager_tree/integrations/freshservice/v3.rb +1 -1
- data/app/models/pager_tree/integrations/grafana/v3.rb +1 -1
- data/app/models/pager_tree/integrations/healthchecks/v3.rb +1 -1
- data/app/models/pager_tree/integrations/honeybadger/v3.rb +1 -1
- data/app/models/pager_tree/integrations/hyperping/v3.rb +1 -1
- data/app/models/pager_tree/integrations/integration.rb +6 -2
- data/app/models/pager_tree/integrations/jira_server/v3.rb +1 -1
- data/app/models/pager_tree/integrations/jotform/v3.rb +1 -1
- data/app/models/pager_tree/integrations/kapacitor/v3.rb +1 -1
- data/app/models/pager_tree/integrations/live_call_routing/twilio/v3.rb +83 -40
- data/app/models/pager_tree/integrations/logic_monitor/v3.rb +1 -3
- data/app/models/pager_tree/integrations/mattermost/outgoing_webhook/v3.rb +1 -1
- data/app/models/pager_tree/integrations/new_relic/v3.rb +1 -3
- data/app/models/pager_tree/integrations/outgoing_event.rb +9 -0
- data/app/models/pager_tree/integrations/outgoing_webhook/v3.rb +2 -2
- data/app/models/pager_tree/integrations/pingdom/v3.rb +1 -1
- data/app/models/pager_tree/integrations/prometheus/v3.rb +1 -1
- data/app/models/pager_tree/integrations/prtg/v3.rb +1 -1
- data/app/models/pager_tree/integrations/server_guard24/v3.rb +1 -1
- data/app/models/pager_tree/integrations/site24x7/v3.rb +1 -1
- data/app/models/pager_tree/integrations/solar_winds/v3.rb +1 -1
- data/app/models/pager_tree/integrations/stackdriver/v3.rb +1 -1
- data/app/models/pager_tree/integrations/status_cake/v3.rb +1 -1
- data/app/models/pager_tree/integrations/twilio/incoming_sms/v3.rb +1 -1
- data/app/models/pager_tree/integrations/typeform/v3.rb +1 -1
- data/app/models/pager_tree/integrations/uptime/v3.rb +1 -1
- data/app/models/pager_tree/integrations/uptime_robot/v3.rb +1 -1
- data/app/models/pager_tree/integrations/webhook/v3.rb +21 -15
- data/app/models/pager_tree/integrations/zendesk/v3.rb +1 -3
- data/app/views/layouts/pager_tree/integrations/live_call_routing/twilio/mailer.html.erb +13 -0
- data/app/views/layouts/pager_tree/integrations/live_call_routing/twilio/mailer.text.erb +1 -0
- data/app/views/pager_tree/integrations/channel/hangouts/v3/_form_options.html.erb +4 -4
- data/app/views/pager_tree/integrations/channel/microsoft_teams/v3/_form_options.html.erb +5 -5
- data/app/views/pager_tree/integrations/channel/slack/v3/_form_options.html.erb +5 -5
- data/app/views/pager_tree/integrations/email/v3/_form_options.html.erb +5 -5
- data/app/views/pager_tree/integrations/form/v3/_form_options.html.erb +18 -18
- data/app/views/pager_tree/integrations/honeybadger/v3/_form_options.html.erb +1 -1
- data/app/views/pager_tree/integrations/jira_server/v3/_form_options.html.erb +4 -4
- data/app/views/pager_tree/integrations/live_call_routing/twilio/v3/_form_options.html.erb +16 -16
- data/app/views/pager_tree/integrations/live_call_routing/twilio/v3_mailer/call_recording.html.erb +1 -0
- data/app/views/pager_tree/integrations/live_call_routing/twilio/v3_mailer/call_recording.text.erb +1 -0
- data/app/views/pager_tree/integrations/mattermost/outgoing_webhook/v3/_form_options.html.erb +1 -1
- data/app/views/pager_tree/integrations/outgoing_webhook/v3/_form_options.html.erb +8 -8
- data/app/views/pager_tree/integrations/server_guard24/v3/_form_options.html.erb +3 -3
- data/app/views/pager_tree/integrations/webhook/v3/_form_options.html.erb +5 -5
- data/config/locales/en.yml +6 -2
- data/config/routes.rb +1 -0
- data/lib/generators/integration/templates/model.rb.tt +1 -1
- data/lib/pager_tree/integrations/version.rb +1 -1
- metadata +7 -2
@@ -28,15 +28,13 @@ module PagerTree::Integrations
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def adapter_thirdparty_id
|
31
|
-
|
31
|
+
_adapter_incoming_request_params.dig("id")
|
32
32
|
end
|
33
33
|
|
34
34
|
def adapter_action
|
35
|
-
case
|
35
|
+
case _adapter_incoming_request_params.dig("event_type").to_s.downcase.strip
|
36
36
|
when "create"
|
37
37
|
:create
|
38
|
-
# when "acknowledge"
|
39
|
-
# :acknowledge
|
40
38
|
when "resolve"
|
41
39
|
:resolve
|
42
40
|
else
|
@@ -50,7 +48,7 @@ module PagerTree::Integrations
|
|
50
48
|
description: _description,
|
51
49
|
urgency: _urgency,
|
52
50
|
thirdparty_id: adapter_thirdparty_id,
|
53
|
-
dedup_keys:
|
51
|
+
dedup_keys: _dedup_keys,
|
54
52
|
incident: _incident,
|
55
53
|
incident_severity: _incident_severity,
|
56
54
|
incident_message: _incident_message,
|
@@ -63,44 +61,44 @@ module PagerTree::Integrations
|
|
63
61
|
private
|
64
62
|
|
65
63
|
def _title
|
66
|
-
|
64
|
+
_adapter_incoming_request_params.dig("title")
|
67
65
|
end
|
68
66
|
|
69
67
|
def _description
|
70
|
-
|
68
|
+
_adapter_incoming_request_params.dig("description")
|
71
69
|
end
|
72
70
|
|
73
71
|
def _tags
|
74
|
-
tags =
|
72
|
+
tags = _adapter_incoming_request_params.dig("tags")
|
75
73
|
Array(tags).compact_blank.map(&:to_s).uniq
|
76
74
|
end
|
77
75
|
|
78
76
|
def _urgency
|
79
|
-
urgency =
|
77
|
+
urgency = _adapter_incoming_request_params.dig("urgency")
|
80
78
|
urgency&.to_s&.downcase&.strip
|
81
79
|
end
|
82
80
|
|
83
81
|
def _incident
|
84
|
-
!!
|
82
|
+
!!_adapter_incoming_request_params.dig("meta", "incident")
|
85
83
|
end
|
86
84
|
|
87
85
|
def _incident_message
|
88
|
-
|
86
|
+
_adapter_incoming_request_params.dig("meta", "incident_message")
|
89
87
|
end
|
90
88
|
|
91
89
|
def _incident_severity
|
92
|
-
|
90
|
+
_adapter_incoming_request_params.dig("meta", "incident_severity")&.to_s&.upcase&.strip
|
93
91
|
end
|
94
92
|
|
95
93
|
def _meta
|
96
|
-
meta =
|
94
|
+
meta = _adapter_incoming_request_params.dig("meta")
|
97
95
|
meta.is_a?(Hash) ? meta.except("incident", "incident_message", "incident_severity") : {}
|
98
96
|
end
|
99
97
|
|
100
98
|
def _additional_datums
|
101
99
|
if self.option_capture_additional_data == true
|
102
|
-
|
103
|
-
"
|
100
|
+
_adapter_incoming_request_params.except(
|
101
|
+
"id", "title", "description", "urgency", "tags", "meta", "event_type", "pagertree_integration_id", "dedup_keys"
|
104
102
|
).map do |key, value|
|
105
103
|
AdditionalDatum.new(format: "text", label: key, value: value.to_s)
|
106
104
|
end
|
@@ -108,5 +106,13 @@ module PagerTree::Integrations
|
|
108
106
|
[]
|
109
107
|
end
|
110
108
|
end
|
109
|
+
|
110
|
+
def _dedup_keys
|
111
|
+
Array(_adapter_incoming_request_params.dig("dedup_keys")).map(&:to_s).compact_blank.uniq
|
112
|
+
end
|
113
|
+
|
114
|
+
def _adapter_incoming_request_params
|
115
|
+
adapter_incoming_request_params.transform_keys(&:downcase)
|
116
|
+
end
|
111
117
|
end
|
112
118
|
end
|
@@ -26,8 +26,6 @@ module PagerTree::Integrations
|
|
26
26
|
case adapter_incoming_request_params.dig("event_type")
|
27
27
|
when "create"
|
28
28
|
:create
|
29
|
-
when "acknowledge"
|
30
|
-
:acknowledge
|
31
29
|
when "resolve"
|
32
30
|
:resolve
|
33
31
|
else
|
@@ -41,7 +39,7 @@ module PagerTree::Integrations
|
|
41
39
|
description: _description,
|
42
40
|
urgency: _urgency,
|
43
41
|
thirdparty_id: adapter_thirdparty_id,
|
44
|
-
dedup_keys: [
|
42
|
+
dedup_keys: [],
|
45
43
|
additional_data: _additional_datums
|
46
44
|
)
|
47
45
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
2
|
-
<div class="form-group md:col-span-3">
|
2
|
+
<div class="form-group group md:col-span-3">
|
3
3
|
<%= form.label :option_incoming_webhook_url %>
|
4
4
|
<%= form.text_field :option_incoming_webhook_url, class: "form-control" %>
|
5
5
|
<p class="form-hint"><%== t("pager_tree.integrations.common.option_incoming_webhook_url_hint_html") %></p>
|
@@ -14,10 +14,10 @@
|
|
14
14
|
]
|
15
15
|
%>
|
16
16
|
<% opts.each do |opt| %>
|
17
|
-
<div class="form-group">
|
17
|
+
<div class="form-group group">
|
18
18
|
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox mr-1" %>
|
19
19
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
20
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
20
|
+
<p class="form-hint inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
21
21
|
</div>
|
22
22
|
<% end %>
|
23
23
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
<div class="grid grid-cols-1 gap-4">
|
28
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
28
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
29
29
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
30
30
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
31
31
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
2
|
-
<div class="form-group md:col-span-3">
|
2
|
+
<div class="form-group group md:col-span-3">
|
3
3
|
<%= form.label :option_incoming_webhook_url %>
|
4
4
|
<%= form.text_field :option_incoming_webhook_url, class: "form-control" %>
|
5
5
|
<p class="form-hint"><%== t("pager_tree.integrations.common.option_incoming_webhook_url_hint_html") %></p>
|
@@ -14,10 +14,10 @@
|
|
14
14
|
]
|
15
15
|
%>
|
16
16
|
<% opts.each do |opt| %>
|
17
|
-
<div class="form-group">
|
18
|
-
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox
|
17
|
+
<div class="form-group group">
|
18
|
+
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox" %>
|
19
19
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
20
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
20
|
+
<p class="form-hint md:inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
21
21
|
</div>
|
22
22
|
<% end %>
|
23
23
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
<div class="grid grid-cols-1 gap-4">
|
28
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
28
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
29
29
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
30
30
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
31
31
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
2
|
-
<div class="form-group md:col-span-3">
|
2
|
+
<div class="form-group group md:col-span-3">
|
3
3
|
<%= form.label :option_incoming_webhook_url %>
|
4
4
|
<%= form.text_field :option_incoming_webhook_url, class: "form-control" %>
|
5
5
|
<p class="form-hint"><%== t("pager_tree.integrations.common.option_incoming_webhook_url_hint_html") %></p>
|
@@ -14,10 +14,10 @@
|
|
14
14
|
]
|
15
15
|
%>
|
16
16
|
<% opts.each do |opt| %>
|
17
|
-
<div class="form-group">
|
18
|
-
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox
|
17
|
+
<div class="form-group group">
|
18
|
+
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox" %>
|
19
19
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
20
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
20
|
+
<p class="form-hint md:inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
21
21
|
</div>
|
22
22
|
<% end %>
|
23
23
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
<div class="grid grid-cols-1 gap-4">
|
28
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
28
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
29
29
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
30
30
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
31
31
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<div class="form-group">
|
2
|
-
<%= form.label :option_allow_spam %>
|
1
|
+
<div class="form-group group">
|
3
2
|
<%= form.check_box :option_allow_spam, class: "form-checkbox" %>
|
4
|
-
|
3
|
+
<%= form.label :option_allow_spam %>
|
4
|
+
<p class="form-hint md:inline-block"><%== t(".option_allow_spam_hint_html") %></p>
|
5
5
|
</div>
|
6
6
|
|
7
|
-
<div class="form-group">
|
8
|
-
<%= form.label :option_dedup_threads %>
|
7
|
+
<div class="form-group group">
|
9
8
|
<%= form.check_box :option_dedup_threads, class: "form-checkbox" %>
|
9
|
+
<%= form.label :option_dedup_threads %>
|
10
10
|
<p class="form-hint"><%== t(".option_dedup_threads_hint_html") %></p>
|
11
11
|
</div>
|
@@ -1,35 +1,35 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
2
|
-
<div class="form-group md:col-span-2">
|
2
|
+
<div class="form-group group md:col-span-2">
|
3
3
|
<%= form.label :option_form_title %>
|
4
4
|
<%= form.text_field :option_form_title, class: "form-control" %>
|
5
5
|
<p class="form-hint"><%== t(".option_form_title_hint_html") %></p>
|
6
6
|
</div>
|
7
7
|
|
8
|
-
<div class="form-group md:col-span-2">
|
8
|
+
<div class="form-group group md:col-span-2">
|
9
9
|
<%= form.label :option_form_header %>
|
10
10
|
<%= form.text_field :option_form_header, class: "form-control" %>
|
11
11
|
<p class="form-hint"><%== t(".option_form_header_hint_html") %></p>
|
12
12
|
</div>
|
13
13
|
|
14
|
-
<div class="form-group md:col-span-2">
|
14
|
+
<div class="form-group group md:col-span-2">
|
15
15
|
<%= form.label :option_form_instructions %>
|
16
16
|
<%= form.text_area :option_form_instructions, class: "form-control" %>
|
17
17
|
<p class="form-hint"><%== t(".option_form_instructions_hint_html") %></p>
|
18
18
|
</div>
|
19
19
|
|
20
|
-
<div class="form-group">
|
20
|
+
<div class="form-group group">
|
21
21
|
<%= form.label :option_form_footer_text %>
|
22
22
|
<%= form.text_field :option_form_footer_text, class: "form-control" %>
|
23
23
|
<p class="form-hint"><%== t(".option_form_footer_text_hint_html") %></p>
|
24
24
|
</div>
|
25
25
|
|
26
|
-
<div class="form-group">
|
26
|
+
<div class="form-group group">
|
27
27
|
<%= form.label :option_form_footer_link %>
|
28
28
|
<%= form.text_field :option_form_footer_link, class: "form-control" %>
|
29
29
|
<p class="form-hint"><%== t(".option_form_footer_link_hint_html") %></p>
|
30
30
|
</div>
|
31
31
|
|
32
|
-
<div class="form-group">
|
32
|
+
<div class="form-group group">
|
33
33
|
<%= form.label :option_form_logo %>
|
34
34
|
<%= form.file_field :option_form_logo, accept: "image/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
35
35
|
<p class="form-hint"><%== t(".option_form_logo_hint_html") %></p>
|
@@ -38,27 +38,27 @@
|
|
38
38
|
|
39
39
|
<div class="grid grid-cols-4 gap-4">
|
40
40
|
|
41
|
-
<div class="form-group">
|
42
|
-
<%= form.check_box :option_form_email_required, class: "form-
|
41
|
+
<div class="form-group group">
|
42
|
+
<%= form.check_box :option_form_email_required, class: "form-checkbox1" %>
|
43
43
|
<%= form.label :option_form_email_required, class: "inline-block" %>
|
44
|
-
<p class="form-hint"><%== t(".option_form_email_required_hint_html") %></p>
|
44
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_email_required_hint_html") %></p>
|
45
45
|
</div>
|
46
46
|
|
47
|
-
<div class="form-group">
|
48
|
-
<%= form.check_box :option_form_phone_required, class: "form-checkbox
|
47
|
+
<div class="form-group group">
|
48
|
+
<%= form.check_box :option_form_phone_required, class: "form-checkbox" %>
|
49
49
|
<%= form.label :option_form_phone_required, class: "inline-block" %>
|
50
|
-
<p class="form-hint"><%== t(".option_form_phone_required_hint_html") %></p>
|
50
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_phone_required_hint_html") %></p>
|
51
51
|
</div>
|
52
52
|
|
53
|
-
<div class="form-group">
|
54
|
-
<%= form.check_box :option_form_description_required, class: "form-checkbox
|
53
|
+
<div class="form-group group">
|
54
|
+
<%= form.check_box :option_form_description_required, class: "form-checkbox" %>
|
55
55
|
<%= form.label :option_form_description_required, class: "inline-block" %>
|
56
|
-
<p class="form-hint"><%== t(".option_form_description_required_hint_html") %></p>
|
56
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_description_required_hint_html") %></p>
|
57
57
|
</div>
|
58
58
|
|
59
|
-
<div class="form-group">
|
60
|
-
<%= form.check_box :option_form_urgency_required, class: "form-checkbox
|
59
|
+
<div class="form-group group">
|
60
|
+
<%= form.check_box :option_form_urgency_required, class: "form-checkbox" %>
|
61
61
|
<%= form.label :option_form_urgency_required, class: "inline-block" %>
|
62
|
-
<p class="form-hint"><%== t(".option_form_urgency_required_hint_html") %></p>
|
62
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_urgency_required_hint_html") %></p>
|
63
63
|
</div>
|
64
64
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<div class="grid grid-cols-1
|
2
|
-
<div class="form-group">
|
3
|
-
<%= form.check_box :option_issue_updated, class: "form-checkbox
|
1
|
+
<div class="grid grid-cols-1 gap-4">
|
2
|
+
<div class="form-group group">
|
3
|
+
<%= form.check_box :option_issue_updated, class: "form-checkbox" %>
|
4
4
|
<%= form.label :option_issue_updated, class: "inline-block" %>
|
5
|
-
<p class="form-hint"><%== t(".option_issue_updated_hint_html") %></p>
|
5
|
+
<p class="form-hint md:inline-block"><%== t(".option_issue_updated_hint_html") %></p>
|
6
6
|
</div>
|
7
7
|
</div>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
2
|
-
<div class="form-group">
|
2
|
+
<div class="form-group group">
|
3
3
|
<%= form.label :option_account_sid %>
|
4
4
|
<%= form.text_field :option_account_sid, class: "form-control" %>
|
5
5
|
<p class="form-hint"><%== t(".option_account_sid_hint_html") %></p>
|
6
6
|
</div>
|
7
7
|
|
8
|
-
<div class="form-group" data-controller="password-visibility">
|
8
|
+
<div class="form-group group" data-controller="password-visibility">
|
9
9
|
<%= form.label :option_api_key %>
|
10
10
|
<%= form.password_field :option_api_key, value: form.object.option_api_key, class: "form-control", data: { password_visibility_target: "input"} %>
|
11
11
|
<div class="flex justify-between">
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
17
|
-
<div class="form-group" data-controller="password-visibility">
|
17
|
+
<div class="form-group group" data-controller="password-visibility">
|
18
18
|
<%= form.label :option_api_secret %>
|
19
19
|
<%= form.password_field :option_api_secret, value: form.object.option_api_secret, class: "form-control", data: { password_visibility_target: "input"} %>
|
20
20
|
<div class="flex justify-between">
|
@@ -23,55 +23,55 @@
|
|
23
23
|
</div>
|
24
24
|
</div>
|
25
25
|
|
26
|
-
<div class="form-group">
|
26
|
+
<div class="form-group group">
|
27
27
|
<%= form.label :option_welcome_media %>
|
28
28
|
<%= form.file_field :option_welcome_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
29
29
|
<p class="form-hint"><%== t(".option_welcome_media_hint_html") %></p>
|
30
30
|
</div>
|
31
31
|
|
32
|
-
<div class="form-group">
|
32
|
+
<div class="form-group group">
|
33
33
|
<%= form.label :option_please_wait_media %>
|
34
34
|
<%= form.file_field :option_please_wait_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
35
35
|
<p class="form-hint"><%== t(".option_please_wait_media_hint_html") %></p>
|
36
36
|
</div>
|
37
37
|
|
38
|
-
<div class="form-group">
|
38
|
+
<div class="form-group group">
|
39
39
|
<%= form.label :option_music_media %>
|
40
40
|
<%= form.file_field :option_music_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
41
41
|
<p class="form-hint"><%== t(".option_music_media_hint_html") %></p>
|
42
42
|
</div>
|
43
43
|
|
44
|
-
<div class="form-group">
|
44
|
+
<div class="form-group group">
|
45
45
|
<%= form.label :option_connect_now_media %>
|
46
46
|
<%= form.file_field :option_connect_now_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
47
47
|
<p class="form-hint"><%== t(".option_connect_now_media_hint_html") %></p>
|
48
48
|
</div>
|
49
49
|
|
50
|
-
<div class="form-group">
|
50
|
+
<div class="form-group group">
|
51
51
|
<%= form.label :option_no_answer_media %>
|
52
52
|
<%= form.file_field :option_no_answer_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
53
53
|
<p class="form-hint"><%== t(".option_no_answer_media_hint_html") %></p>
|
54
54
|
</div>
|
55
55
|
|
56
|
-
<div class="form-group">
|
56
|
+
<div class="form-group group">
|
57
57
|
<%= form.label :option_no_answer_thank_you_media %>
|
58
58
|
<%= form.file_field :option_no_answer_thank_you_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
59
59
|
<p class="form-hint"><%== t(".option_no_answer_thank_you_media_hint_html") %></p>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<div class="form-group">
|
63
|
-
<%= form.label :option_force_input %>
|
62
|
+
<div class="form-group group">
|
64
63
|
<%= form.check_box :option_force_input, class: "form-checkbox" %>
|
65
|
-
|
64
|
+
<%= form.label :option_force_input, class: "inline-block" %>
|
65
|
+
<p class="form-hint md:inline-block"><%== t(".option_force_input_hint_html") %></p>
|
66
66
|
</div>
|
67
67
|
|
68
|
-
<div class="form-group">
|
69
|
-
<%= form.label :option_record %>
|
68
|
+
<div class="form-group group">
|
70
69
|
<%= form.check_box :option_record, class: "form-checkbox" %>
|
71
|
-
|
70
|
+
<%= form.label :option_record, class: "inline-block" %>
|
71
|
+
<p class="form-hint md:inline-block"><%== t(".option_record_hint_html") %></p>
|
72
72
|
</div>
|
73
73
|
|
74
|
-
<div class="form-group" data-controller="tagify">
|
74
|
+
<div class="form-group group" data-controller="tagify">
|
75
75
|
<%= form.label :option_record_emails_list %>
|
76
76
|
<%= form.text_field :option_record_emails_list, class: "form-control", data: { tagify_target: "input" } %>
|
77
77
|
<p class="form-hint"><%== t(".option_record_emails_list_hint_html") %></p>
|
data/app/views/pager_tree/integrations/live_call_routing/twilio/v3_mailer/call_recording.html.erb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<%= t(".body", tiny_id: @alert.tiny_id, from: @from) %>: <a href="<%=@recording_url%>"><%= @recording_url %></a>
|
data/app/views/pager_tree/integrations/live_call_routing/twilio/v3_mailer/call_recording.text.erb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<%= t(".body", tiny_id: @alert.tiny_id, from: @from) %>: <%= @recording_url %>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
2
|
-
<div class="form-group">
|
2
|
+
<div class="form-group group">
|
3
3
|
<%= form.label :option_webhook_url %>
|
4
4
|
<%= form.text_field :option_webhook_url, class: "form-control" %>
|
5
5
|
<p class="form-hint"><%== t(".option_webhook_url_hint_html") %></p>
|
6
6
|
</div>
|
7
7
|
|
8
|
-
<div class="form-group">
|
8
|
+
<div class="form-group group">
|
9
9
|
<%= form.label :option_username %>
|
10
10
|
<%= form.text_field :option_username, class: "form-control" %>
|
11
11
|
<p class="form-hint"><%== t(".option_username_hint_html") %></p>
|
12
12
|
</div>
|
13
13
|
|
14
|
-
<div class="form-group">
|
14
|
+
<div class="form-group group">
|
15
15
|
<%= form.label :option_password %>
|
16
16
|
<%= form.text_field :option_password, class: "form-control" %>
|
17
17
|
<p class="form-hint"><%== t(".option_password_hint_html") %></p>
|
@@ -31,24 +31,24 @@
|
|
31
31
|
]
|
32
32
|
%>
|
33
33
|
<% opts.each do |opt| %>
|
34
|
-
<div class="form-group">
|
35
|
-
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox
|
34
|
+
<div class="form-group group">
|
35
|
+
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox" %>
|
36
36
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
37
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
37
|
+
<p class="form-hint md:inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
38
38
|
</div>
|
39
39
|
<% end %>
|
40
40
|
|
41
41
|
</div>
|
42
42
|
|
43
43
|
<div class="grid grid-cols-1 gap-4">
|
44
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "handlebars", code_editor_read_only_value: false } do %>
|
44
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "handlebars", code_editor_read_only_value: false } do %>
|
45
45
|
<%= form.label :option_template %>
|
46
46
|
<%= form.hidden_field :option_template, class: "form-control", data: {code_editor_target: "form"} %>
|
47
47
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_template %><% end %>
|
48
48
|
<p class="form-hint"><%== t(".option_template_hint_html") %></p>
|
49
49
|
<% end %>
|
50
50
|
|
51
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
51
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
52
52
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
53
53
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
54
54
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
2
|
-
<div class="form-group">
|
3
|
-
<%= form.check_box :option_resolve_warn, class: "form-checkbox
|
2
|
+
<div class="form-group group">
|
3
|
+
<%= form.check_box :option_resolve_warn, class: "form-checkbox" %>
|
4
4
|
<%= form.label :option_resolve_warn, class: "inline-block" %>
|
5
|
-
<p class="form-hint"><%== t(".option_resolve_warn_hint_html") %></p>
|
5
|
+
<p class="form-hint md:inline-block"><%== t(".option_resolve_warn_hint_html") %></p>
|
6
6
|
</div>
|
7
7
|
</div>
|