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

79 lines
1.9 KiB
PHP

<?php
/*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************/
class Mobile_UI_FieldModel {
private $data;
function initData($fieldData) {
$this->data = $fieldData;
}
function name() {
return $this->data['name'];
}
function value() {
$rawValue = $this->data['value'];
if (is_array($rawValue)) return $rawValue['value'];
return $rawValue;
}
function valueLabel() {
$rawValue = $this->data['value'];
if (is_array($rawValue)) return $rawValue['label'];
return $rawValue;
}
function label() {
return $this->data['label'];
}
function isReferenceType() {
static $options = array('101', '116', '117', '26', '357',
'50', '51', '52', '53', '57', '58', '59', '66',
'73', '75', '76', '77', '78', '80', '81'
);
if (isset($this->data['uitype'])) {
$uitype = $this->data['uitype'];
if (in_array($uitype, $options)) {
return true;
}
} else if(isset($this->data['type'])) {
switch($this->data['type']['name']) {
case 'reference':
case 'owner':
return true;
}
}
return $this->isMultiReferenceType();
}
function isMultiReferenceType() {
static $options = array('10', '68');
$uitype = $this->data['uitype'];
if (in_array($uitype, $options)) {
return true;
}
return false;
}
static function buildModelsFromResponse($fields) {
$instances = array();
foreach($fields as $fieldData) {
$instance = new self();
$instance->initData($fieldData);
$instances[] = $instance;
}
return $instances;
}
}