old_contents: 'use strict'
  
  const Trailpack = require('trailpack')
  const _ = require('lodash')
  
  
  module.exports = class CronTrailpack extends Trailpack {
  
    configure() {
      const configAnnotations = this.app.config.annotations
      if (configAnnotations) {
        if (!configAnnotations.customAnnotations) {
          configAnnotations.customAnnotations = {}
        }
        else {
          configAnnotations.customAnnotations = _.extend(configAnnotations.customAnnotations, require('./annotations'))
        }
  
      }
    }
  
    /**
     * Wait Trails ready event to launch jobs
     */
    initialize() {
      this.app.on('trails:ready', () => {
        this.app.services.CronService.init()
      })
      return Promise.resolve()
    }
  
    constructor(app) {
      super(app, {
        config: require('./config'),
        api: require('./api'),
        pkg: require('./package')
      })
    }
  }
  
  
new_contents: 'use strict'
  
  const Trailpack = require('trailpack')
  const _ = require('lodash')
  
  
  module.exports = class CronTrailpack extends Trailpack {
  
    configure() {
      const configAnnotations = this.app.config.annotations
      if (configAnnotations) {
        if (!configAnnotations.customAnnotations) {
          configAnnotations.customAnnotations = {}
        }
  
        configAnnotations.customAnnotations = _.extend(configAnnotations.customAnnotations, require('./annotations'))
  
  
      }
    }
  
    /**
     * Wait Trails ready event to launch jobs
     */
    initialize() {
      this.app.on('trails:ready', () => {
        this.app.services.CronService.init()
      })
      return Promise.resolve()
    }
  
    constructor(app) {
      super(app, {
        config: require('./config'),
        api: require('./api'),
        pkg: require('./package')
      })
    }
  }
  
  
subject: Add Cron annotations