option('con'); $param = $this->option('param'); if(!empty($con)) { switch ($con) { case 'jobs': try { if(isset($param['message']['reportStatus'])) { $pirimid = new Pirimid(new Request($param)); $result = $pirimid->processWebhook(); if ($result) { return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['Failed to fetch the analytics']]); } } } catch (\Exception $e) { return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => [$e->getMessage().'|'.$e->getLine().'|'.$e->getTraceAsString()]]); } break; default: return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['No case found to handle in ExecuteJob']]); } } else { return Utility::handlerSendFailed([Config::get("constants.txt.txt_errors") => ['Context is missing']]); } } }