forked from newfies-dialer/newfies-dialer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
255 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,34 @@ | |
# Arezqui Belaid <[email protected]> | ||
# | ||
|
||
from django.utils.translation import ugettext_lazy as _ | ||
from django_lets_go.utils import Choice | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
CAMPAIGN_STATUS_COLOR = {1: "green", 2: "blue", 3: "orange", 4: "red"} | ||
|
||
CAMPAIGN_COLUMN_NAME = { | ||
'key': _('key'), | ||
'name': _('name'), | ||
'start_date': _('start date'), | ||
'type': _('type'), | ||
'app': _('app'), | ||
'contacts': _('contacts'), | ||
'status': _('status'), | ||
'frequency': _('frequency'), | ||
'phonebook': _('phonebook') | ||
} | ||
|
||
SUBSCRIBER_COLUMN_NAME = { | ||
'contact': _('contact'), | ||
'updated_date': _('date'), | ||
'count_attempt': _('attempts'), | ||
'completion_count_attempt': _('completion attempts'), | ||
'status': _('status'), | ||
'disposition': _('disposition'), | ||
'collected_data': _('response'), | ||
'agent': _('agent') | ||
} | ||
|
||
|
||
class SUBSCRIBER_STATUS(Choice): | ||
|
@@ -44,33 +70,8 @@ class CAMPAIGN_STATUS(Choice): | |
ABORT = 3, _('ABORT') | ||
END = 4, _('END') | ||
|
||
CAMPAIGN_STATUS_COLOR = {1: "green", 2: "blue", 3: "orange", 4: "red"} | ||
|
||
|
||
class CAMPAIGN_COLUMN_NAME(Choice): | ||
key = _('key') | ||
name = _('name') | ||
start_date = _('start date') | ||
type = _('type') | ||
app = _('app') | ||
contacts = _('contacts') | ||
status = _('status') | ||
frequency = _('frequency') | ||
phonebook = _('phonebook') | ||
|
||
|
||
class AMD_BEHAVIOR(Choice): | ||
ALWAYS = 1, _('ALWAYS PLAY MESSAGE') | ||
HUMAN_ONLY = 2, _('PLAY MESSAGE TO HUMAN ONLY') | ||
VOICEMAIL_ONLY = 3, _('LEAVE MESSAGE TO VOICEMAIL ONLY') | ||
|
||
|
||
class SUBSCRIBER_COLUMN_NAME(Choice): | ||
contact = _('contact') | ||
updated_date = _('date') | ||
count_attempt = _('attempts') | ||
completion_count_attempt = _('completion attempts') | ||
status = _('status') | ||
disposition = _('disposition') | ||
collected_data = _('response') | ||
agent = _('agent') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.