(function () {
  'use strict';

  angular
    .module('hires')
    .run(menuConfig);

  menuConfig.$inject = ['menuService'];

  function menuConfig(menuService) {

    menuService.addMenuItem('topbar', {
      title: 'Hires',
      state: 'hires',
      class: 'fa-user',
      type: 'dropdown',
      position: 1,
      roles: ['user']
    });

    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires', {
      title: 'Interviews',
      state: 'hires.interviews',
      class: 'fa-circle-o',
      type: 'dropdown',
      position: 1,
      roles: ['user']
    });
    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires.interviews', {
      title: 'Interview 1',
      state: 'hires.interview_1',
      class: 'fa-circle-o',
      position: 1,
      roles: ['user']
    });
    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires.interviews', {
      title: 'Interview 2',
      state: 'hires.interview_2',
      class: 'fa-circle-o',
      position: 2,
      roles: ['user']
    });

    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires', {
      title: 'Locations',
      state: 'hires.locations',
      class: 'fa-circle-o',
      type: 'dropdown',
      position: 2,
      roles: ['user']
    });
    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires.locations', {
      title: 'Previous',
      state: 'hires.location_1',
      class: 'fa-circle-o',
      position: 1,
      roles: ['user']
    });
    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires.locations', {
      title: 'Current',
      state: 'hires.location_2',
      class: 'fa-circle-o',
      position: 2,
      roles: ['user']
    });

    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires', {
      title: 'Checks',
      state: 'hires.checks',
      class: 'fa-circle-o',
      position: 3,
      roles: ['user']
    });

    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires', {
      title: 'Tests',
      state: 'hires.tests',
      class: 'fa-circle-o',
      position: 4,
      roles: ['user']
    });

    // Add the dropdown create item
    menuService.addSubMenuItem('topbar', 'hires', {
      title: 'Candidate Report',
      state: 'hires.comparisonReport',
      class: 'fa-circle-o',
      position: 5,
      roles: ['user']
    });

  }
}());

@@ -1433,16 +1433,21 @@
 Previous
+ Work
 ',%0A     
@@ -1670,16 +1670,21 @@
 'Current
+ Work
 ',%0A     

Update menu titles