- 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.
68 lines
2.9 KiB
PHP
68 lines
2.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 PBXManager_Detail_View extends Vtiger_Detail_View{
|
|
|
|
/**
|
|
* Overrided to disable Ajax Edit option in Detail View of
|
|
* PBXManager Record
|
|
*/
|
|
function isAjaxEnabled($recordModel) {
|
|
return false;
|
|
}
|
|
|
|
//SalesPlatform.ru begin
|
|
function process(\Vtiger_Request $request) {
|
|
$recordId = $request->get('record');
|
|
$moduleName = $request->getModule();
|
|
if (!$this->record) {
|
|
$this->record = Vtiger_DetailView_Model::getInstance($moduleName, $recordId);
|
|
}
|
|
$recordModel = $this->record->getRecord();
|
|
|
|
// To show recording link only if callstatus is 'completed'
|
|
if ($recordModel->get('callstatus') != 'completed') {
|
|
$recordModel->set('recordingurl', '');
|
|
}
|
|
if ($recordModel->get('callstatus') == 'completed') {
|
|
$recordModel->set('recordingurl', '<audio src="index.php?module=PBXManager&action=ListenRecord&record=' . $recordId . '" controls>
|
|
<a href="index.php?module=PBXManager&action=ListenRecord&record=' . $recordId . '" ><i class="icon-volume-up"></i></a>
|
|
</audio>');
|
|
}
|
|
parent::process($request);
|
|
}
|
|
/*
|
|
* Overided to convert totalduration to minutes
|
|
*/
|
|
// function preProcess(Vtiger_Request $request, $display=true) {
|
|
// $recordId = $request->get('record');
|
|
// $moduleName = $request->getModule();
|
|
// if(!$this->record){
|
|
// $this->record = Vtiger_DetailView_Model::getInstance($moduleName, $recordId);
|
|
// }
|
|
// $recordModel = $this->record->getRecord();
|
|
//
|
|
// // To show recording link only if callstatus is 'completed'
|
|
// if($recordModel->get('callstatus') != 'completed') {
|
|
// $recordModel->set('recordingurl', '');
|
|
// }
|
|
// // SalesPlatform.ru begin
|
|
// if($recordModel->get('callstatus') == 'completed') {
|
|
// $recordModel->set('recordingurl', '<audio src="index.php?module=PBXManager&action=ListenRecord&record='.$recordId.'" controls>
|
|
// <a href="index.php?module=PBXManager&action=ListenRecord&record='.$recordId.'" ><i class="icon-volume-up"></i></a>
|
|
// </audio>');
|
|
// }
|
|
// // SalesPlatform.ru end
|
|
//
|
|
// return parent::preProcess($request, true);
|
|
// }
|
|
//SalesPaltform.ru end
|
|
}
|