Files
fewo-stommer/config/communication.php

32 lines
1.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
use App\Enums\Medium;
use App\Enums\MessageEffect as E;
use App\Enums\MessageIntent as I;
/*
|--------------------------------------------------------------------------
| Medium × intent rules (V2.1, docs/Prozessarchitektur/V2.1/02 §6)
|--------------------------------------------------------------------------
| The ceiling. A landlord may only narrow it (tenants.communication_rules), never widen it. A message never creates a
| case, reservation, offer or booking – no effect does. Without a verified assignment, effects that act on a case are dropped.
*/
return [
'media' => [
Medium::Email->value => ['active' => true, 'consent_required' => false],
Medium::Form->value => ['active' => true, 'consent_required' => false],
Medium::WhatsApp->value => ['active' => false, 'consent_required' => true],
Medium::Chat->value => ['active' => false, 'consent_required' => false],
],
/** Effects per intent. Anything not listed means: review. */
'effects' => [
I::GeneralQuestion->value => [E::AnswerInformation, E::Review],
I::StayInquiry->value => [E::HandoffInquiry, E::Review],
I::CaseReply->value => [E::ReportToCase, E::Review],
I::ProvideData->value => [E::ContributeFacts, E::ReportToCase, E::Review],
I::ChangeRequest->value => [E::ReportToCase, E::Review],
I::Unclear->value => [E::Review],
],
];