Пример #1
0
class CallFilterFuncKeyDestinationForm(BaseForm):
    set_value_template = '{filter_member_firstname} {filter_member_lastname}'

    filter_member_id = SelectField(l_('Call Filter Member'), [InputRequired()],
                                   choices=[])
    filter_member_firstname = DestinationHiddenField()
    filter_member_lastname = DestinationHiddenField()
Пример #2
0
class UserDestinationForm(BaseForm):
    set_value_template = '{user_firstname} {user_lastname}'

    user_id = SelectField(l_('User'), choices=[], validators=[InputRequired()])
    ring_time = IntegerField(l_('Ring time'), [NumberRange(min=0)])
    user_firstname = DestinationHiddenField()
    user_lastname = DestinationHiddenField()
Пример #3
0
class SoundDestinationForm(BaseForm):
    set_value_template = '{name} [{format}] ({language})'

    filename = SelectField(l_('Filename'),
                           choices=[],
                           validators=[InputRequired(),
                                       Length(max=255)])
    name = DestinationHiddenField()
    language = DestinationHiddenField()
    format = DestinationHiddenField()
    skip = BooleanField(l_('Skip'), default=False)
    no_answer = BooleanField(l_('No Answer'), default=False)
Пример #4
0
class QueueDestinationForm(BaseForm):
    set_value_template = '{queue_label}'

    queue_id = SelectField(l_('Queue'), [InputRequired()], choices=[])
    ring_time = IntegerField(l_('Ring Time'), [NumberRange(min=0)])
    queue_label = DestinationHiddenField()
    skill_rule_id = SelectField(l_('Skill Rule'), description='skillrule', choices=[])
    skill_rule_variables = StringField(l_('Skill Rule Variables'))
Пример #5
0
class VoicemailDestinationForm(BaseForm):
    set_value_template = '{voicemail_name}'

    voicemail_id = SelectField(l_('Voicemail'), [InputRequired()], choices=[])
    greeting = SelectField(l_('Greeting'),
                           choices=[('busy', l_('Busy')),
                                    ('unavailable', l_('Unavailable'))])
    skip_instructions = BooleanField(l_('Skip instructions'))
    voicemail_name = DestinationHiddenField()
Пример #6
0
class GroupMemberFuncKeyDestinationForm(BaseForm):
    set_value_template = '{group_name}'

    action = SelectField(l_('Action'), [InputRequired()],
                         choices=[('join', l_('Join group')),
                                  ('leave', l_('Leave group')),
                                  ('toggle', l_('Join or leave group'))],
                         default='toggle')
    group_id = SelectField(l_('Group'), [InputRequired()], choices=[])
    group_name = DestinationHiddenField()
Пример #7
0
class SwitchboardDestinationForm(BaseForm):
    set_value_template = '{switchboard_name}'

    switchboard_uuid = SelectField(l_('Switchboard'), [InputRequired()],
                                   choices=[])
    switchboard_name = DestinationHiddenField()
Пример #8
0
class ConferenceDestinationForm(BaseForm):
    set_value_template = '{conference_name}'

    conference_id = SelectField('Conference', choices=[], validators=[InputRequired()])
    conference_name = DestinationHiddenField()
Пример #9
0
class GroupFuncKeyDestinationForm(BaseForm):
    set_value_template = '{group_name}'

    group_id = SelectField(l_('Group'), [InputRequired()], choices=[])
    group_name = DestinationHiddenField()
Пример #10
0
class GroupDestinationForm(BaseForm):
    set_value_template = '{group_name}'

    group_id = SelectField(l_('Group'), [InputRequired()], choices=[])
    ring_time = IntegerField(l_('Ring Time'), [NumberRange(min=0)])
    group_name = DestinationHiddenField()
Пример #11
0
class UserFuncKeyDestinationForm(BaseForm):
    set_value_template = '{user_firstname} {user_lastname}'

    user_id = SelectField(l_('User'), [InputRequired()], choices=[])
    user_firstname = DestinationHiddenField()
    user_lastname = DestinationHiddenField()
Пример #12
0
class ConferenceFuncKeyDestinationForm(BaseForm):
    set_value_template = '{conference_name}'

    conference_id = SelectField(l_('Conference'), [InputRequired()], choices=[])
    conference_name = DestinationHiddenField()
Пример #13
0
class QueueFuncKeyDestinationForm(BaseForm):
    set_value_template = '{queue_name}'

    queue_id = SelectField(l_('Queue'), [InputRequired()], choices=[])
    queue_name = DestinationHiddenField()
Пример #14
0
class IvrDestinationForm(BaseForm):
    set_value_template = '{ivr_name}'

    ivr_id = SelectField(l_('IVR'), validators=[InputRequired()], choices=[])
    ivr_name = DestinationHiddenField()
Пример #15
0
class ApplicationCustomDestination(BaseForm):
    set_value_template = '{application_name}'

    application_uuid = SelectField(l_('Application'), [InputRequired()],
                                   choices=[])
    application_name = DestinationHiddenField()