Zammad Docker and addon updates

This commit is contained in:
Darren Clarke 2023-05-03 08:20:51 +00:00
parent dab5ce0521
commit aa18d3904e
16 changed files with 1972 additions and 2976 deletions

View file

@ -0,0 +1,27 @@
# frozen_string_literal: true
class CdrSignalChannel < ActiveRecord::Migration[5.2]
def self.up
Ticket::Article::Type.create_if_not_exists(
name: 'cdr_signal',
communication: true,
updated_by_id: 1,
created_by_id: 1
)
Permission.create_if_not_exists(
name: 'admin.channel_cdr_signal',
note: 'Manage %s',
preferences: {
translations: ['Channel - Signal']
}
)
end
def self.down
t = Ticket::Article::Type.find_by(name: 'cdr_signal')
t&.destroy
p = Permission.find_by(name: 'admin.channel_cdr_signal')
p&.destroy
end
end

View file

@ -0,0 +1,28 @@
# frozen_string_literal: true
class CdrVoiceChannel < ActiveRecord::Migration[5.2]
def self.up
Ticket::Article::Type.create_if_not_exists(
name: 'cdr_voice',
communication: false,
updated_by_id: 1,
created_by_id: 1
)
Permission.create_if_not_exists(
name: 'admin.channel_cdr_voice',
note: 'Manage %s',
preferences: {
translations: ['Channel - Voice']
}
)
end
def self.down
t = Ticket::Article::Type.find_by(name: 'cdr_voice')
t&.destroy
p = Permission.find_by(name: 'admin.channel_cdr_voice')
p&.destroy
end
end

View file

@ -0,0 +1,27 @@
# frozen_string_literal: true
class CdrWhatsappChannel < ActiveRecord::Migration[5.2]
def self.up
Ticket::Article::Type.create_if_not_exists(
name: 'cdr_whatsapp',
communication: true,
updated_by_id: 1,
created_by_id: 1
)
Permission.create_if_not_exists(
name: 'admin.channel_cdr_whatsapp',
note: 'Manage %s',
preferences: {
translations: ['Channel - Whatsapp']
}
)
end
def self.down
t = Ticket::Article::Type.find_by(name: 'cdr_whatsapp')
t&.destroy
p = Permission.find_by(name: 'admin.channel_cdr_whatsapp')
p&.destroy
end
end