Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index c0d5011..32ea450 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa98=['../../config/environment','jayson/promise','client','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','message','info','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb'];(function(_0x21defb,_0x137d35){var _0x2356d0=function(_0x27606a){while(--_0x27606a){_0x21defb['push'](_0x21defb['shift']());}};_0x2356d0(++_0x137d35);}(_0xfa98,0x11a));var _0x8fa9=function(_0x10ec84,_0x267064){_0x10ec84=_0x10ec84-0x0;var _0x12565e=_0xfa98[_0x10ec84];return _0x12565e;};'use strict';var _=require(_0x8fa9('0x0'));var util=require(_0x8fa9('0x1'));var moment=require(_0x8fa9('0x2'));var BPromise=require(_0x8fa9('0x3'));var rs=require(_0x8fa9('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x8fa9('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0x8fa9('0x6'));var jayson=require(_0x8fa9('0x7'));var client=jayson[_0x8fa9('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x49b148,_0x271385,_0x34231e){return new BPromise(function(_0x5666a9,_0x32e38d){return client['request'](_0x49b148,_0x34231e)['then'](function(_0x1b7043){logger['info'](_0x8fa9('0x9'),_0x271385,_0x8fa9('0xa'));logger[_0x8fa9('0xb')](_0x8fa9('0xc'),_0x271385,_0x8fa9('0xa'),JSON[_0x8fa9('0xd')](_0x1b7043));if(_0x1b7043[_0x8fa9('0xe')]){if(_0x1b7043[_0x8fa9('0xe')]['code']===0x1f4){logger['error'](_0x8fa9('0x9'),_0x271385,_0x1b7043['error'][_0x8fa9('0xf')]);return _0x32e38d(_0x1b7043[_0x8fa9('0xe')][_0x8fa9('0xf')]);}logger[_0x8fa9('0xe')](_0x8fa9('0x9'),_0x271385,_0x1b7043[_0x8fa9('0xe')]['message']);return _0x5666a9(_0x1b7043[_0x8fa9('0xe')][_0x8fa9('0xf')]);}else{logger[_0x8fa9('0x10')](_0x8fa9('0x9'),_0x271385,_0x8fa9('0xa'));_0x5666a9(_0x1b7043['result'][_0x8fa9('0xf')]);}})[_0x8fa9('0x11')](function(_0x357bb0){logger[_0x8fa9('0xe')]('UserProfileSection,\x20%s,\x20%s',_0x271385,_0x357bb0);_0x32e38d(_0x357bb0);});});}
\ No newline at end of file
+var _0x3a89=['randomstring','ioredis','../../mysqldb','../../config/environment','jayson/promise','client','http','then','UserProfileSection,\x20%s,\x20%s','UserProfileSection,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','info','result','catch','lodash','util','bluebird'];(function(_0x3f93ba,_0x5caa38){var _0x4b78c7=function(_0x3991af){while(--_0x3991af){_0x3f93ba['push'](_0x3f93ba['shift']());}};_0x4b78c7(++_0x5caa38);}(_0x3a89,0xc5));var _0x93a8=function(_0x34b38a,_0x3afd6d){_0x34b38a=_0x34b38a-0x0;var _0x2eeb20=_0x3a89[_0x34b38a];return _0x2eeb20;};'use strict';var _=require(_0x93a8('0x0'));var util=require(_0x93a8('0x1'));var moment=require('moment');var BPromise=require(_0x93a8('0x2'));var rs=require(_0x93a8('0x3'));var fs=require('fs');var Redis=require(_0x93a8('0x4'));var db=require(_0x93a8('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0x93a8('0x6'));var jayson=require(_0x93a8('0x7'));var client=jayson[_0x93a8('0x8')][_0x93a8('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1f6c88,_0x4e2fda,_0x415dae){return new BPromise(function(_0x15dd19,_0x3097a6){return client['request'](_0x1f6c88,_0x415dae)[_0x93a8('0xa')](function(_0x29e0c9){logger['info'](_0x93a8('0xb'),_0x4e2fda,'request\x20sent');logger['debug'](_0x93a8('0xc'),_0x4e2fda,_0x93a8('0xd'),JSON[_0x93a8('0xe')](_0x29e0c9));if(_0x29e0c9[_0x93a8('0xf')]){if(_0x29e0c9[_0x93a8('0xf')]['code']===0x1f4){logger[_0x93a8('0xf')](_0x93a8('0xb'),_0x4e2fda,_0x29e0c9[_0x93a8('0xf')][_0x93a8('0x10')]);return _0x3097a6(_0x29e0c9[_0x93a8('0xf')][_0x93a8('0x10')]);}logger['error'](_0x93a8('0xb'),_0x4e2fda,_0x29e0c9[_0x93a8('0xf')]['message']);return _0x15dd19(_0x29e0c9[_0x93a8('0xf')][_0x93a8('0x10')]);}else{logger[_0x93a8('0x11')]('UserProfileSection,\x20%s,\x20%s',_0x4e2fda,_0x93a8('0xd'));_0x15dd19(_0x29e0c9[_0x93a8('0x12')]['message']);}})[_0x93a8('0x13')](function(_0x49e8ee){logger['error'](_0x93a8('0xb'),_0x4e2fda,_0x49e8ee);_0x3097a6(_0x49e8ee);});});}
\ No newline at end of file