-
Notifications
You must be signed in to change notification settings - Fork 52
/
Kernel.php
74 lines (67 loc) · 3.12 KB
/
Kernel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Modules\HR\Console\JobExpiredEmailToHr;
use Modules\Project\Console\EndedProject;
use Modules\Project\Console\FixedBudgetProject;
use Modules\Project\Console\GoogleChat\NotificationToProjectTeamMembersToUpdateEffortOnGoogleChat;
use Modules\Project\Console\SendEffortSummaryCommand;
use Modules\Project\Console\SyncEffortsheet;
use Modules\Project\Console\ZeroEffortInProject;
use Modules\Project\Console\ZeroExpectedHourInProject;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
SyncEffortsheet::class,
SendEffortSummaryCommand::class,
ZeroEffortInProject::class,
ZeroExpectedHourInProject::class,
EndedProject::class,
FixedBudgetProject::class,
NotificationToProjectTeamMembersToUpdateEffortOnGoogleChat::class,
JobExpiredEmailToHr::class,
// QuarterlyReviewSystemForEmployee::class, //This line will be commented for some time. After the feature is completed, it will be uncommented.
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
*
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('application:no-show')->dailyAt('21:00');
$schedule->command('application:send-interview-reminders')->dailyAt('08:00');
$schedule->command('sync:effortsheet')->weekdays()->timezone(config('constants.timezone.indian'))->hourlyAt(25);
$schedule->command('effort-summary:send')->weekdays()->timezone(config('constants.timezone.indian'))->at('21:00');
$schedule->command('hr:check-follow-ups')->daily();
$schedule->command('hr:send-follow-up-mail')->dailyAt('08:00');
$schedule->command('hr:message-for-email-verified')->dailyAt('7:00');
$schedule->command('hr:send-job-expired-email-to-hr')->dailyAt('11:00');
$schedule->command('mapping-of-jobs-and-hr-rounds');
$schedule->command('project:fixed-budget-project');
$schedule->command('invoice:send-unpaid-invoice-list')->weekly()->mondays()->at('09:00');
$schedule->command('project:zero-effort-in-project')->weekly()->mondays()->at('09:00');
$schedule->command('project:ended-project')->dailyAt('09:00');
$schedule->command('project:zero-expected-hours-in-project')->weekly()->tuesdays()->at('11:00');
$schedule->command('project:reminder-for-effortsheet-lock')->dailyAt('21:00');
// $schedule->command('employee:quarterly-review-system-for-employee')->quarterly(); //This command generates assessments corresponding to each employee. Currently this feature is in-progress and will be released shortly.
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__ . '/Commands');
require base_path('routes/console.php');
}
}