var OhmHello={init:function(){hello.init({google:"4363662406-njm489qj7j2q4j8n2oo2cs36qm1dsucb.apps.googleusercontent.com"},{redirect_uri:"https://api.telus.ohmconnect.com/auth/hello",scope:"email"}),$("[data-ohm-selector=login-google]").click(function(o){o.preventDefault(),OhmHello.login_via_google(!0)}),$("[data-ohm-selector=signup-google]").click(function(o){o.preventDefault(),OhmHello.login_via_google(!1)})},login_via_google:function(o){hello("google").login({force:!1,scope:"email"}).then(function(){OhmHello.fetch_google(o)})},fetch_google:function(o){var e=this;hello("google").api("me").then(function(l){var i=hello("google").getAuthResponse();l.access_token=i.access_token,$.post("https://api.telus.ohmconnect.com/auth/hello?login="+o,l,function(o){1==o.success?window.location=o.redirect:void 0!==o.msg?e.notify(o.msg):e.notify("Unknown authentication error #2")})})},notify:function(o){"function"==typeof clickToDismiss?clickToDismiss(o):alert(o)}};OhmHello.init();