/****************************
 *
 * ResortPro v2.0.0
 * Developed by: Hutch White
 *
 * Application specifics.  Only basic configs, root variables and initialization here!!!
 *
 ***************************/
(function () {
  // Changing interpolation to avoid conflict with other integrations
  var app = angular.module('resortpro', ['resortpro.services', 'resortpro.filters', 'resortpro.property', 'resortpro.checkout', 'ngMap', 'pascalprecht.translate', 'angularPayments'],
    function ($interpolateProvider) {
      $interpolateProvider.startSymbol('{[');
      $interpolateProvider.endSymbol(']}');
    }
  );

  // required for angular to retrieve query strings.  this is needed for the details page
  app.config(function($locationProvider) {
    $locationProvider.html5Mode({
      enabled: true, 
      requireBase: false,
      rewriteLinks: false
    });
  });

 app.config(function($translateProvider) {

   // Load translation files
   $translateProvider.useLoader('wpmlTranslationLoader');

   // Set Preferred Language
   //$translateProvider.preferredLanguage('en');

   // Set the Sanitization Strategy
   $translateProvider.useSanitizeValueStrategy('escape');

   // Set the missing translation handler
   $translateProvider.useMissingTranslationHandler('missingTranslationHandler');

 });

  // if you need to define rootScoped variables here, uncomment this block and do here as by the example
  // app.run(function($rootScope){
  //  $rootScope.variable_name = 'value';
  // })

  // defines angular app
  angular.element(document).ready(function () {
    angular.bootstrap(document, ['resortpro']);
  });
})();
