Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 897abb3..04f7b42 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5a2e=['UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info'];(function(_0x39b1f,_0x55ada0){var _0x4b4ead=function(_0xfaf2d5){while(--_0xfaf2d5){_0x39b1f['push'](_0x39b1f['shift']());}};_0x4b4ead(++_0x55ada0);}(_0x5a2e,0x68));var _0xe5a2=function(_0x36aad7,_0x1009f5){_0x36aad7=_0x36aad7-0x0;var _0x48d14b=_0x5a2e[_0x36aad7];return _0x48d14b;};'use strict';var _=require(_0xe5a2('0x0'));var util=require(_0xe5a2('0x1'));var moment=require(_0xe5a2('0x2'));var BPromise=require('bluebird');var rs=require(_0xe5a2('0x3'));var fs=require('fs');var Redis=require(_0xe5a2('0x4'));var db=require(_0xe5a2('0x5'))['db'];var utils=require(_0xe5a2('0x6'));var logger=require(_0xe5a2('0x7'))(_0xe5a2('0x8'));var config=require(_0xe5a2('0x9'));var jayson=require(_0xe5a2('0xa'));var client=jayson[_0xe5a2('0xb')][_0xe5a2('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x38f209,_0x4f6f3b,_0x3b1889){return new BPromise(function(_0x5e8308,_0x1c8d31){return client[_0xe5a2('0xd')](_0x38f209,_0x3b1889)[_0xe5a2('0xe')](function(_0x3a99bf){logger[_0xe5a2('0xf')](_0xe5a2('0x10'),_0x4f6f3b,_0xe5a2('0x11'));logger[_0xe5a2('0x12')]('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x4f6f3b,_0xe5a2('0x11'),JSON[_0xe5a2('0x13')](_0x3a99bf));if(_0x3a99bf['error']){if(_0x3a99bf['error']['code']===0x1f4){logger['error']('UserProfileSection,\x20%s,\x20%s',_0x4f6f3b,_0x3a99bf[_0xe5a2('0x14')][_0xe5a2('0x15')]);return _0x1c8d31(_0x3a99bf[_0xe5a2('0x14')][_0xe5a2('0x15')]);}logger[_0xe5a2('0x14')]('UserProfileSection,\x20%s,\x20%s',_0x4f6f3b,_0x3a99bf['error'][_0xe5a2('0x15')]);return _0x5e8308(_0x3a99bf['error'][_0xe5a2('0x15')]);}else{logger['info'](_0xe5a2('0x10'),_0x4f6f3b,_0xe5a2('0x11'));_0x5e8308(_0x3a99bf[_0xe5a2('0x16')][_0xe5a2('0x15')]);}})[_0xe5a2('0x17')](function(_0x465d53){logger['error']('UserProfileSection,\x20%s,\x20%s',_0x4f6f3b,_0x465d53);_0x1c8d31(_0x465d53);});});}
\ No newline at end of file
+var _0xdb31=['code','message','info','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','request','then','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','stringify','error'];(function(_0x2dadb8,_0x5b14c1){var _0x5025b7=function(_0x435db9){while(--_0x435db9){_0x2dadb8['push'](_0x2dadb8['shift']());}};_0x5025b7(++_0x5b14c1);}(_0xdb31,0x169));var _0x1db3=function(_0x191c44,_0x20a896){_0x191c44=_0x191c44-0x0;var _0x1086cd=_0xdb31[_0x191c44];return _0x1086cd;};'use strict';var _=require('lodash');var util=require(_0x1db3('0x0'));var moment=require(_0x1db3('0x1'));var BPromise=require(_0x1db3('0x2'));var rs=require(_0x1db3('0x3'));var fs=require('fs');var Redis=require(_0x1db3('0x4'));var db=require(_0x1db3('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x1db3('0x6'))('rpc');var config=require(_0x1db3('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x1db3('0x8')][_0x1db3('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x10664a,_0x5363c2,_0x159ece){return new BPromise(function(_0x241ce3,_0x472de6){return client[_0x1db3('0xa')](_0x10664a,_0x159ece)[_0x1db3('0xb')](function(_0x5992b2){logger['info'](_0x1db3('0xc'),_0x5363c2,_0x1db3('0xd'));logger[_0x1db3('0xe')]('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x5363c2,_0x1db3('0xd'),JSON[_0x1db3('0xf')](_0x5992b2));if(_0x5992b2['error']){if(_0x5992b2[_0x1db3('0x10')][_0x1db3('0x11')]===0x1f4){logger[_0x1db3('0x10')](_0x1db3('0xc'),_0x5363c2,_0x5992b2[_0x1db3('0x10')][_0x1db3('0x12')]);return _0x472de6(_0x5992b2[_0x1db3('0x10')][_0x1db3('0x12')]);}logger[_0x1db3('0x10')](_0x1db3('0xc'),_0x5363c2,_0x5992b2['error'][_0x1db3('0x12')]);return _0x241ce3(_0x5992b2['error'][_0x1db3('0x12')]);}else{logger[_0x1db3('0x13')](_0x1db3('0xc'),_0x5363c2,_0x1db3('0xd'));_0x241ce3(_0x5992b2['result'][_0x1db3('0x12')]);}})[_0x1db3('0x14')](function(_0x3720b2){logger[_0x1db3('0x10')](_0x1db3('0xc'),_0x5363c2,_0x3720b2);_0x472de6(_0x3720b2);});});}
\ No newline at end of file