text: ( function(){
  
    'use strict';
  
    angular.module('pklApp', ['config'])
  
      /// Service to call advisor list api
      .service('Services', ['HOST', '$http', function(HOST, $http){
  
        var Services = {};
  
        // HTTP call to get advisors
        Services.getAdvisors = function(){
          return $http.get('/assets/advisors.json');
        };
  
        // HTTP Post to submit an advisor Request
        Services.postRequest = function(request){
          return $http.post(HOST + '/api/v1/Request', request);
        };
  
        return Services;
      }])
  
      /// Controller for the Advisors Page
      .controller('advisorController', ['Services', '$scope', function(Services, $scope){
  
        // Get the Advisor data
        Services.getAdvisors().success(function(data){
          $scope.advisors = data.Advisors;
        });
  
      }])
  
      /// Controller for the Request an Advisor Page
      .controller('requestController', ['Services', '$scope', '$timeout', function(Services, $scope, $timeout){
        $scope.errors = false;
        $scope.submitted = false;
  
  
        // Submit the request form request
        $scope.submitRequest = function(){
          var request = $scope.request;
          $scope.submitted = true;
          $scope.errors = false;
  
          Services.postRequest(request).then(function(data){
  
            console.log(data);
            // Wait a sec to show
            $timeout(function(){ $scope.success = true; }, 1000);
  
          }, function(err){
            $scope.errors = true;
            $scope.submitted = false;
            console.log(err);
          });
  
        };
  
  
      }]);
  
  })();
  