Ejemplo n.º 1
0
 public function get_wallboard_static($center = "GAB")
 {
     $campaigns = array('GAB' => array('GAB-1', 'GAB-LIVE'), 'GBS' => array('DIGOS-1'), 'RESOLVE' => array('BURTON1'), 'INTERNAL' => array('INTERNAL', 'SENIORS', 'GBS-1', 'GAB-3', 'GAB-1'));
     $connection = 'gabdialler';
     $current_results = GAB\Debtsolv::get_referral_count($center);
     $this->response(array('referrals' => $current_results['referrals'], 'countdown' => 34 - $current_results['pack_outs'], 'conversion' => Goautodial\Live::answered_calls(array('GAB-1', 'GAB-LIVE')) == 0 ? 0 : number_format($current_results['referrals'] / Goautodial\Live::answered_calls(array('GAB-1', 'GAB-LIVE')) * 100, 2), 'pack_out_today' => $current_results['pack_outs'], 'pack_out_percentage' => $current_results['referrals'] == 0 ? 0 : number_format($current_results['pack_outs'] / $current_results['referrals'] * 100, 2), 'pack_out_value' => number_format($current_results['pack_outs_value'], 2), 'pack_out_average_di' => $current_results['pack_outs'] == 0 ? 0 : number_format($current_results['pack_outs_value'] / $current_results['pack_outs'], 2), 'seniors_available' => count(Goautodial\Live::closers('SENIORS', $connection)), 'seniors_queue' => count(Goautodial\Live::inbound_queue(null, $connection)), 'gab_live' => array('active' => Goautodial\Live::dialable_leads('GAB-LIVE') > 0 ? 1 : 0, 'agents' => 1)));
 }
Ejemplo n.º 2
0
 public function action_dialler_test()
 {
     print count(Goautodial\Live::closers());
 }