2019-07-04 11:16:55 +00:00
|
|
|
require_relative 'boot'
|
2012-04-10 13:31:21 +00:00
|
|
|
|
|
|
|
require 'rails/all'
|
2019-07-10 11:58:51 +00:00
|
|
|
require_relative 'issue_2656_workaround_for_rails_issue_33600'
|
2012-04-10 13:31:21 +00:00
|
|
|
|
2018-05-22 16:40:39 +00:00
|
|
|
# DO NOT REMOVE THIS LINE - see issue #2037
|
|
|
|
Bundler.setup
|
|
|
|
|
2015-09-25 14:37:55 +00:00
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
|
|
# you've limited to :test, :development, or :production.
|
|
|
|
Bundler.require(*Rails.groups)
|
2012-04-10 13:31:21 +00:00
|
|
|
|
|
|
|
module Zammad
|
|
|
|
class Application < Rails::Application
|
2019-07-04 11:16:55 +00:00
|
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
|
|
config.load_defaults 5.2
|
|
|
|
|
2012-04-10 13:31:21 +00:00
|
|
|
# Settings in config/environments/* take precedence over those specified here.
|
|
|
|
# Application configuration should go into files in config/initializers
|
|
|
|
# -- all .rb files in that directory are automatically loaded.
|
|
|
|
|
|
|
|
# Custom directories with classes and modules you want to be autoloadable.
|
2017-11-23 08:09:44 +00:00
|
|
|
config.autoload_paths += %W[#{config.root}/lib]
|
|
|
|
config.eager_load_paths += %W[#{config.root}/lib]
|
2012-04-10 13:31:21 +00:00
|
|
|
|
2018-07-23 08:23:01 +00:00
|
|
|
config.active_job.queue_adapter = :delayed_job
|
|
|
|
|
2018-11-23 11:53:44 +00:00
|
|
|
# Use custom logger to log Thread id next to Process pid
|
|
|
|
config.log_formatter = ::Logger::Formatter.new
|
|
|
|
|
2013-08-06 22:10:28 +00:00
|
|
|
# REST api path
|
|
|
|
config.api_path = '/api/v1'
|
|
|
|
|
2015-09-25 14:37:55 +00:00
|
|
|
# define cache store
|
2017-11-23 08:09:44 +00:00
|
|
|
config.cache_store = :file_store, Rails.root.join('tmp', "cache_file_store_#{Rails.env}")
|
2015-09-25 14:37:55 +00:00
|
|
|
|
2016-09-29 11:25:20 +00:00
|
|
|
# default preferences by permission
|
|
|
|
config.preferences_default_by_permission = {
|
|
|
|
'ticket.agent' => {
|
2016-02-07 13:00:29 +00:00
|
|
|
notification_config: {
|
|
|
|
matrix: {
|
2018-12-19 17:31:51 +00:00
|
|
|
create: {
|
2016-02-07 13:00:29 +00:00
|
|
|
criteria: {
|
2018-12-19 17:31:51 +00:00
|
|
|
owned_by_me: true,
|
2016-02-07 13:00:29 +00:00
|
|
|
owned_by_nobody: true,
|
2021-03-22 13:25:43 +00:00
|
|
|
subscribed: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
no: false,
|
2016-02-07 13:00:29 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
channel: {
|
|
|
|
email: true,
|
2016-02-07 13:00:29 +00:00
|
|
|
online: true,
|
|
|
|
}
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
update: {
|
2016-02-07 13:00:29 +00:00
|
|
|
criteria: {
|
2018-12-19 17:31:51 +00:00
|
|
|
owned_by_me: true,
|
2016-02-07 13:00:29 +00:00
|
|
|
owned_by_nobody: true,
|
2021-03-22 13:25:43 +00:00
|
|
|
subscribed: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
no: false,
|
2016-02-07 13:00:29 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
channel: {
|
|
|
|
email: true,
|
2016-02-07 13:00:29 +00:00
|
|
|
online: true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
reminder_reached: {
|
|
|
|
criteria: {
|
2018-12-19 17:31:51 +00:00
|
|
|
owned_by_me: true,
|
2016-02-08 07:25:27 +00:00
|
|
|
owned_by_nobody: false,
|
2021-03-22 13:25:43 +00:00
|
|
|
subscribed: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
no: false,
|
2016-02-07 13:00:29 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
channel: {
|
|
|
|
email: true,
|
2016-02-07 13:00:29 +00:00
|
|
|
online: true,
|
|
|
|
}
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
escalation: {
|
2016-02-07 13:00:29 +00:00
|
|
|
criteria: {
|
2018-12-19 17:31:51 +00:00
|
|
|
owned_by_me: true,
|
2016-02-08 07:25:27 +00:00
|
|
|
owned_by_nobody: false,
|
2021-03-22 13:25:43 +00:00
|
|
|
subscribed: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
no: false,
|
2016-02-07 13:00:29 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
channel: {
|
|
|
|
email: true,
|
2016-02-07 13:00:29 +00:00
|
|
|
online: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-04-10 13:31:21 +00:00
|
|
|
end
|
2015-04-27 14:15:29 +00:00
|
|
|
end
|