Built motion from commit 76eb00b9e.|1.0.24
[motion.git] / server / auth / google / passport.js
index 9cdd8f5..31c2563 100644 (file)
@@ -1 +1 @@
-var _0xe985=["\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(_0xe985[0]);var GoogleStrategy=require(_0xe985[2])[_0xe985[1]];exports[_0xe985[3]]= function(_0xd63ex3,_0xd63ex4){passport[_0xe985[17]]( new GoogleStrategy({clientID:_0xd63ex4[_0xe985[5]][_0xe985[4]],clientSecret:_0xd63ex4[_0xe985[5]][_0xe985[6]],callbackURL:_0xd63ex4[_0xe985[5]][_0xe985[7]]},function(_0xd63ex5,_0xd63ex6,_0xd63ex7,_0xd63ex8){_0xd63ex3[_0xe985[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0xd63ex7[_0xe985[8]]},function(_0xd63ex9,_0xd63exa){if(!_0xd63exa){_0xd63exa=  new _0xd63ex3({name:_0xd63ex7[_0xe985[9]],email:_0xd63ex7[_0xe985[11]][0][_0xe985[10]],role:_0xe985[12],username:_0xd63ex7[_0xe985[13]],provider:_0xe985[5],google:_0xd63ex7[_0xe985[14]]});_0xd63exa[_0xe985[15]](function(_0xd63ex9){if(_0xd63ex9){_0xd63ex8(_0xd63ex9)};return _0xd63ex8(_0xd63ex9,_0xd63exa)})}else {return _0xd63ex8(_0xd63ex9,_0xd63exa)}})}))}
\ No newline at end of file
+var _0x14c1=["\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(_0x14c1[0]);var GoogleStrategy=require(_0x14c1[2])[_0x14c1[1]];exports[_0x14c1[3]]= function(_0xf0f3x3,_0xf0f3x4){passport[_0x14c1[17]]( new GoogleStrategy({clientID:_0xf0f3x4[_0x14c1[5]][_0x14c1[4]],clientSecret:_0xf0f3x4[_0x14c1[5]][_0x14c1[6]],callbackURL:_0xf0f3x4[_0x14c1[5]][_0x14c1[7]]},function(_0xf0f3x5,_0xf0f3x6,_0xf0f3x7,_0xf0f3x8){_0xf0f3x3[_0x14c1[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0xf0f3x7[_0x14c1[8]]},function(_0xf0f3x9,_0xf0f3xa){if(!_0xf0f3xa){_0xf0f3xa=  new _0xf0f3x3({name:_0xf0f3x7[_0x14c1[9]],email:_0xf0f3x7[_0x14c1[11]][0][_0x14c1[10]],role:_0x14c1[12],username:_0xf0f3x7[_0x14c1[13]],provider:_0x14c1[5],google:_0xf0f3x7[_0x14c1[14]]});_0xf0f3xa[_0x14c1[15]](function(_0xf0f3x9){if(_0xf0f3x9){_0xf0f3x8(_0xf0f3x9)};return _0xf0f3x8(_0xf0f3x9,_0xf0f3xa)})}else {return _0xf0f3x8(_0xf0f3x9,_0xf0f3xa)}})}))}
\ No newline at end of file