public function getQualityTestIdsJson() { return getCall($this->basePath . "/test/list"); }
function getD3ForJob($jobId) { return getCall("localhost:8080/quality/" . $jobId . "/psnr/d3"); }
function mvTelcall($TID, $Anzeige, $CID) { $call = getCall($Anzeige, $_SESSION["loginCRM"], "U"); $caller = ""; if ($call["CID"] != $CID) { //saveTextCall($Anzeige); if ($call["bezug"] == 0) { $sql = "update telcall set caller_id={$CID} where id={$Anzeige}"; } else { $sql = "update telcall set bezug=0, caller_id={$CID} where id={$Anzeige}"; } $rc = $_SESSION['db']->query($sql); } if ($TID != $Anzeige) { if ($call["bezug"] == 0) { $sql = "update telcall set bezug={$TID} where id={$Anzeige} or Bezug={$Anzeige}"; $sqlH = "update telcallhistory set orgid={$TID} where orgid={$Anzeige} or Bezug={$Anzeige}"; } else { $sql = "update telcall set bezug={$TID} where id={$Anzeige}"; $sqlH = "update telcallhistory set orgid={$TID} where orgid={$Anzeige}"; } $rc = $_SESSION['db']->query($sqlH); } else { return false; } $rs = $_SESSION['db']->query($sql); return $rs; }
$daten["id"] = $_POST["TID"]; $Bezug = $_POST["TID"]; } else { $daten["id"] = $_POST["Bezug"]; } // verschiebe } else { if ($_POST["delete"]) { $rc = saveTelCall($_POST["id"], $_SESSION["loginCRM"], "D"); $rc = delTelCall($_POST["id"]); if ($_POST["bezug"] == 0) { $Bezug = 0; } } else { if ($_GET["hole"]) { $daten = getCall($_GET["hole"]); $Bezug = $daten["Bezug"] == 0 ? $daten["ID"] : $daten["Bezug"]; $select = $daten["employee"]; $co = getKontaktStamm($daten["CID"]); if ($co["cp_id"]) { $pid = $co["cp_id"]; $fid = $co["cp_cv_id"]; } else { $fid = $daten["CID"]; // Einzelperson o. Firma allgem. } $selectC = $daten["CID"]; // if ($_GET["hole"]) } else { if ($_POST["update"]) { $rc = saveTelCall($_POST["id"], $_SESSION["loginCRM"], "U");
return; } //LLama el método que lee de la base de datos y obtiene la respuesta $respuesta = getCalls(); //Muestra la respuesta al cliente echo $respuesta; }); //-------------------------------------------------------------------------------------------------- $app->get('/getCall', function () { //Importa el archivo que contiene el método require_once 'Servicios/getCall.php'; $app = new \Slim\Slim(); //Obtiene los parametros del header http $idCall = $app->request->headers->get('idCall'); //LLama el método que lee de la base de datos y obtiene la respuesta $respuesta = getCall($idCall); //Muestra la respuesta al cliente echo $respuesta; }); //-------------------------------------------------------------------------------------------------- $app->put('/addCall', function () { //Importa el archivo que contiene el método require_once 'Servicios/editCall.php'; $app = new \Slim\Slim(); require_once 'Servicios/Auth.php'; $log = new IOManager(); $log->logAll($app->request->headers); $deviceId = $app->request->headers->get('deviceID'); $hash = $app->request->headers->get('hash'); $respuesta = auth($deviceId, $hash); if ($respuesta != "Auth_OK") {