Beispiel #1
0
    def load(self, dependencies):
        core = dependencies['flask']

        EntityListingView.service = EntityService()
        EntityListingView.register(entity, route_base='/entities_listing')

        register_listing_url('available_entity',
                             'entity.EntityListingView:list_entities')

        core.register_blueprint(entity)
Beispiel #2
0
    def load(self, dependencies):
        core = dependencies['flask']

        LineView.service = LineService()
        LineView.register(line, route_base='/lines')
        register_flaskview(line, LineView)

        LineListingView.service = LineService()
        LineListingView.register(line, route_base='/lines_listing')

        register_listing_url('line', 'line.LineListingView:list_json')

        core.register_blueprint(line)
Beispiel #3
0
    def load(self, dependencies):
        core = dependencies['flask']

        ScheduleView.service = ScheduleService()
        ScheduleView.register(schedule, route_base='/schedules')
        register_flaskview(schedule, ScheduleView)

        ScheduleListingView.service = ScheduleService()
        ScheduleListingView.register(schedule, route_base='/schedules_listing')

        register_listing_url('schedule', 'schedule.ScheduleListingView:list_json')

        core.register_blueprint(schedule)
    def load(self, dependencies):
        core = dependencies['flask']

        OutcallView.service = OutcallService()
        OutcallView.register(outcall, route_base='/outcalls')
        register_flaskview(outcall, OutcallView)

        OutcallDestinationView.service = OutcallService()
        OutcallDestinationView.register(outcall,
                                        route_base='/outcall_destination')

        register_listing_url('outcall',
                             'outcall.OutcallDestinationView:list_json')

        core.register_blueprint(outcall)
Beispiel #5
0
    def load(self, dependencies):
        core = dependencies['flask']

        GroupView.service = GroupService()
        GroupView.register(group, route_base='/groups')
        register_flaskview(group, GroupView)

        GroupDestinationView.service = GroupService()
        GroupDestinationView.register(group, route_base='/group_destination')

        register_destination_form('group', 'Group', GroupDestinationForm)
        register_funckey_destination_form('group', l_('Group'),
                                          GroupFuncKeyDestinationForm)
        register_listing_url('group', 'group.GroupDestinationView:list_json')

        core.register_blueprint(group)
Beispiel #6
0
    def load(self, dependencies):
        core = dependencies['flask']

        CallPermissionView.service = CallPermissionService()
        CallPermissionView.register(call_permission,
                                    route_base='/callpermissions')
        register_flaskview(call_permission, CallPermissionView)

        CallPermissionListingView.service = CallPermissionService()
        CallPermissionListingView.register(
            call_permission, route_base='/callpermissions_listing')

        register_listing_url(
            'callpermission',
            'call_permission.CallPermissionListingView:list_json')

        core.register_blueprint(call_permission)
    def load(self, dependencies):
        core = dependencies['flask']

        VoicemailView.service = VoicemailService()
        VoicemailView.register(voicemail, route_base='/voicemails')
        register_flaskview(voicemail, VoicemailView)

        VoicemailDestinationView.service = VoicemailService()
        VoicemailDestinationView.register(voicemail,
                                          route_base='/voicemails_listing')

        register_destination_form('voicemail', l_('Voicemail'),
                                  VoicemailDestinationForm)

        register_listing_url('voicemail',
                             'voicemail.VoicemailDestinationView:list_json')

        core.register_blueprint(voicemail)
    def load(self, dependencies):
        core = dependencies['flask']

        SoundView.service = SoundService()
        SoundView.register(sound, route_base='/sound')
        register_flaskview(sound, SoundView)

        SoundFileView.service = SoundService()
        SoundFileView.register(sound, route_base='/sound_files')
        register_flaskview(sound, SoundFileView)

        SoundListingView.service = SoundService()
        SoundListingView.register(sound, route_base='/sound_listing')

        register_destination_form('sound', l_('Sound'), SoundDestinationForm)

        register_listing_url('sound', 'sound.SoundListingView:list_json')

        core.register_blueprint(sound)
    def load(self, dependencies):
        core = dependencies['flask']

        CallFilterView.service = CallFilterService()
        CallFilterView.register(call_filter, route_base='/callfilters')
        register_flaskview(call_filter, CallFilterView)

        CallFilterListingView.service = CallFilterService()
        CallFilterListingView.register(call_filter,
                                       route_base='/callfilters_listing')

        CallFilterListingUserSurrogatesView.service = CallFilterService()
        CallFilterListingUserSurrogatesView.register(
            call_filter, route_base='/callfilters_listing_surrogates')

        register_listing_url('call_filter',
                             'call_filter.CallFilterListingView:list_json')
        register_listing_url(
            'user_surrogates',
            'call_filter.CallFilterListingUserSurrogatesView:list_json')

        core.register_blueprint(call_filter)
    def load(self, dependencies):
        core = dependencies['flask']

        ExtensionView.service = ExtensionService()
        ExtensionView.register(extension, route_base='/extensions')
        register_flaskview(extension, ExtensionView)

        ExtensionFeaturesView.service = ExtensionFeaturesService()
        ExtensionFeaturesView.register(extension, route_base='/extensions_features')
        register_flaskview(extension, ExtensionFeaturesView)

        ExtensionListingView.service = ExtensionService()
        ExtensionListingView.register(extension, route_base='/extensions_listing')

        register_destination_form('extension', l_('Extension'), ExtensionDestinationForm)

        register_listing_url('available_extension_incall', 'extension.ExtensionListingView:list_available_exten_incall')
        register_listing_url('available_extension_group', 'extension.ExtensionListingView:list_available_exten_group')
        register_listing_url('available_extension_user', 'extension.ExtensionListingView:list_available_exten_user')
        register_listing_url('available_extension_queue', 'extension.ExtensionListingView:list_available_exten_queue')
        register_listing_url('available_extension_conference', 'extension.ExtensionListingView:list_available_exten_conference')

        core.register_blueprint(extension)
Beispiel #11
0
    def load(self, dependencies):
        core = dependencies['flask']

        UserView.service = UserService()
        UserView.register(user, route_base='/users')
        register_flaskview(user, UserView)

        UserDestinationView.service = UserService()
        UserDestinationView.register(user, route_base='/users_listing')

        register_destination_form('user', l_('User'), UserDestinationForm)
        register_funckey_destination_form('user', l_('User'),
                                          UserFuncKeyDestinationForm)

        register_listing_url('user', 'user.UserDestinationView:list_json')
        register_listing_url('uuid_user',
                             'user.UserDestinationView:uuid_list_json')

        CtiProfilesView.service = CtiService()
        CtiProfilesView.register(user, route_base='/cti_listing')

        register_listing_url('cti_profile', 'user.CtiProfilesView:list_json')

        core.register_blueprint(user)