mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
ref: https://github.com/chatwoot/chatwoot/issues/6436 fixes: https://linear.app/chatwoot/issue/CW-1552/ability-to-rephrase-text-in-the-editor-using-gpt-integration --------- Co-authored-by: Sojan <sojan@pepalo.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
31 lines
768 B
Ruby
31 lines
768 B
Ruby
FactoryBot.define do
|
|
factory :integrations_hook, class: 'Integrations::Hook' do
|
|
app_id { 'slack' }
|
|
account
|
|
settings { { test: 'test' } }
|
|
status { Integrations::Hook.statuses['enabled'] }
|
|
access_token { SecureRandom.hex }
|
|
reference_id { SecureRandom.hex }
|
|
|
|
trait :dialogflow do
|
|
app_id { 'dialogflow' }
|
|
settings { { project_id: 'test', credentials: {} } }
|
|
end
|
|
|
|
trait :dyte do
|
|
app_id { 'dyte' }
|
|
settings { { api_key: 'api_key', organization_id: 'org_id' } }
|
|
end
|
|
|
|
trait :google_translate do
|
|
app_id { 'google_translate' }
|
|
settings { { project_id: 'test', credentials: {} } }
|
|
end
|
|
|
|
trait :openai do
|
|
app_id { 'openai' }
|
|
settings { { api_key: 'api_key' } }
|
|
end
|
|
end
|
|
end
|