auth(__FUNCTION__); return response()->json(FechamentoConsultaService::index((object) request()->all()), Response::HTTP_OK); } public function create() { $this->auth(__FUNCTION__); return response()->json(FechamentoConsultaService::create(), Response::HTTP_OK); } public function list() { return response()->json(FechamentoConsultaService::list(), Response::HTTP_OK); } public function getEquipes() { return response()->json(FechamentoConsultaService::getEquipes(), Response::HTTP_OK); } public function getOcupacoes() { return response()->json(FechamentoConsultaService::getOcupacoes(), Response::HTTP_OK); } public function getEspecialidadesWithJornada() { return response()->json(FechamentoConsultaService::getEspecialidadesWithJornada(), Response::HTTP_OK); } public function getUsuariosWithJornada() { return response()->json(FechamentoConsultaService::getUsuariosWithJornada(), Response::HTTP_OK); } public function store() { $this->auth(__FUNCTION__); return response()->json(FechamentoConsultaService::store(), Response::HTTP_CREATED); } }