/**
  * @param Request $request
  * @return Response
  *
  * @SWG\Get(
  *      path="/telefones",
  *      summary="Get a listing of the Telefones.",
  *      tags={"Telefone"},
  *      description="Get all Telefones",
  *      produces={"application/json"},
  *      @SWG\Response(
  *          response=200,
  *          description="successful operation",
  *          @SWG\Schema(
  *              type="object",
  *              @SWG\Property(
  *                  property="success",
  *                  type="boolean"
  *              ),
  *              @SWG\Property(
  *                  property="data",
  *                  type="array",
  *                  @SWG\Items(ref="#/definitions/Telefone")
  *              ),
  *              @SWG\Property(
  *                  property="message",
  *                  type="string"
  *              )
  *          )
  *      )
  * )
  */
 public function index(Request $request)
 {
     $this->telefoneRepository->pushCriteria(new RequestCriteria($request));
     $this->telefoneRepository->pushCriteria(new LimitOffsetCriteria($request));
     $telefones = $this->telefoneRepository->all();
     return $this->sendResponse($telefones->toArray(), 'Telefones retrieved successfully');
 }