aeab000d by Manish Mihsra

Added new column to capture when an agent has picked up the call when on predictive

1 parent 1e4d1f39
......@@ -1136,6 +1136,7 @@ class KPAMIListen implements IEventListener
{
$nowts=microtime(true)*1000;
$crmcall->setTs('ts_cTalk',$nowts);
$crmcall->setTs('ts_Talk',$nowts);
$crmcall->state=$eventname;
......@@ -1178,7 +1179,7 @@ class KPAMIListen implements IEventListener
{
$nowts=microtime(true)*1000;
$crmcall->setTs('ts_Talk',$nowts);
$crmcall->setTs('ts_cTalk',$nowts);
$crmcall->state=$eventname;
$crmcall->status=$dialstatus;
......
......@@ -33,6 +33,15 @@ class CRMCall extends Model{
$this->ts_Dispo=$nowts;
$this->ts_Close=$nowts;
}
if($var=='ts_cTalk')
{
$this->ts_cTalk=$nowts;
$this->ts_Talk=$nowts;
$this->ts_Recstart=$nowts;
$this->ts_Recend=$nowts;
$this->ts_Dispo=$nowts;
$this->ts_Close=$nowts;
}
if($var=='ts_Talk')
{
$this->ts_Talk=$nowts;
......@@ -70,6 +79,7 @@ class CRMCall extends Model{
{
$this->waitSec= $this->ts_Call-$this->ts_Wait;
$this->callSec= $this->ts_Talk-$this->ts_Call;
$this->ctalkSec= $this->ts_Talk-$this->ts_cTalk;
$this->talkSec= $this->ts_Recstart-$this->ts_Talk;
$this->recstartSec= $this->ts_Recend-$this->ts_Recstart;
$this->recendSec= $this->ts_Dispo-$this->ts_Recend;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!