|
pusnh
|
NULL
|
NULL
|
NULL
|
|
pusnem
|
NULL
|
NULL
|
NULL
|
|
pusne
|
NULL
|
NULL
|
NULL
|
|
pusnah
|
NULL
|
NULL
|
NULL
|
|
pusnah
|
NULL
|
NULL
|
NULL
|
|
pusn
|
NULL
|
NULL
|
NULL
|
|
puskane
|
NULL
|
NULL
|
NULL
|
|
puskame
|
NULL
|
NULL
|
NULL
|
|
puska
|
NULL
|
NULL
|
NULL
|
|
puska
|
NULL
|
NULL
|
NULL
|
|
puska
|
NULL
|
NULL
|
NULL
|
|
push
|
NULL
|
NULL
|
NULL
|
|
pus
|
NULL
|
NULL
|
NULL
|
|
pull
|
NULL
|
NULL
|
NULL
|
|
pull
|
NULL
|
NULL
|
NULL
|
|
pull
|
NULL
|
NULL
|
NULL
|
|
pull
|
NULL
|
NULL
|
NULL
|
|
public function transformReportResults(Collection public function transformReportResults(Collection $automatedReportResults): array
{
$data = [];
foreach ($automatedReportResults as $automatedReportResult) {
/** @var AutomatedReportResult $automatedReportResult */
$report = $automatedReportResult->getReport();
$createdBy = $report->getCreator();
$creator = [
'id' => $createdBy?->getUuid(),
'name' => $createdBy?->getName(),
'email' => $createdBy?->getEmailAddress(),
'photoUrl' => $createdBy?->getPhotoUrl(),
];
$recipients = $this->buildRecipients($report);
$data[] = [
'id' => $automatedReportResult->getUuid(),
'name' => $automatedReportResult->getName(),
'frequency' => $this->transformFrequency($report->getFrequency()),
'recipients' => $recipients,
'recipients' => [
......
|
NULL
|
NULL
|
NULL
|
|
public function transformReportResults(Collection public function transformReportResults(Collection $automatedReportResults): array
{
$data = [];
foreach ($automatedReportResults as $automatedReportResult) {
/** @var AutomatedReportResult $automatedReportResult */
$report = $automatedReportResult->getReport();
$createdBy = $report->getCreator();
$creator = [
'id' => $createdBy?->getUuid(),
'name' => $createdBy?->getName(),
'email' => $createdBy?->getEmailAddress(),
'photoUrl' => $createdBy?->getPhotoUrl(),
];
$recipients = $this->buildRecipients($report);
$data[] = [
'id' => $automatedReportResult->getUuid(),
'name' => $automatedReportResult->getName(),
'frequency' => $this->transformFrequency($report->getFrequency()),
'recipients' => $recipients,
'recipients' => [
......
|
NULL
|
NULL
|
NULL
|
|
public function isUserRecipientOfReport(User $user public function isUserRecipientOfReport(User $user, AutomatedReport $report): bool
{
$recipientIds = array_map('intval', $report->getRecipients()['users'] ?? []);
if (in_array($user->getId(), $recipientIds, true)) {
return true;
}
if ($report->isAskJiminnyReport()) {
$groupId = $user->getGroupId();
if ($groupId !== null && in_array($groupId, $report->getGroups(), true)) {
return true;
}
}
return false;
}...
|
NULL
|
NULL
|
NULL
|
|
public function isUserRecipientOfReport(User $user public function isUserRecipientOfReport(User $user, AutomatedReport $report): bool
{
$recipientIds = array_map('intval', $report->getRecipients()['users'] ?? []);
if (in_array($user->getId(), $recipientIds, true)) {
return true;
}
if ($report->isAskJiminnyReport()) {
$groupId = $user->getGroupId();
if ($groupId !== null && in_array($groupId, $report->getGroups(), true)) {
return true;
}
}
return false;
}...
|
NULL
|
NULL
|
NULL
|
|
public function isUserRecipientOfReport(User $user public function isUserRecipientOfReport(User $user, AutomatedReport $report): bool
{
$recipientIds = array_map('intval', $report->getRecipients()['users'] ?? []);
if (in_array($user->getId(), $recipientIds, true)) {
return true;
}
if ($report->isAskJiminnyReport()) {
$groupId = $user->getGroupId();
if ($groupId !== null && in_array($groupId, $report->getGroups(), true)) {
return true;
}
}
return false;
}...
|
NULL
|
NULL
|
NULL
|
|
public function isUserRecipientOfReport(User $user public function isUserRecipientOfReport(User $user, AutomatedReport $report): bool
{
$recipientIds = array_map('intval', $report->getRecipients()['users'] ?? []);
if (in_array($user->getId(), $recipientIds, true)) {
return true;
}
if ($report->isAskJiminnyReport()) {
$groupId = $user->getGroupId();
if ($groupId !== null && in_array($groupId, $report->getGroups(), true)) {
return true;
}
}
return false;
}...
|
NULL
|
NULL
|
NULL
|
|
public function getPlaybook(): ?Playbook
|
NULL
|
NULL
|
NULL
|
|
public function getPlaybook(): ?Playbook
|
NULL
|
NULL
|
NULL
|
|
public function getPaginatedUserReports(
U public function getPaginatedUserReports(
User $user,
ReportSort $sort,
ReportSortDirection $sortDirection,
int $resultsPerPage,
int $page,
?Carbon $fromDate,
?Carbon $toDate,
array $teamIds,
array $reportTypes,
?string $name,
): LengthAwarePaginator {
$query = AutomatedReportResult::query()
->whereNotNull('automated_report_results.generated_at')
->join('automated_reports', 'automated_report_results.report_id', '=', 'automated_reports.id')
->where(fn (Builder $q) => $this->applyUserAccessScope($q, $user))
->orderByRaw("$sort->value COLLATE utf8mb4_unicode_ci {$sortDirection->value}")
->select('automated_report_results.*')
->with('report.team');
if ($fromDate !== null && $toDate !== null) {
$query......
|
NULL
|
NULL
|
NULL
|
|
public function getPaginatedUserReports(
U public function getPaginatedUserReports(
User $user,
ReportSort $sort,
ReportSortDirection $sortDirection,
int $resultsPerPage,
int $page,
?Carbon $fromDate,
?Carbon $toDate,
array $teamIds,
array $reportTypes,
?string $name,
): LengthAwarePaginator {
$query = AutomatedReportResult::query()
->whereNotNull('automated_report_results.generated_at')
->join('automated_reports', 'automated_report_results.report_id', '=', 'automated_reports.id')
->where(fn (Builder $q) => $this->applyUserAccessScope($q, $user))
->orderByRaw("$sort->value COLLATE utf8mb4_unicode_ci {$sortDirection->value}")
->select('automated_report_results.*')
->with('report.team');
if ($fromDate !== null && $toDate !== null) {
$query......
|
NULL
|
NULL
|
NULL
|
|
public function getPaginatedUserReports(
U public function getPaginatedUserReports(
User $user,
ReportSort $sort,
ReportSortDirection $sortDirection,
int $resultsPerPage,
int $page,
?Carbon $fromDate,
?Carbon $toDate,
array $teamIds,
array $reportTypes,
?string $name,
): LengthAwarePaginator {
$query = AutomatedReportResult::query()
->whereNotNull('automated_report_results.generated_at')
->join('automated_reports', 'automated_report_results.report_id', '=', 'automated_reports.id')
->where(fn (Builder $q) => $this->applyUserAccessScope($q, $user))
->orderByRaw("$sort->value COLLATE utf8mb4_unicode_ci {$sortDirection->value}")
->select('automated_report_results.*')
->with('report.team');
if ($fromDate !== null && $toDate !== null) {
$query......
|
NULL
|
NULL
|
NULL
|
|
public function getPaginatedUserReports(
U public function getPaginatedUserReports(
User $user,
ReportSort $sort,
ReportSortDirection $sortDirection,
int $resultsPerPage,
int $page,
?Carbon $fromDate,
?Carbon $toDate,
array $teamIds,
array $reportTypes,
?string $name,
): LengthAwarePaginator {
$query = AutomatedReportResult::query()
->whereNotNull('automated_report_results.generated_at')
->join('automated_reports', 'automated_report_results.report_id', '=', 'automated_reports.id')
->where(fn (Builder $q) => $this->applyUserAccessScope($q, $user))
->orderByRaw("$sort->value COLLATE utf8mb4_unicode_ci {$sortDirection->value}")
->select('automated_report_results.*')
->with('report.team');
if ($fromDate !== null && $toDate !== null) {
$query......
|
NULL
|
NULL
|
NULL
|
|
public function countUserReports(User $user): int
public function countUserReports(User $user): int
{
return AutomatedReportResult::query()
->whereNotNull('generated_at')
->whereNotNull('sent_at')
->whereHas('report', function ($q) use ($user) {
$q->where('team_id', $user->getTeamId())
->whereJsonContains('recipients->users', $user->getId());
})
->count();
}...
|
NULL
|
NULL
|
NULL
|
|
public function countUserReports(User $user): int
public function countUserReports(User $user): int
{
return AutomatedReportResult::query()
->whereNotNull('generated_at')
->whereNotNull('sent_at')
->whereHas('report', function ($q) use ($user) {
$q->where('team_id', $user->getTeamId())
->whereJsonContains('recipients->users', $user->getId());
})
->count();
}...
|
NULL
|
NULL
|
NULL
|
|
public function calculateFromAndToDatePeriod(
public function calculateFromAndToDatePeriod(
string $frequency,
?Carbon $fromDate = null,
?Carbon $toDate = null
): array {
if ($frequency === self::FREQUENCY_ONE_OFF) {
return [
'fromDate' => $fromDate,
'toDate' => $toDate,
];
}
$now = Carbon::now();
return match ($frequency) {
self::FREQUENCY_DAILY => [
'fromDate' => $now->copy()->subDay()->startOfDay(),
'toDate' => $now->copy()->subDay()->endOfDay(),
],
self::FREQUENCY_WEEKLY => [
'fromDate' => $now->copy()->subWeeks(1)->startOfDay(),
'toDate' => $now->copy()->subDay()->endOfDay(),
],
self::FREQUENCY_MONTHLY => [
'fromDate' => $now->copy()->subMonths(1)->startOfDay(),
'toDate' => $now->copy()->subDay()->endOfDay(),
],
self::FREQUENCY_QU......
|
NULL
|
NULL
|
NULL
|
|
public function calculateFromAndToDatePeriod(
public function calculateFromAndToDatePeriod(
string $frequency,
?Carbon $fromDate = null,
?Carbon $toDate = null
): array {
if ($frequency === self::FREQUENCY_ONE_OFF) {
return [
'fromDate' => $fromDate,
'toDate' => $toDate,
];
}
$now = Carbon::now();
return match ($frequency) {
self::FREQUENCY_DAILY => [
'fromDate' => $now->copy()->subDay()->startOfDay(),
'toDate' => $now->copy()->subDay()->endOfDay(),
],
self::FREQUENCY_WEEKLY => [
'fromDate' => $now->copy()->subWeeks(1)->startOfDay(),
'toDate' => $now->copy()->subDay()->endOfDay(),
],
self::FREQUENCY_MONTHLY => [
'fromDate' => $now->copy()->subMonths(1)->startOfDay(),
'toDate' => $now->copy()->subDay()->endOfDay(),
],
self::FREQUENCY_QU......
|
NULL
|
NULL
|
NULL
|
|
pu
|
NULL
|
NULL
|
NULL
|
|
pu
|
NULL
|
NULL
|
NULL
|
|
pu
|
NULL
|
NULL
|
NULL
|
|
ps aux | grep screenpipe | grep -v grep
|
NULL
|
NULL
|
NULL
|
|
ps aux | grep screenpipe
|
NULL
|
NULL
|
NULL
|
|
ps aux | grep screenpipe
|
NULL
|
NULL
|
NULL
|
|
ps are used
|
NULL
|
NULL
|
NULL
|
|
ps
|
NULL
|
NULL
|
NULL
|
|
prsot
|
NULL
|
NULL
|
NULL
|
|
prowerki
|
NULL
|
NULL
|
NULL
|
|
provioders
|
NULL
|
NULL
|
NULL
|
|
provioders
|
NULL
|
NULL
|
NULL
|
|
providers
|
NULL
|
NULL
|
NULL
|
|
provider =
|
NULL
|
NULL
|
NULL
|
|
provider
|
NULL
|
NULL
|
NULL
|
|
provider
|
NULL
|
NULL
|
NULL
|
|
provide
|
NULL
|
NULL
|
NULL
|