json(FilaService::list(), Response::HTTP_OK); } public function index() { return response()->json(FilaService::index((object) request()->all()), Response::HTTP_OK); } public function sendBack($id) { FilaService::sendBack($id); return response()->noContent(); } public function evade($id) { FilaService::evade($id); return response()->noContent(); } public function undoEvade($id) { FilaService::undoEvade($id); return response()->noContent(); } public function destroy($id) { FilaService::destroy($id); return response()->noContent(); } public function getAgendamentosRetroativos() { return response()->json(FilaService::getAgendamentosRetroativos(), Response::HTTP_OK); } public function forward(Request $request, $id) { return response()->json(FilaService::forward($id, $request->centro_custo_encaminhamento_id), Response::HTTP_OK); } }