PMC-348 Add marks and register the new classes for avoid this implementation in the community version

This commit is contained in:
Ronald Q
2019-01-08 15:34:10 -04:00
parent 51346c441c
commit 21b91db43c
4 changed files with 12 additions and 0 deletions

View File

@@ -1,7 +1,9 @@
<?php <?php
use Illuminate\Foundation\Http\Kernel; use Illuminate\Foundation\Http\Kernel;
/*----------------------------------********---------------------------------*/
use ProcessMaker\BusinessModel\ActionsByEmail\ResponseReader; use ProcessMaker\BusinessModel\ActionsByEmail\ResponseReader;
/*----------------------------------********---------------------------------*/
require_once __DIR__ . '/../../../gulliver/system/class.g.php'; require_once __DIR__ . '/../../../gulliver/system/class.g.php';
require_once __DIR__ . '/../../../bootstrap/autoload.php'; require_once __DIR__ . '/../../../bootstrap/autoload.php';
@@ -256,9 +258,11 @@ try {
case 'sendnotificationscron': case 'sendnotificationscron':
sendNotifications(); sendNotifications();
break; break;
/*----------------------------------********---------------------------------*/
case 'actionsByEmailEmailResponse': case 'actionsByEmailEmailResponse':
(new ResponseReader)->actionsByEmailEmailResponse(); (new ResponseReader)->actionsByEmailEmailResponse();
break; break;
/*----------------------------------********---------------------------------*/
} }
} catch (Exception $e) { } catch (Exception $e) {
$token = strtotime("now"); $token = strtotime("now");

View File

@@ -30,6 +30,7 @@ use WsBase;
*/ */
class ResponseReader class ResponseReader
{ {
/*----------------------------------********---------------------------------*/
private $channel = "ActionsByEmail"; private $channel = "ActionsByEmail";
private $case = []; private $case = [];
private $messageResponseError = null; private $messageResponseError = null;
@@ -347,4 +348,5 @@ class ResponseReader
); );
return $result; return $result;
} }
/*----------------------------------********---------------------------------*/
} }

View File

@@ -154,11 +154,13 @@ class ActionsByEmail extends Api
$arrayData = $filesManager->addProcessFilesManager($proId, $userUid, $data); $arrayData = $filesManager->addProcessFilesManager($proId, $userUid, $data);
@copy(PATH_TPL . 'actionsByEmail' . PATH_SEP . 'actionsByEmail.html', $path . 'actionsByEmail.html'); @copy(PATH_TPL . 'actionsByEmail' . PATH_SEP . 'actionsByEmail.html', $path . 'actionsByEmail.html');
} }
/*----------------------------------********---------------------------------*/
if (!file_exists($path . 'actionsByEmailErrorReply.html')) { if (!file_exists($path . 'actionsByEmailErrorReply.html')) {
$data = array('prf_content' => '', 'prf_filename' => 'actionsByEmailErrorReply.html', 'prf_path' => 'templates'); $data = array('prf_content' => '', 'prf_filename' => 'actionsByEmailErrorReply.html', 'prf_path' => 'templates');
$arrayData = $filesManager->addProcessFilesManager($proId, $userUid, $data); $arrayData = $filesManager->addProcessFilesManager($proId, $userUid, $data);
@copy(PATH_TPL . 'actionsByEmail' . PATH_SEP . 'actionsByEmailErrorReply.html', $path . 'actionsByEmailErrorReply.html'); @copy(PATH_TPL . 'actionsByEmail' . PATH_SEP . 'actionsByEmailErrorReply.html', $path . 'actionsByEmailErrorReply.html');
} }
/*----------------------------------********---------------------------------*/
} }
$directory = dir($path); $directory = dir($path);

View File

@@ -71,6 +71,7 @@ emailServer.application = {
emailServerDefault: emailDefault emailServerDefault: emailDefault
}; };
} else if (typeEmailEngine === "IMAP") { } else if (typeEmailEngine === "IMAP") {
/*----------------------------------********---------------------------------*/
var rdoGrpOption = Ext.getCmp("rdoGrpSmtpSecure").getValue(); var rdoGrpOption = Ext.getCmp("rdoGrpSmtpSecure").getValue();
var smtpSecure = rdoGrpOption.getGroupValue(); var smtpSecure = rdoGrpOption.getGroupValue();
@@ -92,6 +93,7 @@ emailServer.application = {
mailTo: Ext.getCmp("txtMailTo").getValue(), mailTo: Ext.getCmp("txtMailTo").getValue(),
emailServerDefault: emailDefault emailServerDefault: emailDefault
}; };
/*----------------------------------********---------------------------------*/
} else { } else {
//MAIL //MAIL
p = { p = {
@@ -304,6 +306,7 @@ emailServer.application = {
Ext.getCmp("txtIncomingPort").allowBlank = true; Ext.getCmp("txtIncomingPort").allowBlank = true;
Ext.getCmp("txtAccountFrom").allowBlank = false; Ext.getCmp("txtAccountFrom").allowBlank = false;
} else if (cboEmailEngine === "IMAP") { } else if (cboEmailEngine === "IMAP") {
/*----------------------------------********---------------------------------*/
Ext.getCmp("txtServer").setVisible(true); Ext.getCmp("txtServer").setVisible(true);
Ext.getCmp("txtPort").setVisible(true); Ext.getCmp("txtPort").setVisible(true);
@@ -330,6 +333,7 @@ emailServer.application = {
Ext.getCmp("txtIncomingServer").allowBlank = false; Ext.getCmp("txtIncomingServer").allowBlank = false;
Ext.getCmp("txtIncomingPort").allowBlank = false; Ext.getCmp("txtIncomingPort").allowBlank = false;
Ext.getCmp("txtAccountFrom").allowBlank = false; Ext.getCmp("txtAccountFrom").allowBlank = false;
/*----------------------------------********---------------------------------*/
} else { } else {
//MAIL //MAIL
Ext.getCmp("txtServer").setVisible(false); Ext.getCmp("txtServer").setVisible(false);