/* global _ */

'use strict';

angular
	.module('core')
	.constant('_', window._)
	.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',
			'lowermainland': 'Lower Mainland',
			'thompsonokanagan': 'Thompson Okanagan',
			'omnieca': 'Omineca',
			'peace': 'Peace',
			'skeena': 'Skeena',
			'vancouverisland': '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'
		]
	)
	.constant('PILLARS',
		[
			'Environment',
			'Economic',
			'Social',
			'Heritage',
			'Health'
		]
	)
	.constant('PROJECT_TYPES',
		[
			'Mining',
			'Energy',
			'Transportation',
			'Water Management',
			'Industrial',
			'Waste Management',
			'Waste Disposal',
			'Food Processing',
			'Tourist Destination',
			'Other'
		]
	)
	.constant('CE_STAGES',
		[
			'Pre-Construction',
			'Construction',
			'Operations',
			'Decommissioning'
		]
	)
	.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'
		]
	)
	.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_PUBLIC',
		{
			'inprogress' : 'In Progress',
			'certified' : 'Certified',
			'decommissioned' : 'Decommissioned'
		}
	)
	.constant('ENV', 'EAO') // MEM, EAO
	//.constant('LOGO', 'modules/core/client/img/brand/eao-logo.png') // EAO Logo
	.constant('LOGO', 'modules/core/client/img/brand/mem-logo.png') // MEM Logo
	.constant('SALUTATIONS', ['Mr','Mrs','Miss','Ms','Dr','Capt','Prof','Rev','Other'])
	.factory ('codeFromTitle', function () {
		return function (title) {
			var s = title.toLowerCase ();
			s = s.replace (/\W/g,'-');
			s = s.replace (/-+/,'-');
			return s;
		};
	})
	.value('ProcessCodes', []);

@@ -2669,27 +2669,73 @@
 AO%0A%09
-//.constant('LOGO',
+.factory('LOGO', function(ENV) %7B%0A%09%09if (ENV === 'EAO') %7B%0A%09%09%09return
  'mo
@@ -2779,40 +2779,58 @@
 png'
-)
+;
  // 
-EAO
+MEM
  Logo%0A%09
-.constant('LOGO',
+%09%7D%0A%09%09if (ENV === 'MEM') %7B%0A%09%09%09return
  'mo
@@ -2874,22 +2874,30 @@
 png'
-)
+;
  // 
-MEM
+EAO
  Logo%0A
+%09%09%7D%0A%09%7D)%0A
 %09.co

Switch Environment to EAO