if (superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;
}
/*
* This file is part of SchoolApps.
*
* SchoolApps is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* SchoolApps is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SchoolApps. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* This file is part of SchoolApps.
*
* SchoolApps is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* SchoolApps is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SchoolApps. If not, see <http://www.gnu.org/licenses/>.
*/
varOPTIONS_ONLINE_COMMON=["Portal ist nicht erreichbar","Fehlermeldung(en) tauchen auf","Anmeldung funktioniert nicht","Zugangsdaten vergessen"];
varBASIC_OPTIONS=[{
id:"infrastructureIssues",
name:"Infrastrukturprobleme",
options:[{
id:"presentationDeviceIssue",
name:"Problem mit Beamer/Fernseher",
helpText:"Bitte wähle aus, wo der Beamer bzw. Fernseher steht!"
},{
id:"printerIssue",
name:"Problem mit einem Drucker",
helpText:"Bitte nenne uns in der Beschreibung das Modell des Druckers, damit wir genau wissen, welchen Drucker du meinst!"
},{
id:"subMonitorIssue",
name:"Vertretungsplanmonitor funktioniert nicht",
helpText:"Nenne uns bitte in der Beschreibung ggf. weitere Informationen!"
},{
id:"aulaIssue",
name:"Problem in der Aula (→Technik-AG)",
helpText:"Deine Anfrage wird direkt an die Technik-AG weitergeleitet."
},{
id:"wlanIssue",
name:"Probleme mit dem Schul-WLAN (kath-schueler/lehrer)",
helpText:"Nenne uns bitte unbedingt auch den Ort in der Schule, an dem das Problem auftrat."
}]
},{
id:"onlineIssues",
name:"Webservices",
options:[{
id:"forum",
name:"Forum (ILIAS)",
options:OPTIONS_ONLINE_COMMON.concat(["Ich kann meinen Kurs bzw. Klasse nicht sehen/finden.","Ich kann keine Dateien hochladen.","Es taucht eine weiße Seite auf.","Ich habe falsche Informationen gefunden."])
},{
id:"mail",
name:"Webmail/Mailserver",
options:OPTIONS_ONLINE_COMMON.concat(["Mein E-Mail-Programm funktioniert mit meiner …@katharineum.de-Adresse nicht.","Ich bekomme keine E-Mails bzw. kann keine senden."])
},{
id:"schoolapps",
name:"SchoolApps",
options:OPTIONS_ONLINE_COMMON.concat(["Der Stundenplan/Vertretungsplan ist falsch.","Ich bin der falschen Klasse zugeordnet.","Ich habe einen Fehler gefunden."])
},{
id:"subOrMenu",
name:"Vertretungsplan/Speiseplan",
options:OPTIONS_ONLINE_COMMON.concat(["Kein Vertretungsplan zu sehen","Falscher Vertretungsplan zu sehen","Kein Speiseplan zu sehen","Falscher Speiseplan zu sehen"])
},{
id:"website",
name:"Website (katharineum-zu-luebeck.de)",
options:["Website nicht erreichbar","Falsche Inhalte vorhanden","Typografiefehler"]
},{
id:"otherOnlineIssue",
name:"Andere Anwendung"
}]
},{
id:"deviceIssues",
name:"Probleme am Computer/Notebook",
options:[{
id:"loginIssue",
name:"Anmeldeproblem/Passwort vergessen"
},{
id:"internetIssue",
name:"Internetproblem"
},{
id:"noReaction",
name:"Programm-/Computerabsturz (keine Reaktion)"
},{
id:"powerOffNoBoot",
name:"Computer/Notebook ist ausgegangen/startet nicht"
for (var_iterator=BASIC_OPTIONS[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){
varcategory=_step.value;
// console.log(category);
var_iteratorNormalCompletion2=true;
var_didIteratorError2=false;
var_iteratorError2=undefined;
try{
for (var_iterator2=category.options[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){
varopt=_step2.value;
// console.log(opt);
if (opt.id===option){
returncategory.id;
}
}
}catch (err){
_didIteratorError2=true;
_iteratorError2=err;
}finally{
try{
if (!_iteratorNormalCompletion2&&_iterator2.return){
_iterator2.return();
}
}finally{
if (_didIteratorError2){
throw_iteratorError2;
}
}
}
}
}catch (err){
_didIteratorError=true;
_iteratorError=err;
}finally{
try{
if (!_iteratorNormalCompletion&&_iterator.return){
_iterator.return();
}
}finally{
if (_didIteratorError){
throw_iteratorError;
}
}
}
}
functiongetOption(option){
var_iteratorNormalCompletion3=true;
var_didIteratorError3=false;
var_iteratorError3=undefined;
try{
for (var_iterator3=BASIC_OPTIONS[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){
varcategory=_step3.value;
var_iteratorNormalCompletion4=true;
var_didIteratorError4=false;
var_iteratorError4=undefined;
try{
for (var_iterator4=category.options[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){
varopt=_step4.value;
if (opt.id===option){
returnopt;
}
}
}catch (err){
_didIteratorError4=true;
_iteratorError4=err;
}finally{
try{
if (!_iteratorNormalCompletion4&&_iterator4.return){
_iterator4.return();
}
}finally{
if (_didIteratorError4){
throw_iteratorError4;
}
}
}
}
}catch (err){
_didIteratorError3=true;
_iteratorError3=err;
}finally{
try{
if (!_iteratorNormalCompletion3&&_iterator3.return){