Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :bot_message_card, class: Hash do
|
||||
title { Faker::Book.name }
|
||||
description { Faker::Movie.quote }
|
||||
media_url { 'https://chatwoot-assets.local/sample.png' }
|
||||
actions do
|
||||
[{
|
||||
text: 'Select',
|
||||
type: 'postback',
|
||||
payload: 'TACOS'
|
||||
}, {
|
||||
text: 'More info',
|
||||
type: 'link',
|
||||
uri: 'http://example.org'
|
||||
}]
|
||||
end
|
||||
|
||||
initialize_with { attributes }
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :bot_message_select, class: Hash do
|
||||
title { Faker::Book.name }
|
||||
value { Faker::Book.name }
|
||||
|
||||
initialize_with { attributes }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user