text: (function () {
      'use strict';
      angular
              .module('tierraDeColoresApp')
              .service('_sexoService', _sexoService);
      _sexoService.$inject = ['$q', '$http', 'cookieService', 'BaseURL'];
  
      function _sexoService($q, $http, cookieService, BaseURL) {
  
          this.getAll = function () {
              var datosRecu = null;
              var deferred = $q.defer();
              var uri = BaseURL + 'sexo/list';
              var token = cookieService.get('token');
              token.then(function (data) {
                  $http({
                      url: uri,
                      method: 'get',
                      headers: {
                          'Authorization': 'Bearer ' + data,
                          'Content-type': 'application/json'
                      }
                  }).then(function successCallback(response) {
                      datosRecu = response;
                      deferred.resolve(datosRecu);
                  }, function errorCallback(response) {
                      datosRecu = response;
                      deferred.resolve(datosRecu);
                  });
              });
              return deferred.promise;
          };
  
      }
  })();