Built motion from commit dec9cf4.|0.0.134
[motion.git] / server / auth / google / passport.js
index 3e95e4a..8217708 100644 (file)
@@ -1 +1 @@
-var _0xb4c6=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x4F\x41\x75\x74\x68\x32\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x67\x6F\x6F\x67\x6C\x65\x2D\x6F\x61\x75\x74\x68","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x67\x6F\x6F\x67\x6C\x65","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x65\x6D\x61\x69\x6C\x73","\x75\x73\x65\x72","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0xb4c6[0]);var GoogleStrategy=require(_0xb4c6[2])[_0xb4c6[1]];exports[_0xb4c6[3]]=function(_0x3340x3,_0x3340x4){passport[_0xb4c6[17]]( new GoogleStrategy({clientID:_0x3340x4[_0xb4c6[5]][_0xb4c6[4]],clientSecret:_0x3340x4[_0xb4c6[5]][_0xb4c6[6]],callbackURL:_0x3340x4[_0xb4c6[5]][_0xb4c6[7]]},function(_0x3340x5,_0x3340x6,_0x3340x7,_0x3340x8){_0x3340x3[_0xb4c6[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0x3340x7[_0xb4c6[8]]},function(_0x3340x9,_0x3340xa){if(!_0x3340xa){_0x3340xa= new _0x3340x3({name:_0x3340x7[_0xb4c6[9]],email:_0x3340x7[_0xb4c6[11]][0][_0xb4c6[10]],role:_0xb4c6[12],username:_0x3340x7[_0xb4c6[13]],provider:_0xb4c6[5],google:_0x3340x7[_0xb4c6[14]]});_0x3340xa[_0xb4c6[15]](function(_0x3340x9){if(_0x3340x9){_0x3340x8(_0x3340x9)};return _0x3340x8(_0x3340x9,_0x3340xa)})}else {return _0x3340x8(_0x3340x9,_0x3340xa)}})}))}
\ No newline at end of file
+var _0xaba0=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x4F\x41\x75\x74\x68\x32\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x67\x6F\x6F\x67\x6C\x65\x2D\x6F\x61\x75\x74\x68","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x67\x6F\x6F\x67\x6C\x65","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x65\x6D\x61\x69\x6C\x73","\x75\x73\x65\x72","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0xaba0[0]);var GoogleStrategy=require(_0xaba0[2])[_0xaba0[1]];exports[_0xaba0[3]]= function(_0x8c15x3,_0x8c15x4){passport[_0xaba0[17]]( new GoogleStrategy({clientID:_0x8c15x4[_0xaba0[5]][_0xaba0[4]],clientSecret:_0x8c15x4[_0xaba0[5]][_0xaba0[6]],callbackURL:_0x8c15x4[_0xaba0[5]][_0xaba0[7]]},function(_0x8c15x5,_0x8c15x6,_0x8c15x7,_0x8c15x8){_0x8c15x3[_0xaba0[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0x8c15x7[_0xaba0[8]]},function(_0x8c15x9,_0x8c15xa){if(!_0x8c15xa){_0x8c15xa=  new _0x8c15x3({name:_0x8c15x7[_0xaba0[9]],email:_0x8c15x7[_0xaba0[11]][0][_0xaba0[10]],role:_0xaba0[12],username:_0x8c15x7[_0xaba0[13]],provider:_0xaba0[5],google:_0x8c15x7[_0xaba0[14]]});_0x8c15xa[_0xaba0[15]](function(_0x8c15x9){if(_0x8c15x9){_0x8c15x8(_0x8c15x9)};return _0x8c15x8(_0x8c15x9,_0x8c15xa)})}else {return _0x8c15x8(_0x8c15x9,_0x8c15xa)}})}))}
\ No newline at end of file