%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php class Superbot extends MY_Controller { function __construct() { parent::__construct(); $this->load->model("Superbot_model", "superbot"); } function saveCallReponse(){ //$filename="superbot_".$_POST['reference_id'].".txt"; //@file_put_contents(FCPATH."logs/".$filename, json_encode($_POST)); $post=trimArray($this->input->post()); $data=replaceNull([ 'reference_id'=>$post['reference_id'], 'phone'=>$post['phone'], 'campaign'=>$post['campaign'], 'time'=>$post['time'], 'call_recording_url'=>$post['call_recording_url'], 'call_url'=>$post['call_url'], 'call_duration'=>$post['call_duration'], 'status'=>$post['status'], 'call_status'=>$post['call_status'], 'call_parameters'=>$post['call_parameters']?serialize($post['call_parameters']):'', 'feedback'=>$post['feedback']?serialize($post['feedback']):'', 'classification'=>$post['classification'], 'disposition'=>$post['disposition'], 'created'=>currentDT() ]); $this->db->insert("superbot_response", $data); $superbot_resp_id=$this->db->insert_id(); $applicant_id=$this->db->select("applicant_id")->get_where("applications", ['application_no'=>$post['reference_id']])->row("applicant_id"); if($applicant_id){ $d=[ 'superbot_resp_id'=>$superbot_resp_id, ]; $this->db->update("applicants", $d, ['id'=>$applicant_id]); } } } //EOF