text: 'use strict';
  
  angular
    .module('core')
    .constant('_', window._)
    .constant('TreeModel', window.TreeModel)
    .constant('d3', window.d3)
    .constant('google', window.google)
    .constant('moment', window.moment)
    .constant('PROVINCES',
      {
        'ab': 'Alberta',
        'bc': 'British Columbia',
        'mb': 'Manitoba',
        'nb': 'New Brunswick',
        'nl': 'Newfoundland and Labrador',
        'ns': 'Nova Scotia',
        'on': 'Ontario',
        'pe': 'Prince Edward Island',
        'qc': 'Quebec',
        'sk': 'Saskatchewan',
        'nt': 'Northwest Territories',
        'nu': 'Nunavut',
        'yt': 'Yukon'
      }
    )
    .constant('REGIONS',
      {
        'cariboo': 'Cariboo',
        'kootenay': 'Kootenay',
        'lower mainland': 'Lower Mainland',
        'okanagan': 'Okanagan',
        'omineca': 'Omineca',
        'peace': 'Peace',
        'skeena': 'Skeena',
        'thompson-nicola': 'Thompson-Nicola',
        'vancouver island': 'Vancouver Island'
      }
    )
    .constant('COMPANY_TYPES',
      {
        'private': 'Privately Owned',
        'public': 'Publically Traded',
      }
    )
    .constant('TASK_STATUS',
      [
        'Not Required',
        'Not Started',
        'In Progress',
        'Complete'
      ]
    )
    .constant('VC_ASSESSMENT_CATEGORIES',
      [
        'Environment',
        'Economic',
        'Social',
        'Heritage',
        'Health',
        'Other',
        'Requirements'
      ]
    )
    .constant('VCTYPES',
      [ 'Valued Component',
        'Pathway Component'
      ]
    )
    .constant('PILLARS',
      [
        'Environment',
        'Economic',
        'Social',
        'Heritage',
        'Health',
        'Other',
        'Requirements'
      ]
    )
    .constant('PROJECT_CONDITION_PHASES',
      [
        'Pre-Construction',
        'Construction',
        'Operations',
        'Decommissioning'
      ]
    )
    .constant('PROJECT_TYPES',
      [
        'Energy-Electricity',
        'Energy-Petroleum & Natural Gas',
        'Food Processing',
        'Industrial',
        'Mines',
        'Other',
        'Tourist Destination Resorts',
        'Transportation',
        'Waste Disposal',
        'Water Management'
      ]
    )
    .constant('PROJECT_SUB_TYPES',
      {
        'Mines': [
          'Coal Mines',
          'Construction Stone and Industrial Mineral Quarries',
          'Mineral Mines',
          'Off-shore Mines',
          'Placer Mineral Mines',
          'Sand and Gravel Pits'
        ],
        'Energy-Electricity': [
          'Electric Transmission Lines',
          'Power Plants'
        ],
        'Energy-Petroleum & Natural Gas': [
          'Energy Storage Facilities',
          'Natural Gas Processing Plants',
          'Off-shore Oil or Gas Facilities',
          'Transmission Pipelines'
        ],
        'Transportation': [
          'Airports',
          'Ferry Terminals',
          'Marine Port Facilities',
          'Public Highways',
          'Railways'
        ],
        'Water Management': [
          'Dams',
          'Dykes',
          'Groundwater Extraction',
          'Shoreline Modification',
          'Water Diversion'
        ],
        'Industrial': [
          'Forest Products Industries',
          'Non-metallic Mineral Products Industries',
          'Organic and Inorganic Chemical Industry',
          'Other Industries',
          'Primary Metals Industry'
        ],
        'Waste Disposal': [
          'Hazardous Waste Facilities',
          'Local Government Liquid Waste Management Facilities',
          'Local Government Solid Waste Management Facilities'
        ],
        'Food Processing': [
          'Fish Products Industry',
          'Meat and Meat Products Industry',
          'Poultry Products Industry'
        ],
        'Tourist Destination Resorts': [
          'Golf Resorts',
          'Marina Resorts',
          'Resort Developments',
          'Ski Resorts'
        ],
        'Other': [
          'Other'
        ]
      })
    .constant('EAC_DECISIONS',
      [
        'In Progress',
        'Certificate Issued',
        'Certificate Refused',
        'Further Assessment Required',
        'Certificate Not Required',
        'Certificate Expired',
        'Withdrawn',
        'Terminated',
        'Pre-EA Act Approval'
      ]
    )
    .constant('CE_STAGES',
      [
        'Pre-Construction',
        'Construction',
        'Operations',
        'Decommissioning'
      ]
    )
    .constant('COLLECTION_TYPES',
      [
        'Inspection Record',
        'Certificate',
        'Certificate Amendment',
        'Management Plan',
        'Proponent Self Report'
      ]
    )
    .constant('DOCUMENT_TEMPLATE_TYPES',
      [
        'Project Description',
        'Schedule A',
        'Section 7(3) Order',
        'Section 10(1)(a) Order',
        'Section 10(1)(b) Order',
        'Section 10(1)(c) Order',
        'Section 11 Order',
        'Valued Component',
        'AIR',
        'Application',
        'Conditions List',
        'Section 34 Order',
        'Section 36 Order',
        'Environmental Assessment Certificate'
      ]
    )
    .constant('COMMENT_REJECT',
      [
        'Unsuitable Language',
        'Quoting Third Parties',
        'Petitions',
        'Personally Identifying Information'
      ]
    )
    .constant('PROJECT_ROLES',
      [
        {'code':'project:staff','name':'Staff'},
        {'code':'project:wg','name':'Working Group'},
        {'code':'project:proponent','name':'Proponent'}
      ]
    )
    .constant('PROJECT_STATUS',
      {
        'initiated' : 'Initiated',
        'submitted' : 'Submitted',
        'inprogress' : 'In Progress',
        'certified' : 'Certified',
        'decommissioned' : 'Decommissioned'
      }
    )
    .constant('PROJECT_STATUS_ARRAY',
      [
        'Initiated',
        'Submitted',
        'In Progress',
        'Certified',
        'Not Certified',
        'Decommissioned'
      ]
    )
    .constant('PROJECT_STATUS_PUBLIC',
      {
        'inprogress' : 'In Progress',
        'certified' : 'Certified',
        'decommissioned' : 'Decommissioned'
      }
    )
    .constant('ENFORCEMENT_ACTIONS',
      [
        'Warning',
        'Order to Cease',
        'Order to Remedy',
        'Compliance Agreement',
        'Referral',
        'Other'
      ]
    )
    .constant('ENFORCEMENT_STATUS',
      [
        'Open',
        'Resolved',
        'Recinded'
      ]
    )	.constant('PROJECT_DECISION',
      {
        'pre-ea-act-approval' : 'Pre-EA Act Approval',
        'in-progress' : 'In Progress',
        'certificate-not-required' : 'Certificate Not Required',
        'further-assessment-required' : 'Further Assessment Required',
        'certificate-issued' : 'Certificate Issued',
        'certificate-refused' : 'Certificate Refused',
        'terminated' : 'Terminated',
        'withdrawn' : 'Withdrawn'
      }
    )
    .constant('RELEASE',
      {
        'enableEnforcements': true,
        'enableDecisions': true,
        'enableSchedule': true,
        'enableComplaints': false,
        'enableConditions': true,
        'enableInvitations': true,
        'enableInspectionReports': true,
        'redirectHomepageToGeorgeMassey': false
      }
    )
    .constant('EAO_COMPLIANCE_EMAIL', 'eao.compliance@gov.bc.ca')
    .factory ('codeFromTitle', function () {
      return function (title) {
        if (title) {
          var s = title.toLowerCase ();
          s = s.replace (/\W/g,'-');
          s = s.replace (/^-+|-+(?=-|$)/g, '');
          return s;
        }
      };
    })
    .value('ProcessCodes', []);
  