Files
crm.clientright.ru/modules/Workflow2/views/resources/js/SimpleConfig.js
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

48 lines
2.1 KiB
JavaScript

jQuery(function() {
jQuery('.SwitchSimpleConfigSwitch').on('click', function() {
var ele = jQuery(this);
var targetid = ele.data('targetid');
var name = ele.data('name');
var parentEle = jQuery('td.SCMode.'+targetid);
var currentMode = parentEle.find('.SCModeSelector').val();
var currentValue = parentEle.find('.SimpleConfigContainer[data-type="' + currentMode +'"] [name="' + name + '"]').val();
if(currentMode == 'default') {
parentEle.removeClass('SCMode_default').addClass('SCMode_custom');
parentEle.find('.SCModeSelector').val('custom');
var defaultEle = parentEle.find('.SimpleConfigDefaultContainer [name="' + name + '"]');
parentEle.find('.SimpleConfigDefaultContainer [name="' + name + '"]').val(currentValue).prop('disabled', true);
parentEle.find('.SimpleConfigCustomContainer [name="' + name + '"]').val(currentValue).prop('disabled', false);
/*
var value = jQuery('[name="' + name + '"]').val();
createTemplateTextfield(name, targetid, value, {});
*/
} else {
parentEle.addClass('SCMode_default').removeClass('SCMode_custom');
parentEle.find('.SCModeSelector').val('default');
parentEle.find('.SimpleConfigDefaultContainer [name="' + name + '"]').val(currentValue).prop('disabled', false);
parentEle.find('.SimpleConfigCustomContainer [name="' + name + '"]').val(currentValue).prop('disabled', true);
}
});
jQuery('.SimpleConfigRepeatField').on('click', function(e) {
var ele = jQuery(e.currentTarget);
var parentFieldHtml = ele.closest('.SCFieldIntern').html();
ele.closest('.SCFieldIntern').after('<div class="SCFieldIntern">' + parentFieldHtml + '</div>');
//var td = ele.closest('td');
});
jQuery('.SCMode_custom').each(function(index, ele) {
var name = jQuery(ele).data('name');
jQuery(ele).find('.SimpleConfigDefaultContainer [name="' + name + '"]').prop('disabled', true);
});
});