diff --git a/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php b/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php index 7a6c391..351c0df 100644 --- a/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php +++ b/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php @@ -236,6 +236,16 @@ class SmartAssistantService } } + public function getStatus(): array + { + $webhookUrl = $this->getWebhookUrl(); + + return [ + 'enabled' => $webhookUrl !== null, + 'webhookConfigured' => !empty($webhookUrl), + ]; + } + public function getSummary(): array { $alertCalc = $this->injectableFactory->create(AlertCalculator::class);