feat: Implement initial agent integration management system with role-based dashboards, status tracking, and activity timelines.
This commit is contained in:
@@ -56,7 +56,7 @@ class IntegrationTemplateSeeder extends Seeder
|
||||
'label' => 'Attribution Badge',
|
||||
'is_mandatory' => true,
|
||||
]);
|
||||
} elseif ($service->name === 'ParcAuto') {
|
||||
} elseif ($service->name === 'Parc Auto') {
|
||||
$template->serviceItems()->create([
|
||||
'service_id' => $service->id,
|
||||
'label' => 'Création compte vehicule',
|
||||
@@ -64,5 +64,42 @@ class IntegrationTemplateSeeder extends Seeder
|
||||
]);
|
||||
}
|
||||
}
|
||||
/* Offboarding Template */
|
||||
$offboardingTemplate = IntegrationTemplate::firstOrCreate([
|
||||
'name' => 'Sortie Standard',
|
||||
'is_active' => true,
|
||||
]);
|
||||
|
||||
foreach ($services as $service) {
|
||||
if ($service->name === 'DSI') {
|
||||
$offboardingTemplate->serviceItems()->create([
|
||||
'service_id' => $service->id,
|
||||
'label' => 'Désactivation compte AD',
|
||||
'is_mandatory' => true,
|
||||
]);
|
||||
$offboardingTemplate->serviceItems()->create([
|
||||
'service_id' => $service->id,
|
||||
'label' => 'Restitution Ordinateur',
|
||||
'is_mandatory' => true,
|
||||
]);
|
||||
$offboardingTemplate->serviceItems()->create([
|
||||
'service_id' => $service->id,
|
||||
'label' => 'Désactivation email',
|
||||
'is_mandatory' => true,
|
||||
]);
|
||||
} elseif ($service->name === 'Batiment') {
|
||||
$offboardingTemplate->serviceItems()->create([
|
||||
'service_id' => $service->id,
|
||||
'label' => 'Restitution Badge',
|
||||
'is_mandatory' => true,
|
||||
]);
|
||||
} elseif ($service->name === 'Parc Auto') {
|
||||
$offboardingTemplate->serviceItems()->create([
|
||||
'service_id' => $service->id,
|
||||
'label' => 'Désactivation compte vehicule',
|
||||
'is_mandatory' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user