Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
12
research/chatwoot/lib/test_data/inbox_creator.rb
Normal file
12
research/chatwoot/lib/test_data/inbox_creator.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class TestData::InboxCreator
|
||||
def self.create_for(account)
|
||||
Array.new(TestData::Constants::INBOXES_PER_ACCOUNT) do
|
||||
channel = Channel::Api.create!(account: account)
|
||||
Inbox.create!(
|
||||
account_id: account.id,
|
||||
name: "API Inbox #{SecureRandom.hex(4)}",
|
||||
channel: channel
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user