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()
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()
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)
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'))
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()
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()
class SwitchboardDestinationForm(BaseForm): set_value_template = '{switchboard_name}' switchboard_uuid = SelectField(l_('Switchboard'), [InputRequired()], choices=[]) switchboard_name = DestinationHiddenField()
class ConferenceDestinationForm(BaseForm): set_value_template = '{conference_name}' conference_id = SelectField('Conference', choices=[], validators=[InputRequired()]) conference_name = DestinationHiddenField()
class GroupFuncKeyDestinationForm(BaseForm): set_value_template = '{group_name}' group_id = SelectField(l_('Group'), [InputRequired()], choices=[]) group_name = DestinationHiddenField()
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()
class UserFuncKeyDestinationForm(BaseForm): set_value_template = '{user_firstname} {user_lastname}' user_id = SelectField(l_('User'), [InputRequired()], choices=[]) user_firstname = DestinationHiddenField() user_lastname = DestinationHiddenField()
class ConferenceFuncKeyDestinationForm(BaseForm): set_value_template = '{conference_name}' conference_id = SelectField(l_('Conference'), [InputRequired()], choices=[]) conference_name = DestinationHiddenField()
class QueueFuncKeyDestinationForm(BaseForm): set_value_template = '{queue_name}' queue_id = SelectField(l_('Queue'), [InputRequired()], choices=[]) queue_name = DestinationHiddenField()
class IvrDestinationForm(BaseForm): set_value_template = '{ivr_name}' ivr_id = SelectField(l_('IVR'), validators=[InputRequired()], choices=[]) ivr_name = DestinationHiddenField()
class ApplicationCustomDestination(BaseForm): set_value_template = '{application_name}' application_uuid = SelectField(l_('Application'), [InputRequired()], choices=[]) application_name = DestinationHiddenField()