Built motion from commit 94df3a359.|1.0.33
[motion.git] / server / auth / facebook / passport.js
index 1ce26f8..1d0142d 100644 (file)
@@ -1 +1 @@
-var _0xc1af=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x66\x61\x63\x65\x62\x6F\x6F\x6B","\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(_0xc1af[0]);var FacebookStrategy=require(_0xc1af[2])[_0xc1af[1]];exports[_0xc1af[3]]= function(_0x1617x3,_0x1617x4){passport[_0xc1af[17]]( new FacebookStrategy({clientID:_0x1617x4[_0xc1af[5]][_0xc1af[4]],clientSecret:_0x1617x4[_0xc1af[5]][_0xc1af[6]],callbackURL:_0x1617x4[_0xc1af[5]][_0xc1af[7]]},function(_0x1617x5,_0x1617x6,_0x1617x7,_0x1617x8){_0x1617x3[_0xc1af[16]]({"\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x69\x64":_0x1617x7[_0xc1af[8]]},function(_0x1617x9,_0x1617xa){if(_0x1617x9){return _0x1617x8(_0x1617x9)};if(!_0x1617xa){_0x1617xa=  new _0x1617x3({name:_0x1617x7[_0xc1af[9]],email:_0x1617x7[_0xc1af[11]][0][_0xc1af[10]],role:_0xc1af[12],username:_0x1617x7[_0xc1af[13]],provider:_0xc1af[5],facebook:_0x1617x7[_0xc1af[14]]});_0x1617xa[_0xc1af[15]](function(_0x1617x9){if(_0x1617x9){_0x1617x8(_0x1617x9)};return _0x1617x8(_0x1617x9,_0x1617xa)})}else {return _0x1617x8(_0x1617x9,_0x1617xa)}})}))}
\ No newline at end of file
+var _0x1c27=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x66\x61\x63\x65\x62\x6F\x6F\x6B","\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(_0x1c27[0]);var FacebookStrategy=require(_0x1c27[2])[_0x1c27[1]];exports[_0x1c27[3]]= function(_0xe12bx3,_0xe12bx4){passport[_0x1c27[17]]( new FacebookStrategy({clientID:_0xe12bx4[_0x1c27[5]][_0x1c27[4]],clientSecret:_0xe12bx4[_0x1c27[5]][_0x1c27[6]],callbackURL:_0xe12bx4[_0x1c27[5]][_0x1c27[7]]},function(_0xe12bx5,_0xe12bx6,_0xe12bx7,_0xe12bx8){_0xe12bx3[_0x1c27[16]]({"\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x69\x64":_0xe12bx7[_0x1c27[8]]},function(_0xe12bx9,_0xe12bxa){if(_0xe12bx9){return _0xe12bx8(_0xe12bx9)};if(!_0xe12bxa){_0xe12bxa=  new _0xe12bx3({name:_0xe12bx7[_0x1c27[9]],email:_0xe12bx7[_0x1c27[11]][0][_0x1c27[10]],role:_0x1c27[12],username:_0xe12bx7[_0x1c27[13]],provider:_0x1c27[5],facebook:_0xe12bx7[_0x1c27[14]]});_0xe12bxa[_0x1c27[15]](function(_0xe12bx9){if(_0xe12bx9){_0xe12bx8(_0xe12bx9)};return _0xe12bx8(_0xe12bx9,_0xe12bxa)})}else {return _0xe12bx8(_0xe12bx9,_0xe12bxa)}})}))}
\ No newline at end of file