summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/automatic_call_distributor.rb10
-rw-r--r--app/models/tenant.rb12
2 files changed, 15 insertions, 7 deletions
diff --git a/app/models/automatic_call_distributor.rb b/app/models/automatic_call_distributor.rb
index 678e0eb..cd887d5 100644
--- a/app/models/automatic_call_distributor.rb
+++ b/app/models/automatic_call_distributor.rb
@@ -15,7 +15,17 @@ class AutomaticCallDistributor < ActiveRecord::Base
JOIN_ON = ['agents_available', 'agents_active', 'always']
LEAVE_ON = ['no_agents_available_timeout', 'no_agents_active_timeout', 'no_agents_available', 'no_agents_active', 'timeout', 'never']
+ after_initialize :set_defaults
+
def to_s
self.name
end
+
+ private
+ def set_defaults
+ self.announce_call_agents ||= 'ivr/ivr-stay_on_line_call_answered_momentarily.wav'
+ self.greeting ||= 'ivr/ivr-thank_you_for_calling.wav'
+ self.goodbye ||= 'ivr/ivr-thank_you_for_calling.wav'
+ self.music ||= 'local_stream://mohl'
+ end
end
diff --git a/app/models/tenant.rb b/app/models/tenant.rb
index dda94d8..d9351b7 100644
--- a/app/models/tenant.rb
+++ b/app/models/tenant.rb
@@ -226,14 +226,12 @@ class Tenant < ActiveRecord::Base
:description => "Hersteller von Gemeinschaft. Kommerziellen Support und Consulting für Gemeinschaft.",
:homepage_organization => 'http://amooma.de',
:twitter_account => 'amooma_de',
- :facebook_account => 'https://www.facebook.com/AMOOMA.GmbH',
+ :facebook_account => 'AMOOMA.GmbH',
+ )
+ amooma.phone_numbers.create(
+ :name => 'Office',
+ :number => '+492622983440'
)
- # This is the new 2013 phone number.
- #
- # amooma.phone_numbers.create(
- # :name => 'Office',
- # :number => '+4926228998900'
- # )
amooma.addresses.create(
:street => 'Bachstr. 124',
:zip_code => '56566',