Major CRM updates: AI Assistant, Court Status API, S3 integration improvements, and extensive file storage system

- Added comprehensive AI Assistant system (aiassist/ directory):
  * Vector search and embedding capabilities
  * Typebot proxy integration
  * Elastic search functionality
  * Message classification and chat history
  * MCP proxy for external integrations

- Implemented Court Status API (GetCourtStatus.php):
  * Real-time court document status checking
  * Integration with external court systems
  * Comprehensive error handling and logging

- Enhanced S3 integration:
  * Improved file backup system with metadata
  * Batch processing capabilities
  * Enhanced error logging and recovery
  * Copy operations with URL fixing

- Added Telegram contact creation API
- Improved error logging across all modules
- Enhanced callback system for AI responses
- Extensive backup file storage with timestamps
- Updated documentation and README files

- File storage improvements:
  * Thousands of backup files with proper metadata
  * Fix operations for broken file references
  * Project-specific backup and recovery systems
  * Comprehensive file integrity checking

Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
This commit is contained in:
Fedor
2025-10-16 11:17:21 +03:00
parent dabcd43a00
commit ac7467f0b4
26580 changed files with 50860 additions and 3261 deletions

0
modules/Vtiger/CRMEntity.php Executable file → Normal file
View File

0
modules/Vtiger/RecordLabelUpdater.php Executable file → Normal file
View File

0
modules/Vtiger/actions/BasicAjax.php Executable file → Normal file
View File

0
modules/Vtiger/actions/DashBoardTab.php Executable file → Normal file
View File

0
modules/Vtiger/actions/Delete.php Executable file → Normal file
View File

0
modules/Vtiger/actions/DeleteAjax.php Executable file → Normal file
View File

0
modules/Vtiger/actions/DeleteImage.php Executable file → Normal file
View File

0
modules/Vtiger/actions/DownloadAttachment.php Executable file → Normal file
View File

0
modules/Vtiger/actions/ExportData.php Executable file → Normal file
View File

0
modules/Vtiger/actions/GetData.php Executable file → Normal file
View File

0
modules/Vtiger/actions/Mass.php Executable file → Normal file
View File

0
modules/Vtiger/actions/MassDelete.php Executable file → Normal file
View File

0
modules/Vtiger/actions/MassSave.php Executable file → Normal file
View File

0
modules/Vtiger/actions/MentionedUsers.php Executable file → Normal file
View File

0
modules/Vtiger/actions/NoteBook.php Executable file → Normal file
View File

0
modules/Vtiger/actions/ProcessDuplicates.php Executable file → Normal file
View File

View File

0
modules/Vtiger/actions/RelatedRecordsAjax.php Executable file → Normal file
View File

0
modules/Vtiger/actions/RelationAjax.php Executable file → Normal file
View File

0
modules/Vtiger/actions/RemoveWidget.php Executable file → Normal file
View File

0
modules/Vtiger/actions/Save.php Executable file → Normal file
View File

0
modules/Vtiger/actions/SaveAjax.php Executable file → Normal file
View File

0
modules/Vtiger/actions/SaveStar.php Executable file → Normal file
View File

0
modules/Vtiger/actions/SaveWidgetPositions.php Executable file → Normal file
View File

0
modules/Vtiger/actions/SaveWidgetSize.php Executable file → Normal file
View File

0
modules/Vtiger/actions/TagCloud.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/CalendarActivities.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/History.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/KeyMetrics.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/MiniList.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/Notebook.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/OverdueActivities.php Executable file → Normal file
View File

0
modules/Vtiger/dashboards/TagCloud.php Executable file → Normal file
View File

0
modules/Vtiger/handlers/CheckDuplicateHandler.php Executable file → Normal file
View File

0
modules/Vtiger/handlers/EmailLookupHandler.php Executable file → Normal file
View File

0
modules/Vtiger/handlers/FieldEventHandler.php Executable file → Normal file
View File

0
modules/Vtiger/handlers/FollowRecordHandler.php Executable file → Normal file
View File

0
modules/Vtiger/handlers/RecordLabelUpdater.php Executable file → Normal file
View File

0
modules/Vtiger/helpers/ShortURL.php Executable file → Normal file
View File

0
modules/Vtiger/helpers/ShowFile.php Executable file → Normal file
View File

0
modules/Vtiger/helpers/Util.php Executable file → Normal file
View File

0
modules/Vtiger/layout_utils.php Executable file → Normal file
View File

0
modules/Vtiger/models/Action.php Executable file → Normal file
View File

0
modules/Vtiger/models/Block.php Executable file → Normal file
View File

0
modules/Vtiger/models/CompanyDetails.php Executable file → Normal file
View File

0
modules/Vtiger/models/CssScript.php Executable file → Normal file
View File

0
modules/Vtiger/models/DashBoard.php Executable file → Normal file
View File

0
modules/Vtiger/models/DetailRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/DetailView.php Executable file → Normal file
View File

0
modules/Vtiger/models/EditRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/EditView.php Executable file → Normal file
View File

0
modules/Vtiger/models/Field.php Executable file → Normal file
View File

0
modules/Vtiger/models/FilterRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/FindDuplicate.php Executable file → Normal file
View File

0
modules/Vtiger/models/Image.php Executable file → Normal file
View File

0
modules/Vtiger/models/JsScript.php Executable file → Normal file
View File

0
modules/Vtiger/models/Link.php Executable file → Normal file
View File

0
modules/Vtiger/models/ListView.php Executable file → Normal file
View File

0
modules/Vtiger/models/MassEditRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/Menu.php Executable file → Normal file
View File

0
modules/Vtiger/models/MenuStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/MiniList.php Executable file → Normal file
View File

0
modules/Vtiger/models/Module.php Executable file → Normal file
View File

0
modules/Vtiger/models/ModuleMeta.php Executable file → Normal file
View File

0
modules/Vtiger/models/Notebook.php Executable file → Normal file
View File

0
modules/Vtiger/models/Paging.php Executable file → Normal file
View File

0
modules/Vtiger/models/QuickCreateRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/RecipientPreference.php Executable file → Normal file
View File

0
modules/Vtiger/models/Record.bak Executable file → Normal file
View File

12
modules/Vtiger/models/Record.php Executable file → Normal file
View File

@@ -1090,14 +1090,14 @@ class Vtiger_Record_Model extends Vtiger_Base_Model {
$queryGenerator->setFields(array('parent_comments', 'createdtime', 'modifiedtime', 'related_to', 'assigned_user_id','channel',
'commentcontent', 'creator', 'id', 'customer', 'reasontoedit', 'userid', 'from_mailconverter', 'is_private', 'customer_email'));
$query = $queryGenerator->getQuery();
$query = $queryGenerator->getQuery();
$query .= " AND vtiger_modcomments.related_to IN (" . generateQuestionMarks($relatedModuleRecordIds)
. ") AND vtiger_modcomments.parent_comments=0 ORDER BY vtiger_crmentity.createdtime DESC LIMIT "
. " $startIndex,$pageLimit";
$query .= " AND vtiger_modcomments.related_to IN (" . generateQuestionMarks($relatedModuleRecordIds)
. ") AND vtiger_modcomments.parent_comments=0 ORDER BY vtiger_crmentity.createdtime DESC LIMIT "
. " $startIndex,$pageLimit";
$db = PearDatabase::getInstance();
$result = $db->pquery($query, $relatedModuleRecordIds);
$db = PearDatabase::getInstance();
$result = $db->pquery($query, $relatedModuleRecordIds);
if ($db->num_fields($result)) {
for ($i = 0; $i < $db->num_rows($result); $i++) {
$rowdata = $db->query_result_rowdata($result, $i);

0
modules/Vtiger/models/RecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/Relation.php Executable file → Normal file
View File

0
modules/Vtiger/models/RelationListView.php Executable file → Normal file
View File

0
modules/Vtiger/models/SummaryRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models/Tag.php Executable file → Normal file
View File

0
modules/Vtiger/models/TooltipView.php Executable file → Normal file
View File

0
modules/Vtiger/models/TrackRecord.php Executable file → Normal file
View File

0
modules/Vtiger/models/Utility.php Executable file → Normal file
View File

0
modules/Vtiger/models/Widget.php Executable file → Normal file
View File

0
modules/Vtiger/models2/Action.php Executable file → Normal file
View File

0
modules/Vtiger/models2/Block.php Executable file → Normal file
View File

0
modules/Vtiger/models2/CompanyDetails.php Executable file → Normal file
View File

0
modules/Vtiger/models2/CssScript.php Executable file → Normal file
View File

0
modules/Vtiger/models2/DashBoard.php Executable file → Normal file
View File

0
modules/Vtiger/models2/DetailRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models2/DetailView.php Executable file → Normal file
View File

0
modules/Vtiger/models2/DetailView2.php Executable file → Normal file
View File

0
modules/Vtiger/models2/EditRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models2/EditView.php Executable file → Normal file
View File

0
modules/Vtiger/models2/Field.php Executable file → Normal file
View File

0
modules/Vtiger/models2/FilterRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models2/FindDuplicate.php Executable file → Normal file
View File

0
modules/Vtiger/models2/Image.php Executable file → Normal file
View File

0
modules/Vtiger/models2/JsScript.php Executable file → Normal file
View File

0
modules/Vtiger/models2/Link.php Executable file → Normal file
View File

0
modules/Vtiger/models2/ListView.php Executable file → Normal file
View File

0
modules/Vtiger/models2/MassEditRecordStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models2/Menu.php Executable file → Normal file
View File

0
modules/Vtiger/models2/MenuStructure.php Executable file → Normal file
View File

0
modules/Vtiger/models2/MiniList.php Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More