text: (function(){var a=document.getElementsByTagName("script");var c=a[a.length-1].src;angular.module("miprimersponsor.ingreso",["ngRoute"]).config(["$routeProvider",function(d){}]).controller("IngresoController",b);b.$inject=["UserService","AcUtils","$location","UserVars","AppService"];function b(l,i,k,e,j){var f=this;f.login=o;f.loginFacebook=n;f.loginGoogle=h;f.nuevoUsuario=m;f.recuperarPassword=g;f.mail="";f.password="";f.loginPrev=d;function d(p){if(p.keyCode==13){o()}}if(l.getFromToken()!=false){k.path("/main")}function g(){if(!i.validateEmail(f.mail)){i.validations("mail","El mail es incorrecto");return}l.forgotPassword(f.mail,function(p){console.log(p)})}function m(){k.path("/nuevo_usuario")}function n(){l.loginFacebook(function(p){if(p==-1){k.path("/nuevo_usuario")}else{k.path("/main");j.broadcast()}})}function h(){l.loginGoogle(function(p){if(p==-1){k.path("/nuevo_usuario")}else{k.path("/main");j.broadcast()}})}function o(){l.login(f.mail,f.password,1,function(p){if(p==-1){i.showMessage("error","Mail o Contraseña erroneos")}else{k.path("/main");j.broadcast()}})}}})();