json( RequisicaoPendentePermissaoService::getMateriais($centroCustoRequisitanteId), Response::HTTP_OK ); } public function datatableHistorico() { return RequisicaoPendentePermissaoService::datatableHistorico(); } public function storePermissoes() { $this->auth(__FUNCTION__); return response()->json(RequisicaoPendentePermissaoService::storePermissoes(), Response::HTTP_CREATED); } public function createImportacao($centroCustoDestinoId) { $this->auth(__FUNCTION__); return response()->json( RequisicaoPendentePermissaoService::createImportacao($centroCustoDestinoId), Response::HTTP_OK ); } public function storeImportacao() { $this->auth(__FUNCTION__); return response()->json(RequisicaoPendentePermissaoService::storeImportacao(), Response::HTTP_CREATED); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(RequisicaoPendentePermissaoService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(RequisicaoPendentePermissaoService::update($id), Response::HTTP_OK); } }