8eec80c5 by G Manojkumar

removed once from include

1 parent bcc38ddb
......@@ -959,8 +959,7 @@ public function show($id)
$didlinestrArr=explode(":",$didlinestr);
$udidlinesstr[] = substr($didlinestrArr[0], env('didnumber'));
}
//include( app_path() . '/Hacks/DisabledDIDs.php');
$mc=CRMCall::where('userstatus','=','InboundDROP')->where('created_at','>','2018-09-11 00:00:00')->where('created_at','>',date('Y-m-d H:i:s',time()-(7*24*60*60)));
$mc=$mc->where(function ($query) use($roclientlst,$udidlinesstr){
......@@ -971,10 +970,10 @@ public function show($id)
foreach($mc as $key=>$tcall){
//Log::info($tcall);
include( app_path() . '/Hacks/DisabledDIDs.php');
include_once( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
//Log::info("Disabled Number".$tcall->number);
continue;
continue;
}
$tccal=substr($tcall->number,-10);
$mc_number=CRMCall::where('userstatus','!=','InboundDROP')->where ('created_at','>',$tcall->created_at)->where('number','like',"%".$tccal."%")->orderBy("id","DESC")->first();
......@@ -983,12 +982,7 @@ public function show($id)
$mccount= count($mc_number);
if($mccount==0){
//include( app_path() . '/Hacks/DisabledDIDs.php');
//if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
// Log::info("Disabled Number".$tcall->number);
// }else{
$number_list[] = $tcall->number;
// }
$number_list[] = $tcall->number;
}
}
......@@ -1509,13 +1503,7 @@ public function show($id)
$mccount= count($mc_number);
if($mccount==0){
include( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
Log::info("Disabled Number".$tcall->number);
}else{
$number_list[] = $tcall->number;
}
//$number_list[] = $tcall->number;
$number_list[] = $tcall->number;
}
}
......
......@@ -305,7 +305,7 @@ class KPAMIListen implements IEventListener
$crmcall->data=json_encode($tdata);
$crmcall->save();
$DisableNumbersArray = array();
include( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($crmcall->number,-10),$DisableNumbersArray) ){
Log::info("Disabled Number".$crmcall->number); }else{
......@@ -1025,6 +1025,7 @@ class KPAMIListen implements IEventListener
$crmcall->data=json_encode($tdata);
$crmcall->save();
$DisableNumbersArray = array();
include( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($crmcall->number,-10),$DisableNumbersArray) ){ Log::info("Disabled Number".$crmcall->number); }else{
$newqueue=new Kqueue();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!