mirror of
https://gh.wpcy.net/https://github.com/hayBIT/freescout2ant.git
synced 2026-07-15 07:13:10 +08:00
Move all business logic from AmeiseController into CrmService: - getCrmUsers/getFSUsers: remove duplicates from controller, keep in CrmService (now return data arrays instead of HTTP responses) - Contract transformation: extract to CrmService::getContractsWithDetails() - Archive orchestration: extract to CrmService::archiveConversationFromRequest() - DB queries: extract to CrmService::getArchivedContracts() - ArchiveThreadsJob: use CrmService instead of direct sub-service instantiation Controller now only handles HTTP request/response, delegating all logic to CrmService. https://claude.ai/code/session_01Lbqz1JQAYAwFk6EamodxHU |
||
|---|---|---|
| .. | ||
| .gitkeep | ||
| AmeiseController.php | ||
| AmeiseModuleController.php | ||