Repo cleanup 2
This commit is contained in:
parent
e941353b64
commit
6ed633f84b
5 changed files with 1052 additions and 6226 deletions
|
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
class FormstackController < ApplicationController
|
class FormstackController < ApplicationController
|
||||||
skip_before_action :verify_csrf_token
|
skip_before_action :verify_csrf_token
|
||||||
skip_before_action :authenticate_with_current_session
|
|
||||||
skip_before_action :authenticate_with_token
|
|
||||||
|
|
||||||
# POST /api/v1/formstack/webhook
|
# POST /api/v1/formstack/webhook
|
||||||
def webhook
|
def webhook
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,12 @@ class Channel
|
||||||
|
|
||||||
Rails.logger.debug { 'signal send started' }
|
Rails.logger.debug { 'signal send started' }
|
||||||
Rails.logger.debug { options.inspect }
|
Rails.logger.debug { options.inspect }
|
||||||
@signal = ::CdrSignal.new(options[:bot_endpoint], options[:bot_token])
|
|
||||||
|
# Use phone_number from channel options
|
||||||
|
phone_number = options[:phone_number]
|
||||||
|
raise 'No phone_number configured for Signal channel' unless phone_number
|
||||||
|
|
||||||
|
@signal = ::CdrSignal.new(phone_number)
|
||||||
@signal.from_article(article)
|
@signal.from_article(article)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -327,7 +327,7 @@ class CdrSignalPoller
|
||||||
article = Ticket::Article.create!(article_params)
|
article = Ticket::Article.create!(article_params)
|
||||||
|
|
||||||
# Create additional articles for extra attachments
|
# Create additional articles for extra attachments
|
||||||
attachments[1..].each_with_index do |att, index|
|
((attachments || [])[1..] || []).each_with_index do |att, index|
|
||||||
Ticket::Article.create!(
|
Ticket::Article.create!(
|
||||||
article_params.merge(
|
article_params.merge(
|
||||||
message_id: "cdr_signal.#{message_id}-#{index + 1}",
|
message_id: "cdr_signal.#{message_id}-#{index + 1}",
|
||||||
|
|
|
||||||
7266
pnpm-lock.yaml
generated
7266
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,3 +1,4 @@
|
||||||
packages:
|
packages:
|
||||||
- 'apps/*'
|
- 'apps/*'
|
||||||
- 'packages/*'
|
- 'packages/*'
|
||||||
|
- 'packages/zammad-addon-link/test'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue