diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/backup.rb | 60 | ||||
-rw-r--r-- | config/locales/de.yml | 2 | ||||
-rw-r--r-- | config/locales/navigation.de.yml | 3 | ||||
-rw-r--r-- | config/locales/navigation.en.yml | 3 | ||||
-rw-r--r-- | config/locales/views/backup_jobs/de.yml | 61 | ||||
-rw-r--r-- | config/locales/views/backup_jobs/en.yml | 61 | ||||
-rw-r--r-- | config/locales/views/call_routes/de.yml | 29 | ||||
-rw-r--r-- | config/locales/views/call_routes/en.yml | 5 | ||||
-rw-r--r-- | config/locales/views/gemeinschaft_setups/de.yml | 3 | ||||
-rw-r--r-- | config/locales/views/gemeinschaft_setups/en.yml | 3 | ||||
-rw-r--r-- | config/locales/views/intruders/de.yml | 110 | ||||
-rw-r--r-- | config/locales/views/intruders/en.yml | 110 | ||||
-rw-r--r-- | config/locales/views/phones/de.yml | 6 | ||||
-rw-r--r-- | config/locales/views/route_elements/de.yml | 20 | ||||
-rw-r--r-- | config/locales/views/sip_accounts/de.yml | 4 | ||||
-rw-r--r-- | config/locales/views/system_messages/de.yml | 38 | ||||
-rw-r--r-- | config/locales/views/system_messages/en.yml | 38 | ||||
-rw-r--r-- | config/routes.rb | 116 | ||||
-rw-r--r-- | config/schedule.rb | 24 |
19 files changed, 498 insertions, 198 deletions
diff --git a/config/backup.rb b/config/backup.rb new file mode 100644 index 0000000..e5816c1 --- /dev/null +++ b/config/backup.rb @@ -0,0 +1,60 @@ +# encoding: utf-8 + +require 'inifile' +SYSTEM_ODBC_CONFIGURATION = IniFile.load('/var/lib/freeswitch/.odbc.ini') + +Backup::Model.new(:GS5, 'GS5 backup') do + + ## + # Split [Splitter] + # + # Split the backup file in to chunks of 2 GB + # if the backup file size exceeds 2 GB + # + # split_into_chunks_of 2048 + + ## + # MySQL [Database] + # + database MySQL do |db| + # To dump all databases, set `db.name = :all` (or leave blank) + db.name = SYSTEM_ODBC_CONFIGURATION['gemeinschaft']['DATABASE'] + db.username = SYSTEM_ODBC_CONFIGURATION['gemeinschaft']['USER'] + db.password = SYSTEM_ODBC_CONFIGURATION['gemeinschaft']['PASSWORD'] + db.host = "localhost" + db.port = 3306 + db.socket = "/var/run/mysqld/mysqld.sock" + end + + ## + # Faxes + # + if File.exists?('/opt/gemeinschaft/public/uploads/fax_document') + archive :faxes do |archive| + archive.add '/opt/gemeinschaft/public/uploads/fax_document' + end + end + + ## + # Voicemails + # + if File.exists?('/var/opt/gemeinschaft/freeswitch/voicemail') + archive :voicemails do |archive| + archive.add '/var/opt/gemeinschaft/freeswitch/voicemail' + end + end + + ## + # Local (Copy) [Storage] + # + store_with Local do |local| + local.path = "/var/backups/" + end + + ## + # Gzip [Compressor] + # + compress_with Gzip + +end + diff --git a/config/locales/de.yml b/config/locales/de.yml index 9d85d8e..ffc8e69 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -192,7 +192,7 @@ de: formats: default: ! '%A, %d. %B %Y, %H:%M Uhr' long: ! '%A, %d. %B %Y, %H:%M Uhr' - short: ! '%d. %B, %H:%M Uhr' + short: ! '%d.%m.%Y %H:%M Uhr' pm: nachmittags date_only: '%d.%m.%Y' misc: diff --git a/config/locales/navigation.de.yml b/config/locales/navigation.de.yml new file mode 100644 index 0000000..779248c --- /dev/null +++ b/config/locales/navigation.de.yml @@ -0,0 +1,3 @@ +de: + navigation: + admin_docu: 'Admin-Doku'
\ No newline at end of file diff --git a/config/locales/navigation.en.yml b/config/locales/navigation.en.yml new file mode 100644 index 0000000..82e901b --- /dev/null +++ b/config/locales/navigation.en.yml @@ -0,0 +1,3 @@ +en: + navigation: + admin_docu: 'Admin-Docu'
\ No newline at end of file diff --git a/config/locales/views/backup_jobs/de.yml b/config/locales/views/backup_jobs/de.yml new file mode 100644 index 0000000..8e23feb --- /dev/null +++ b/config/locales/views/backup_jobs/de.yml @@ -0,0 +1,61 @@ +de: + backup_jobs: + name: 'Backup-Auftrag' + controller: + successfuly_created: 'Backup-Auftrag wurde angelegt.' + successfuly_updated: 'Backup-Auftrag wurde aktualisiert.' + successfuly_destroyed: 'Backup-Auftrag wurde gelöscht.' + index: + page_title: 'Liste aller Backup-Aufträge' + page_title_with_limit: 'Liste der letzten %{limit} Backup-Aufträge' + started_at: 'Start' + finished_at: 'Ende' + state: 'Status' + directory: 'Verzeichnis' + size_of_the_backup: 'Größe' + actions: + confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: Backup-Auftrag' + destroy: 'Löschen' + edit: 'Bearbeiten' + show: 'Anzeigen' + create: 'Neu anlegen' + create_for: 'Backup-Auftrag neu anlegen für %{resource}' + show: + page_title: 'Backup-Auftrag bearbeiten' + started_at: 'Start' + finished_at: 'Ende' + state: 'Status' + directory: 'Verzeichnis' + size_of_the_backup: 'Größe' + actions: + confirm_destroy: 'Sind Sie sicher, dass die dieses Element löschen möchten?' + destroy: 'Löschen' + edit: 'Bearbeiten' + view_all: 'Alle anzeigen' + new: + page_title: 'Backup-Auftrag neu anlegen' + actions: + back_to_list: 'Zurück zur Übersicht' + edit: + page_title: 'Backup-Auftrag bearbeiten' + actions: + back_to_list: 'Zurück zur Übersicht' + edit: 'Bearbeiten' + view_all: 'Alle anzeigen' + form: + started_at: + label: 'Start' + hint: '' + finished_at: + label: 'Ende' + hint: '' + state: + label: 'Status' + hint: '' + directory: + label: 'Verzeichnis' + hint: '' + size_of_the_backup: + label: 'Größe' + hint: '' + submit: 'Absenden'
\ No newline at end of file diff --git a/config/locales/views/backup_jobs/en.yml b/config/locales/views/backup_jobs/en.yml new file mode 100644 index 0000000..74d14c2 --- /dev/null +++ b/config/locales/views/backup_jobs/en.yml @@ -0,0 +1,61 @@ +en: + backup_jobs: + name: 'Backup job' + controller: + successfuly_created: 'Successfully created backup job.' + successfuly_updated: 'Successfully updated backup job.' + successfuly_destroyed: 'Successfully destroyed backup job.' + index: + page_title: 'Listing backup jobs' + page_title_with_limit: 'Listing of the last %{limit} backup jobs' + started_at: 'Started at' + finished_at: 'Finished at' + state: 'State' + directory: 'Directory' + size_of_the_backup: 'Size of the backup' + actions: + confirm_destroy: 'Are you sure you want to delete this backup job?' + destroy: 'Delete' + edit: 'Edit' + show: 'View' + create: 'New' + create_for: 'New backup job for %{resource}' + show: + page_title: 'Show backup job' + started_at: 'Started at' + finished_at: 'Finished at' + state: 'State' + directory: 'Directory' + size_of_the_backup: 'Size of the backup' + actions: + confirm_destroy: 'Are you sure you want to delete this element?' + destroy: 'Delete' + edit: 'Edit' + view_all: 'View All' + new: + page_title: 'New backup job' + actions: + back_to_list: 'Back to Index' + edit: + page_title: 'Editing backup job' + actions: + back_to_list: 'Back to Index' + edit: 'Edit' + view_all: 'View All' + form: + started_at: + label: 'Started at' + hint: '' + finished_at: + label: 'Finished at' + hint: '' + state: + label: 'State' + hint: '' + directory: + label: 'Directory' + hint: '' + size_of_the_backup: + label: 'Size of the backup' + hint: '' + submit: 'Submit'
\ No newline at end of file diff --git a/config/locales/views/call_routes/de.yml b/config/locales/views/call_routes/de.yml index a8d6f4b..c9df1c2 100644 --- a/config/locales/views/call_routes/de.yml +++ b/config/locales/views/call_routes/de.yml @@ -1,25 +1,25 @@ de: call_routes: - name: 'Call Route' + name: 'Call-Route' controller: - successfuly_created: 'Call Route wurde angelegt.' - successfuly_updated: 'Call Route wurde aktualisiert.' - successfuly_destroyed: 'Call Route wurde gelöscht.' + successfuly_created: 'Call-Route wurde angelegt.' + successfuly_updated: 'Call-Route wurde aktualisiert.' + successfuly_destroyed: 'Call-Route wurde gelöscht.' index: - page_title: 'Liste aller Call Routen' - routing_table: 'Routing Table' + page_title: 'Liste Call-Routen' + routing_table: 'Routing Tabelle' name: 'Name' - endpoint: 'Endpoint' + endpoint: 'Endpunkt' position: 'Position' actions: - confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: Call Route' + confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: Call-Route' destroy: 'Löschen' edit: 'Bearbeiten' show: 'Anzeigen' create: 'Neu anlegen' - create_for: 'Call Route neu anlegen für %{resource}' + create_for: 'Call-Route neu anlegen für %{resource}' show: - page_title: 'Call Route bearbeiten' + page_title: 'Call-Route bearbeiten' routing_table: 'Routing Table' name: 'Name' endpoint: 'Endpoint' @@ -30,11 +30,11 @@ de: edit: 'Bearbeiten' view_all: 'Alle anzeigen' new: - page_title: 'Call Route neu anlegen' + page_title: 'Call-Route neu anlegen' actions: back_to_list: 'Zurück zur Übersicht' edit: - page_title: 'Call Route bearbeiten' + page_title: 'Call-Route bearbeiten' actions: back_to_list: 'Zurück zur Übersicht' edit: 'Bearbeiten' @@ -46,10 +46,7 @@ de: name: label: 'Name' hint: '' - endpoint_type: - label: 'Endpoint type' - hint: '' - endpoint_id: + endpoint: label: 'Endpoint' hint: '' position: diff --git a/config/locales/views/call_routes/en.yml b/config/locales/views/call_routes/en.yml index 8596474..c37773d 100644 --- a/config/locales/views/call_routes/en.yml +++ b/config/locales/views/call_routes/en.yml @@ -46,10 +46,7 @@ en: name: label: 'Name' hint: '' - endpoint_type: - label: 'Endpoint type' - hint: '' - endpoint_id: + endpoint: label: 'Endpoint' hint: '' position: diff --git a/config/locales/views/gemeinschaft_setups/de.yml b/config/locales/views/gemeinschaft_setups/de.yml index 57bc7e6..eb0145c 100644 --- a/config/locales/views/gemeinschaft_setups/de.yml +++ b/config/locales/views/gemeinschaft_setups/de.yml @@ -28,6 +28,9 @@ de: default_area_code: label: 'Standard Ortsvorwahl' hint: '030 für Berlin, 0261 für Koblenz, 02631 für Neuwied, usw.' + trunk_access_code: + label: 'Amtsholungsziffer' + hint: '' default_company_name: label: 'Name der Organisation' hint: 'z.B. Firmenname' diff --git a/config/locales/views/gemeinschaft_setups/en.yml b/config/locales/views/gemeinschaft_setups/en.yml index 9d5f965..3a1ac39 100644 --- a/config/locales/views/gemeinschaft_setups/en.yml +++ b/config/locales/views/gemeinschaft_setups/en.yml @@ -28,6 +28,9 @@ en: default_area_code: label: 'Default area code' hint: '' + trunk_access_code: + label: 'Trunk access code' + hint: '' default_company_name: label: 'Name of the organisation' hint: 'e.g. name of the company' diff --git a/config/locales/views/intruders/de.yml b/config/locales/views/intruders/de.yml new file mode 100644 index 0000000..42ece4b --- /dev/null +++ b/config/locales/views/intruders/de.yml @@ -0,0 +1,110 @@ +de: + intruders: + name: 'Intruder' + controller: + successfuly_created: 'Intruder wurde angelegt.' + successfuly_updated: 'Intruder wurde aktualisiert.' + successfuly_destroyed: 'Intruder wurde gelöscht.' + index: + page_title: 'Übersicht von Intruder' + list_type: 'List type' + key: 'Key' + points: 'Points' + bans: 'Bans' + ban_last: 'Ban last' + ban_end: 'Ban end' + contact_ip: 'Contact ip' + contact_port: 'Contact port' + contact_count: 'Contact count' + contact_last: 'Contact last' + contacts_per_second: 'Contacts per second' + contacts_per_second_max: 'Contacts per second max' + user_agent: 'User agent' + to_user: 'To user' + comment: 'Comment' + actions: + confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: Intruder' + destroy: 'Löschen' + edit: 'Bearbeiten' + show: 'Anzeigen' + create: 'Neu anlegen' + create_for: 'Intruder neu anlegen für %{resource}' + show: + page_title: 'Intruder bearbeiten' + list_type: 'List type' + key: 'Key' + points: 'Points' + bans: 'Bans' + ban_last: 'Ban last' + ban_end: 'Ban end' + contact_ip: 'Contact ip' + contact_port: 'Contact port' + contact_count: 'Contact count' + contact_last: 'Contact last' + contacts_per_second: 'Contacts per second' + contacts_per_second_max: 'Contacts per second max' + user_agent: 'User agent' + to_user: 'To user' + comment: 'Comment' + actions: + confirm_destroy: 'Sind Sie sicher, dass die dieses Element löschen möchten?' + destroy: 'Löschen' + edit: 'Bearbeiten' + view_all: 'Alle anzeigen' + new: + page_title: 'Intruder neu anlegen' + actions: + back_to_list: 'Zurück zur Übersicht' + edit: + page_title: 'Intruder bearbeiten' + actions: + back_to_list: 'Zurück zur Übersicht' + edit: 'Bearbeiten' + view_all: 'Alle anzeigen' + form: + list_type: + label: 'List type' + hint: '' + key: + label: 'Key' + hint: '' + points: + label: 'Points' + hint: '' + bans: + label: 'Bans' + hint: '' + ban_last: + label: 'Ban last' + hint: '' + ban_end: + label: 'Ban end' + hint: '' + contact_ip: + label: 'Contact ip' + hint: '' + contact_port: + label: 'Contact port' + hint: '' + contact_count: + label: 'Contact count' + hint: '' + contact_last: + label: 'Contact last' + hint: '' + contacts_per_second: + label: 'Contacts per second' + hint: '' + contacts_per_second_max: + label: 'Contacts per second max' + hint: '' + user_agent: + label: 'User agent' + hint: '' + to_user: + label: 'To user' + hint: '' + comment: + label: 'Comment' + hint: '' + submit: 'Absenden'
\ No newline at end of file diff --git a/config/locales/views/intruders/en.yml b/config/locales/views/intruders/en.yml new file mode 100644 index 0000000..99c2dcb --- /dev/null +++ b/config/locales/views/intruders/en.yml @@ -0,0 +1,110 @@ +en: + intruders: + name: 'Intruder' + controller: + successfuly_created: 'Successfully created Intruder.' + successfuly_updated: 'Successfully updated Intruder.' + successfuly_destroyed: 'Successfully destroyed Intruder.' + index: + page_title: 'Listing Intruder' + list_type: 'List type' + key: 'Key' + points: 'Points' + bans: 'Bans' + ban_last: 'Ban last' + ban_end: 'Ban end' + contact_ip: 'Contact ip' + contact_port: 'Contact port' + contact_count: 'Contact count' + contact_last: 'Contact last' + contacts_per_second: 'Contacts per second' + contacts_per_second_max: 'Contacts per second max' + user_agent: 'User agent' + to_user: 'To user' + comment: 'Comment' + actions: + confirm_destroy: 'Are you sure you want to delete this Intruder?' + destroy: 'Delete' + edit: 'Edit' + show: 'View' + create: 'New' + create_for: 'New Intruder for %{resource}' + show: + page_title: 'Show Intruder' + list_type: 'List type' + key: 'Key' + points: 'Points' + bans: 'Bans' + ban_last: 'Ban last' + ban_end: 'Ban end' + contact_ip: 'Contact ip' + contact_port: 'Contact port' + contact_count: 'Contact count' + contact_last: 'Contact last' + contacts_per_second: 'Contacts per second' + contacts_per_second_max: 'Contacts per second max' + user_agent: 'User agent' + to_user: 'To user' + comment: 'Comment' + actions: + confirm_destroy: 'Are you sure you want to delete this element?' + destroy: 'Delete' + edit: 'Edit' + view_all: 'View All' + new: + page_title: 'New Intruder' + actions: + back_to_list: 'Back to Index' + edit: + page_title: 'Editing Intruder' + actions: + back_to_list: 'Back to Index' + edit: 'Edit' + view_all: 'View All' + form: + list_type: + label: 'List type' + hint: '' + key: + label: 'Key' + hint: '' + points: + label: 'Points' + hint: '' + bans: + label: 'Bans' + hint: '' + ban_last: + label: 'Ban last' + hint: '' + ban_end: + label: 'Ban end' + hint: '' + contact_ip: + label: 'Contact ip' + hint: '' + contact_port: + label: 'Contact port' + hint: '' + contact_count: + label: 'Contact count' + hint: '' + contact_last: + label: 'Contact last' + hint: '' + contacts_per_second: + label: 'Contacts per second' + hint: '' + contacts_per_second_max: + label: 'Contacts per second max' + hint: '' + user_agent: + label: 'User agent' + hint: '' + to_user: + label: 'To user' + hint: '' + comment: + label: 'Comment' + hint: '' + submit: 'Submit'
\ No newline at end of file diff --git a/config/locales/views/phones/de.yml b/config/locales/views/phones/de.yml index 373db13..02875c4 100644 --- a/config/locales/views/phones/de.yml +++ b/config/locales/views/phones/de.yml @@ -9,9 +9,9 @@ de: page_title: 'Telefone' mac_address: 'MAC-Adresse' phone_model_id: 'Modell' - hot_deskable: 'Hot-Desk fähig' - ip_address: 'IP-Adresse' - last_ip_address: 'Letzte IP-Adresse' + hot_deskable: 'Hot-Desk' + ip_address: 'IP' + last_ip_address: 'Letzte IP' http_user: 'Phone WebGUI Username' http_password: 'Phone WebGUI Passwort' nightly_reboot: 'Nachts automatischer Reboot' diff --git a/config/locales/views/route_elements/de.yml b/config/locales/views/route_elements/de.yml index fe14671..70a6162 100644 --- a/config/locales/views/route_elements/de.yml +++ b/config/locales/views/route_elements/de.yml @@ -1,12 +1,12 @@ de: route_elements: - name: 'Route element' + name: 'Routen-Element' controller: - successfuly_created: 'Route element wurde angelegt.' - successfuly_updated: 'Route element wurde aktualisiert.' - successfuly_destroyed: 'Route element wurde gelöscht.' + successfuly_created: 'Routen-Element wurde angelegt.' + successfuly_updated: 'Routen-Element wurde aktualisiert.' + successfuly_destroyed: 'Routen-Element wurde gelöscht.' index: - page_title: 'Übersicht von Route element' + page_title: 'Liste Routen-Elemente' call_route_id: 'Call route' var_in: 'Var in' var_out: 'Var out' @@ -16,14 +16,14 @@ de: mandatory: 'Mandatory' position: 'Position' actions: - confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: Route element' + confirm_destroy: 'Sind Sie sicher, dass Sie folgendes löschen möchten: Routen-Element' destroy: 'Löschen' edit: 'Bearbeiten' show: 'Anzeigen' create: 'Neu anlegen' - create_for: 'Route element neu anlegen für %{resource}' + create_for: 'Routen-Element neu anlegen für %{resource}' show: - page_title: 'Route element bearbeiten' + page_title: 'Routen-Element bearbeiten' call_route_id: 'Call route' var_in: 'Var in' var_out: 'Var out' @@ -38,11 +38,11 @@ de: edit: 'Bearbeiten' view_all: 'Alle anzeigen' new: - page_title: 'Route element neu anlegen' + page_title: 'Routen-Element neu anlegen' actions: back_to_list: 'Zurück zur Übersicht' edit: - page_title: 'Route element bearbeiten' + page_title: 'Routen-Element bearbeiten' actions: back_to_list: 'Zurück zur Übersicht' edit: 'Bearbeiten' diff --git a/config/locales/views/sip_accounts/de.yml b/config/locales/views/sip_accounts/de.yml index 2820336..8fe2300 100644 --- a/config/locales/views/sip_accounts/de.yml +++ b/config/locales/views/sip_accounts/de.yml @@ -11,11 +11,11 @@ de: caller_name: 'Caller Name' password: 'Passwort' voicemail_pin: 'Anrufbeantworter PIN' - phone_numbers: 'Telefonnummern' + phone_numbers: 'Tel.Nr.' call_waiting: 'Anklopfen' clir: 'Rufnummernunterdrückung (CLIR)' clip: 'Rufnummernanzeige (CLIP)' - hotdeskable: 'Hot-Desk fähig' + hotdeskable: 'Hot-Desk' clip_no_screening: 'Spezifische Rufnummernanzeige (CLIP -no screening-)' callforward_rules_act_per_sip_account: 'Rufweiterleitungen gelten für das gesamte SIP-Account' online: 'Online' diff --git a/config/locales/views/system_messages/de.yml b/config/locales/views/system_messages/de.yml deleted file mode 100644 index d841d0b..0000000 --- a/config/locales/views/system_messages/de.yml +++ /dev/null @@ -1,38 +0,0 @@ -de: - system_messages: - name: 'Systemnachricht' - controller: - successfuly_created: 'Eine Systemnachricht wurde erstellt.' - successfuly_updated: 'Eine Systemnachricht wurde aktualisiert.' - successfuly_destroyed: 'Eine Systemnachricht wurde gelöscht.' - index: - page_title: 'Systemnachrichten' - user_id: 'Benutzer' - content: 'Nachricht' - actions: - confirm_destroy: 'Sind Sie sicher, dass Sie diese Systemnachricht löschen möchten?' - destroy: 'Löschen' - edit: 'Bearbeiten' - show: 'Anzeigen' - create: 'Neu anlegen' - show: - page_title: 'Systemnachricht anzeigen' - user_id: 'Benutzer' - content: 'Nachricht' - actions: - confirm_destroy: 'Sind Sie sicher, dass Sie diese Systemnachricht löschen möchten?' - destroy: 'Löschen' - edit: 'Bearbeiten' - view_all: 'Alle anzeigen' - new: - page_title: 'Neue Systemnachricht' - edit: - page_title: 'Systemnachricht bezüglich %{resource} bearbeiten' - form: - user_id: - label: 'Benutzer' - hint: '' - content: - label: 'Nachricht' - hint: '' - submit: 'Absenden'
\ No newline at end of file diff --git a/config/locales/views/system_messages/en.yml b/config/locales/views/system_messages/en.yml deleted file mode 100644 index a039b10..0000000 --- a/config/locales/views/system_messages/en.yml +++ /dev/null @@ -1,38 +0,0 @@ -en: - system_messages: - name: 'System message' - controller: - successfuly_created: 'Successfully created System message.' - successfuly_updated: 'Successfully updated System message.' - successfuly_destroyed: 'Successfully destroyed System message.' - index: - page_title: 'System messages' - user_id: 'User' - content: 'Content' - actions: - confirm_destroy: 'Are you sure you want to delete this element?' - destroy: 'Delete' - edit: 'Edit' - show: 'View' - create: 'New' - show: - page_title: 'Editing System message' - user_id: 'User' - content: 'Content' - actions: - confirm_destroy: 'Are you sure you want to delete this element?' - destroy: 'Delete' - edit: 'Edit' - view_all: 'View All' - new: - page_title: 'New System message' - edit: - page_title: 'Editing System message %{resource}' - form: - user_id: - label: 'User' - hint: '' - content: - label: 'Content' - hint: '' - submit: 'Submit'
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 9d47efc..6d7a2ad 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,20 +1,21 @@ Gemeinschaft42c::Application.routes.draw do + resources :intruders + + resources :backup_jobs, :except => [:edit, :update] + scope :constraints => lambda{|req|%w(127.0.0.1).include? req.remote_addr} do get "trigger/voicemail" get "trigger/fax" end resources :call_routes do + collection { + post :sort + get :show_variables + } resources :route_elements do - member do - put 'move_higher' - put 'move_lower' - end - end - member do - put 'move_higher' - put 'move_lower' + collection { post :sort } end end @@ -41,95 +42,54 @@ Gemeinschaft42c::Application.routes.draw do resources :rows end + resources :phone_numbers, :only => [:sort] do + collection { post :sort } + end + resources :acd_agents, :only => [] do - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :automatic_call_distributors, :only => [] do resources :acd_agents - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :hunt_group_members, :only => [] do - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :hunt_groups, :only => [] do resources :hunt_group_members - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end if GsParameter.get('CALLTHROUGH_HAS_WHITELISTS') == true resources :whitelists, :only => [] do - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end end resources :access_authorizations, :only => [] do - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :fax_documents resources :fax_accounts, :only => [] do resources :fax_documents - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :gemeinschaft_setups, :only => [:new, :create] - + resources :phone_number_ranges, :only => [] do - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :conferences, :only => [] do resources :conference_invitees - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers end resources :phone_numbers, :only => [] do @@ -228,9 +188,6 @@ Gemeinschaft42c::Application.routes.draw do root :to => "page#index" - get "wizards/new_initial_setup" - post "wizards/create_initial_setup" - resources :users do # Display all phone books that the current user owns: resources :phone_books @@ -271,31 +228,20 @@ Gemeinschaft42c::Application.routes.draw do resources :callthroughs, :only => [] do resources :access_authorizations - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers if GsParameter.get('CALLTHROUGH_HAS_WHITELISTS') == true resources :whitelists end end + resources :softkeys, :only => [ :sort ] do + collection { post :sort } + end + resources :sip_accounts, :only => [] do resources :phones_sip_accounts - resources :phone_numbers do - member do - put 'move_higher' - put 'move_lower' - end - end - resources :softkeys do - member do - put 'move_higher' - put 'move_lower' - end - end + resources :phone_numbers + resources :softkeys resources :call_histories do collection do delete 'destroy_multiple' @@ -325,8 +271,6 @@ Gemeinschaft42c::Application.routes.draw do resources :phone_book_entries, :only => [ :index, :show ] do resources :phone_numbers do member do - put 'move_higher' - put 'move_lower' put 'call' end end diff --git a/config/schedule.rb b/config/schedule.rb new file mode 100644 index 0000000..0b5f0ca --- /dev/null +++ b/config/schedule.rb @@ -0,0 +1,24 @@ +# Use this file to easily define all of your cron jobs. +# +# It's helpful, but not entirely necessary to understand cron before proceeding. +# http://en.wikipedia.org/wiki/Cron + +# Example: +# +# set :output, "/path/to/my/cron_log.log" +# +# every 2.hours do +# command "/usr/bin/some_great_command" +# runner "MyModel.some_method" +# rake "some:great:rake:task" +# end +# +# every 4.days do +# runner "AnotherModel.prune_old_records" +# end + +every 1.day, :at => '4:00 am' do + rake "backup:daily_backup" +end + +# Learn more: http://github.com/javan/whenever |