/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $entities = \App\Models\EntitiesModel::get();
     foreach ($entities as $entity) {
         $entity->processes = explode(',', $entity->processes);
         $entity->pointsOfService = explode(',', $entity->pointsOfService);
     }
     return response()->json(["entities" => $entities], 200);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $processes = \App\Models\ProcessesModel::get();
     $entities = \App\Models\EntitiesModel::get();
     $servicePoints = \App\Models\ServicePointsModel::get();
     $processes->toArray();
     $entities->toArray();
     $servicePoints->toArray();
     return response()->json(["processes" => $processes, "entities" => $entities, "servicePoints" => $servicePoints], 200);
 }