text: var ParseBoy = require('./ParseBoy');
  var processing = require('./libs/processing');
  var _ = require('underscore');
  var logger = require('tracer').colorConsole();
  
  var parser = {
    parseResumeFile: function(file, savePath, cbAfterParse) {
      var objParseBoy = new ParseBoy(),
        savedFiles = 0;
  
      var onFileReady = function(preppedFile, error) {
        if (error) {
          return cbAfterParse(null, error);
        }
        objParseBoy.parseFile(preppedFile, function(Resume) {
          logger.trace(
            'I got Resume for ' + preppedFile.name + ', now saving...'
          );
          preppedFile.addResume(Resume);
          return cbAfterParse(preppedFile);
          /*objParseBoy.storeResume(preppedFile, Resume, savePath, function(err) {
            if (err) {
              logger.error('Resume ' + preppedFile.name + ' errored', err);
              return cbAfterParse(
                null,
                'Resume ' + preppedFile.name + ' errored'
              );
            }
            logger.trace('Resume ' + preppedFile.name + ' saved');
            return cbAfterParse(preppedFile);
          });*/
        });
      };
      processing.runFile(file, onFileReady);
    },
    parseResumeUrl: function(url, cbAfterParse) {
      var objParseBoy = new ParseBoy();
  
      var onUrlReady = function(preppedData, error) {
        if (error) {
          return cbAfterParse(null, error);
        }
  
        objParseBoy.parseUrl(preppedData, function(Resume) {
          logger.trace('I got Resume for ' + url + ', now sending...');
          return cbAfterParse(Resume.parts);
        });
      };
  
      processing.runUrl(url, onUrlReady);
    },
  };
  module.exports = parser;
  