mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
35 lines
878 B
PHP
35 lines
878 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\PerfexCRM\Processors;
|
|
|
|
use App\Classes\Modules\PerfexCRM\DataTransferObjects\CreateTaskPerfexCRMObject;
|
|
use App\Classes\ValueObjects\Constants\PerfexCRMStatus;
|
|
use App\Classes\Jobs\CreatePerfexCRMSingleTask;
|
|
|
|
class NewLeadTaskToPerfexCRMProcessor
|
|
{
|
|
/**
|
|
* @param None
|
|
* @return true
|
|
* @throws \App\Classes\Exceptions\MalformedRequestException
|
|
*/
|
|
public function execute()
|
|
{
|
|
$createTaskPerfexCRMObject = new CreateTaskPerfexCRMObject(
|
|
"dillontest1@gmail.com",
|
|
"test is the name of the task",
|
|
"this is the description of the task",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
PerfexCRMStatus::NOT_STARTED
|
|
);
|
|
|
|
CreatePerfexCRMSingleTask::dispatch($createTaskPerfexCRMObject);
|
|
return true;
|
|
}
|
|
|
|
}
|