Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
json.payload do
|
||||
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule', formats: [:json], automation_rule: @automation_rule
|
||||
end
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule', formats: [:json], automation_rule: @automation_rule
|
||||
@@ -0,0 +1,5 @@
|
||||
json.payload do
|
||||
json.array! @automation_rules do |automation_rule|
|
||||
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule', formats: [:json], automation_rule: automation_rule
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
json.id automation_rule.id
|
||||
json.account_id automation_rule.account_id
|
||||
json.name automation_rule.name
|
||||
json.description automation_rule.description
|
||||
json.event_name automation_rule.event_name
|
||||
json.conditions automation_rule.conditions
|
||||
json.actions automation_rule.actions
|
||||
json.created_on automation_rule.created_at.to_i
|
||||
json.active automation_rule.active?
|
||||
json.files automation_rule.file_base_data if automation_rule.files.any?
|
||||
@@ -0,0 +1,3 @@
|
||||
json.payload do
|
||||
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule', formats: [:json], automation_rule: @automation_rule
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
json.payload do
|
||||
json.partial! 'api/v1/accounts/automation_rules/partials/automation_rule', formats: [:json], automation_rule: @automation_rule
|
||||
end
|
||||
Reference in New Issue
Block a user