Files
crm.clientright.ru/modules/Workflow2/manifest.xml
Fedor ac7467f0b4 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.
2025-10-16 11:17:21 +03:00

142 lines
4.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<module>
<type>extension</type>
<version>7.02.17.02</version>
<name>Workflow2</name>
<label>Workflows</label>
<parent>Tools</parent>
<dependencies>
<vtiger_version>7.*</vtiger_version>
</dependencies>
<license>
<file>license.txt</file>
</license>
<events>
<event>
<eventname>vtiger.entity.aftersave</eventname>
<classname>WfEventHandler</classname>
<filename>modules/Workflow2/WfEventHandler.php</filename>
<condition></condition>
</event>
<event>
<eventname>vtiger.entity.beforedelete</eventname>
<classname>WfEventHandler</classname>
<filename>modules/Workflow2/WfEventHandler.php</filename>
<condition></condition>
</event>
</events>
<tables>
<table>
<name>vtiger_wfp_blocks</name>
<sql><![CDATA[
CREATE TABLE IF NOT EXISTS `vtiger_wfp_blocks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`workflow_id` smallint(5) unsigned NOT NULL,
`active` tinyint(3) unsigned NOT NULL,
`text` varchar(128) NOT NULL,
`type` varchar(32) NOT NULL,
`x` mediumint(9) NOT NULL,
`y` mediumint(9) NOT NULL,
`settings` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
]]></sql>
</table>
<table>
<name>vtiger_wfp_connections</name>
<sql><![CDATA[
CREATE TABLE IF NOT EXISTS `vtiger_wfp_connections` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`deleted` tinyint(3) unsigned NOT NULL,
`workflow_id` int(11) NOT NULL,
`source_mode` enum('block','person') NOT NULL,
`source_id` smallint(6) NOT NULL,
`source_key` varchar(32) NOT NULL,
`destination_id` smallint(6) NOT NULL,
`destination_key` varchar(32) NOT NULL,
`last_change` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`last_changed_userid` mediumint(9) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `source_mode` (`source_mode`,`source_id`,`source_key`,`destination_id`,`destination_key`),
KEY `source` (`source_mode`,`source_id`,`source_key`),
KEY `destination_id` (`destination_id`,`destination_key`),
KEY `workflow_id` (`workflow_id`,`deleted`)
) ENGINE=InnoDB;
]]></sql>
</table>
<table>
<name>vtiger_wfp_objects</name>
<sql><![CDATA[
CREATE TABLE IF NOT EXISTS `vtiger_wfp_objects` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`workflow_id` smallint(5) unsigned NOT NULL,
`x` mediumint(8) NOT NULL,
`y` mediumint(8) NOT NULL,
`module_name` varchar(32) NOT NULL,
`crmid` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `workflow_id` (`workflow_id`)
) ENGINE=InnoDB ;
]]></sql>
</table>
<table>
<name>vtiger_wf_log</name>
<sql><![CDATA[
CREATE TABLE IF NOT EXISTS `vtiger_wf_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`workflow_id` smallint(5) unsigned NOT NULL,
`execID` varchar(32) NOT NULL,
`blockID` mediumint(8) unsigned NOT NULL,
`lastBlockID` mediumint(8) unsigned NOT NULL,
`lastBlockOutput` varchar(16) NOT NULL,
`crmid` int(10) unsigned NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`durationms` int(11) unsigned NOT NULL,
`data` BLOB NOT NULL,
PRIMARY KEY (`id`),
KEY `crmid` (`crmid`,`workflow_id`,`blockID`)
) ENGINE=InnoDB;
]]></sql>
</table>
<table>
<name>vtiger_wf_queue</name>
<sql><![CDATA[
CREATE TABLE IF NOT EXISTS `vtiger_wf_queue` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`locked` tinyint(4) NOT NULL,
`crmid` int(10) unsigned NOT NULL,
`workflow_id` int(10) unsigned NOT NULL,
`execID` varchar(32) NOT NULL,
`environment` TEXT NOT NULL,
`execution_user` mediumint(9) NOT NULL,
`block_id` int(10) unsigned NOT NULL,
`checkMode` enum('dynamic','static') NOT NULL,
`nextStepTime` datetime NOT NULL,
`nextStepField` varchar(64) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `crmid` (`crmid`,`workflow_id`,`block_id`),
KEY `nextStep` (`nextStepField`)
) ENGINE=InnoDB;
]]></sql>
</table>
<table>
<name>vtiger_wf_settings</name>
<sql><![CDATA[
CREATE TABLE IF NOT EXISTS `vtiger_wf_settings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`active` tinyint(4) NOT NULL,
`title` varchar(128) NOT NULL,
`module_name` varchar(32) NOT NULL,
`execution_user` smallint(5) unsigned NOT NULL,
`condition` tinyint(4) NOT NULL DEFAULT '2',
`simultan` tinyint(4) NOT NULL DEFAULT '2',
`revision` int(10) unsigned NOT NULL DEFAULT '1',
`modify` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
]]></sql>
</table>
</tables>
</module>