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
|
||||
skip_before_action :verify_csrf_token
|
||||
skip_before_action :authenticate_with_current_session
|
||||
skip_before_action :authenticate_with_token
|
||||
|
||||
# POST /api/v1/formstack/webhook
|
||||
def webhook
|
||||
|
|
|
|||
|
|
@ -31,7 +31,12 @@ class Channel
|
|||
|
||||
Rails.logger.debug { 'signal send started' }
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -327,7 +327,7 @@ class CdrSignalPoller
|
|||
article = Ticket::Article.create!(article_params)
|
||||
|
||||
# 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!(
|
||||
article_params.merge(
|
||||
message_id: "cdr_signal.#{message_id}-#{index + 1}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue