Files
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

62 lines
2.6 KiB
PHP

<?php
class VDNotifierProConfig {
public $generalSetting, $usersSetting, $moduleSetting;
function __construct() {
$this->ModuleSetting = $this->getModuleSetting();
$this->GeneralSetting = Zend_Json::decode($this->getGeneralSetting()->Setting);
$this->UsersSetting = Zend_Json::decode($this->getUsersSetting()->Setting);
}
public function getModuleSetting() {
if (!is_file('modules/VDNotifierPro/Settings/ModuleSetting.php')) {
include_once 'vtlib/Vtiger/Module.php';
include_once 'modules/VDNotifierPro/helpers/GenerateSetting.php';
$Modules = Vtiger_Module_Model::getAll(array(0,2));
$generate = new VDNotifierProGenerateSetting();
if (!$generate->DefaultModuleSetting($Modules)){
$response = new Vtiger_Response();
$response->setError('201',vtranslate('ERROR_GENERAL_SETTING_CREATE', 'VDNotifierPro'));
$response->emit();
exit();
}
}
include_once 'modules/VDNotifierPro/Settings/ModuleSetting.php';
$module = (array)new VDNotifierProModuleSetting();
return $module;
}
public function getUsersSetting() {
global $current_user;
$fileName = 'modules/VDNotifierPro/Settings/UsersSetting_'.$current_user->id.'.php';
if (!is_file($fileName)) {
include_once 'modules/VDNotifierPro/helpers/GenerateSetting.php';
$generate = new VDNotifierProGenerateSetting();
if (!$generate->DefaultUsersSetting()){
$response = new Vtiger_Response();
$response->setError('201',vtranslate('ERROR_GENERAL_USERS_CREATE', 'VDNotifierPro'));
$response->emit();
exit();
}
}
include_once $fileName;
$ClassName = 'VDNotifierProUsersSetting_'.$current_user->id;
return new $ClassName();
}
public function getGeneralSetting() {
if (!is_file('modules/VDNotifierPro/Settings/GeneralSetting.php')) {
include_once 'modules/VDNotifierPro/helpers/GenerateSetting.php';
$generate = new VDNotifierProGenerateSetting();
if (!$generate->DefaultGeneralSetting()){
$response = new Vtiger_Response();
$response->setError('201',vtranslate('ERROR_GENERAL_GENERAL_CREATE', 'VDNotifierPro'));
$response->emit();
exit();
}
}
include_once 'modules/VDNotifierPro/Settings/GeneralSetting.php';
return new VDNotifierProGeneralSetting();
}
}