Files
P42_UI/app/models/users/applicantModel.js
T
2025-08-27 07:03:09 +00:00

85 lines
2.3 KiB
JavaScript

class applicantModel extends EICModel {
constructor(privileges) {
super('applicant', privileges);
}
getOrganisations() {
let responsePayload = [
{
pic: 12345678,
legalname: 'NightShift.be SNC'
}
];
return (
new Promise((resolve) => {
setTimeout(() => {
resolve(responsePayload);
}, 300);
})
)
}
getOrganisationSummary(pic) {
let responsePayload = {
pic: 12345678,
legalname: 'NightShift.be SNC',
proposals: [
{
id: 14373,
proposalNumber: '190129445',
acronym: 'patchd',
status: 'draft',
type: 'short',
accessRequests: 2,
version: 'legacy1.0'
},
{
id: 99999,
proposalNumber: '999123456',
acronym: 'fastinfra',
status: 'draft',
type: 'short',
accessRequests: 2,
version: '2023'
}
],
coachings: [],
members: [
{
uid: 'fallimi',
firstname: 'Michael',
lastname: 'Fallise',
function: 'Chief Executive Officer',
status: 'active'
},
{
uid: 'steinni',
firstname: 'Nicolas',
lastname: 'Stein',
function: 'Chief Technical Officer',
status: 'active'
},
{
uid: 'schwemi',
firstname: 'Michael',
lastname: 'Schweda',
function: 'Marketing manager',
status: 'pending'
}
],
calendar: []
};
return (
new Promise((resolve) => {
setTimeout(() => {
resolve(responsePayload);
}, 300);
})
)
}
}
app.registerClass('applicantModel', applicantModel);