var FeedBack;(function(n){"use strict";var i=function(){function n(n,t){this.$scope=n;this.$resource=t;this.$scope.controller=this;this.$scope.model={}}return n.prototype.init=function(n){this.feedBackService=this.$resource(n.ApiUrl,{},{query:{method:"POST"}})},n.prototype.post=function(){var n=this;this.$scope.contactForm.$valid&&(this.$scope.inProgress=!0,this.feedBackService.query(this.$scope.model).$promise.then(function(){n.$scope.model={};n.$scope.contactForm.$setPristine()}).catch(function(){}).finally(function(){n.$scope.inProgress=!1}))},n.$inject=["$scope","$resource"],n}(),t;n.FeedBackCtrl=i;t=getOrCreateAngularModule("theApp",["ui.bootstrap","ngResource","deusEx.mvc","deusEx.responseErrorInterceptor","deusEx.valid"]);t.config(["$httpProvider",function(n){n.defaults.cache=!1}]);t.controller("FeedBackCtrl",i)})(FeedBack||(FeedBack={}))