PageSourceSearch

https://service-sportprogesundheit.de/js/certificationAuthority/em…ificationAuthorityEmployeeOwnCreate.ctrl.js

js service-sportprogesundheit.de collected 2026-10-07 22:33:43 UTC 3,063 bytes, 67 lines download raw bytes

1(function () {
2    'use strict';
3    app.controller('CertificationAuthorityEmployeeOwnCreateCtrl', CertificationAuthorityEmployeeOwnCreateCtrl);
4
5    CertificationAuthorityEmployeeOwnCreateCtrl.$inject = ['$state', '$stateParams', 'CertificationAuthorityEmployee', 'User', 'Notifications', 'Utils'];
6
7    function CertificationAuthorityEmployeeOwnCreateCtrl($state, $stateParams, CertificationAuthorityEmployee, User, Notifications, Utils) {
8
9        /* jshint validthis:true */
10        var vm = this;
11        vm.getCertificationAuthorityEmployeeTemplate = getCertificationAuthorityEmployeeTemplate;
12        vm.createCertificateAuthority = createCertificateAuthority;
13
14        activate();
15
16        function activate() {
17            vm.getCertificationAuthorityEmployeeTemplate();
18        }
19        function getCertificationAuthorityEmployeeTemplate() {
20            Notifications.showLoading();
21            CertificationAuthorityEmployee.getCertificationAuthorityEmployeeTemplate().then(function (result) {
22                vm.employee = result;
23                User.getUserTitles().then(function (result) {
24                    vm.titles = result;
25                    User.getUserAcademicTitles().then(function (result) {
26                        vm.academicTitles = result;
27                        CertificationAuthorityEmployee.
28                        getCertificationAuthorityEmployeeTypes().then(function (result) {
29                            vm.roles = result;
30                            CertificationAuthorityEmployee.getChairman(vm.ca).then(function (result) {
31                                vm.chairman = result.data;
32                            }, function (error) {
33                                Utils.concatError(error);
34                            });
35                        }, function (error) {
36                            Utils.concatError(error);
37                        });
38                    }, function (error) {
39                        Utils.concatError(error);
40                    });
41                }, function (error) {
42                    Utils.concatError(error);
43                });
44            }, function (error) {
45                Utils.concatError(error);
46            }).finally(function () {
47                Notifications.hideLoading();
48            });
49        }
50
51        function createCertificateAuthority(isValid) {
52            if (isValid) {
53                Notifications.hideLoading();
54                CertificationAuthorityEmployee.createCertificateAuthorityOwnEmployee(vm.employee).then(function (result) {
55                    Notifications.addSuccessMsg(result.Name, "Benutzer Erfolgreich erstellt!");
56                    $state.go('zertifizierungsstellen-mitarbeiter');
57                }, function (error) {
58                    Utils.concatError(error);
59                }).finally(function () {
60                    Notifications.hideLoading();
61                });
62            } else {
63                Notifications.addErrorMsg('', "Eines der Felder enthält ungültige Daten.");
64            }
65        }
66    }
67})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.