Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index fdb5e5a..bb9ca94 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe636=['UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','message','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','jayson/promise','client','http','request','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x20295d,_0x562a65){var _0x4e524c=function(_0x5f1ffd){while(--_0x5f1ffd){_0x20295d['push'](_0x20295d['shift']());}};_0x4e524c(++_0x562a65);}(_0xe636,0x16d));var _0x6e63=function(_0x36909d,_0x2795f1){_0x36909d=_0x36909d-0x0;var _0x1fd29d=_0xe636[_0x36909d];return _0x1fd29d;};'use strict';var _=require(_0x6e63('0x0'));var util=require(_0x6e63('0x1'));var moment=require('moment');var BPromise=require(_0x6e63('0x2'));var rs=require(_0x6e63('0x3'));var fs=require('fs');var Redis=require(_0x6e63('0x4'));var db=require(_0x6e63('0x5'))['db'];var utils=require(_0x6e63('0x6'));var logger=require('../../config/logger')('rpc');var config=require('../../config/environment');var jayson=require(_0x6e63('0x7'));var client=jayson[_0x6e63('0x8')][_0x6e63('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x677089,_0x33c842,_0x36d4ce){return new BPromise(function(_0x15b438,_0x5558f6){return client[_0x6e63('0xa')](_0x677089,_0x36d4ce)['then'](function(_0x43fbc7){logger[_0x6e63('0xb')](_0x6e63('0xc'),_0x33c842,_0x6e63('0xd'));logger[_0x6e63('0xe')](_0x6e63('0xf'),_0x33c842,_0x6e63('0xd'),JSON[_0x6e63('0x10')](_0x43fbc7));if(_0x43fbc7[_0x6e63('0x11')]){if(_0x43fbc7[_0x6e63('0x11')]['code']===0x1f4){logger[_0x6e63('0x11')](_0x6e63('0xc'),_0x33c842,_0x43fbc7['error']['message']);return _0x5558f6(_0x43fbc7['error'][_0x6e63('0x12')]);}logger['error'](_0x6e63('0xc'),_0x33c842,_0x43fbc7[_0x6e63('0x11')][_0x6e63('0x12')]);return _0x15b438(_0x43fbc7[_0x6e63('0x11')]['message']);}else{logger[_0x6e63('0xb')](_0x6e63('0xc'),_0x33c842,_0x6e63('0xd'));_0x15b438(_0x43fbc7['result'][_0x6e63('0x12')]);}})[_0x6e63('0x13')](function(_0x5a9570){logger[_0x6e63('0x11')]('UserProfileSection,\x20%s,\x20%s',_0x33c842,_0x5a9570);_0x5558f6(_0x5a9570);});});}
\ No newline at end of file
+var _0x67bc=['info','UserProfileSection,\x20%s,\x20%s','request\x20sent','UserProfileSection,\x20%s,\x20%s,\x20%s','error','message','result','lodash','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','request','then'];(function(_0x37ffea,_0x25b006){var _0x2e2615=function(_0x5e6c74){while(--_0x5e6c74){_0x37ffea['push'](_0x37ffea['shift']());}};_0x2e2615(++_0x25b006);}(_0x67bc,0x1d7));var _0xc67b=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x67bc[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0xc67b('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xc67b('0x1'));var fs=require('fs');var Redis=require(_0xc67b('0x2'));var db=require(_0xc67b('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xc67b('0x4'))('rpc');var config=require(_0xc67b('0x5'));var jayson=require('jayson/promise');var client=jayson[_0xc67b('0x6')]['http']({'port':0x232a});function respondWithRpcPromise(_0x45f0ce,_0x4d1b3f,_0x5df8a7){return new BPromise(function(_0x1ed563,_0x485f28){return client[_0xc67b('0x7')](_0x45f0ce,_0x5df8a7)[_0xc67b('0x8')](function(_0x20c25d){logger[_0xc67b('0x9')](_0xc67b('0xa'),_0x4d1b3f,_0xc67b('0xb'));logger['debug'](_0xc67b('0xc'),_0x4d1b3f,_0xc67b('0xb'),JSON['stringify'](_0x20c25d));if(_0x20c25d[_0xc67b('0xd')]){if(_0x20c25d[_0xc67b('0xd')]['code']===0x1f4){logger['error'](_0xc67b('0xa'),_0x4d1b3f,_0x20c25d['error'][_0xc67b('0xe')]);return _0x485f28(_0x20c25d['error'][_0xc67b('0xe')]);}logger[_0xc67b('0xd')](_0xc67b('0xa'),_0x4d1b3f,_0x20c25d[_0xc67b('0xd')][_0xc67b('0xe')]);return _0x1ed563(_0x20c25d['error'][_0xc67b('0xe')]);}else{logger[_0xc67b('0x9')](_0xc67b('0xa'),_0x4d1b3f,'request\x20sent');_0x1ed563(_0x20c25d[_0xc67b('0xf')]['message']);}})['catch'](function(_0x387003){logger[_0xc67b('0xd')](_0xc67b('0xa'),_0x4d1b3f,_0x387003);_0x485f28(_0x387003);});});}
\ No newline at end of file