Module: CustomerServiceIm

Defined in:
lib/customer_service_im.rb,
lib/customer_service_im/engine.rb,
lib/customer_service_im/version.rb,
app/models/customer_service_im/staff.rb,
app/models/customer_service_im/message.rb,
app/models/customer_service_im/conversation.rb,
lib/customer_service_im/asr_recognize_error.rb,
app/jobs/customer_service_im/application_job.rb,
app/channels/customer_service_im/messages_channel.rb,
app/models/customer_service_im/application_record.rb,
app/mailers/customer_service_im/application_mailer.rb,
app/channels/concerns/customer_service_im/connection.rb,
app/controllers/customer_service_im/users_controller.rb,
app/controllers/customer_service_im/staffs_controller.rb,
app/channels/customer_service_im/conversations_channel.rb,
app/controllers/customer_service_im/messages_controller.rb,
app/controllers/customer_service_im/application_controller.rb,
app/controllers/customer_service_im/conversations_controller.rb

Defined Under Namespace

Modules: Connection Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, AsrRecognizeError, Conversation, ConversationsChannel, ConversationsController, Engine, InstallGenerator, Message, MessagesChannel, MessagesController, Staff, StaffsController, UsersController

Constant Summary collapse

VERSION =
'0.15.0'

Class Method Summary collapse

Class Method Details

.setupObject



16
17
18
19
20
21
22
23
# File 'lib/customer_service_im.rb', line 16

def self.setup
  if block_given?
    yield self
    TxAsr.secret_key = asr_config&.fetch(:secret_key, :blank_asr_secret_key)
    TxAsr.secret_id = asr_config&.fetch(:secret_id, :blank_asr_secret_id)
    TxAsr.region = asr_config&.fetch(:region, :blank_asr_region)
  end
end