Built motion from commit 53172ac8.|2.6.30
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index c05512b..d177bf4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1375=['../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','lodash','util','moment','randomstring','ioredis','../../config/utils'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1375,0x170));var _0x5137=function(_0x1d8c5c,_0x437a63){_0x1d8c5c=_0x1d8c5c-0x0;var _0x234264=_0x1375[_0x1d8c5c];return _0x234264;};'use strict';var _=require(_0x5137('0x0'));var util=require(_0x5137('0x1'));var moment=require(_0x5137('0x2'));var BPromise=require('bluebird');var rs=require(_0x5137('0x3'));var fs=require('fs');var Redis=require(_0x5137('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x5137('0x5'));var logger=require(_0x5137('0x6'))(_0x5137('0x7'));var config=require(_0x5137('0x8'));var jayson=require(_0x5137('0x9'));var client=jayson[_0x5137('0xa')][_0x5137('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2da232,_0x242481,_0x3f3143){return new BPromise(function(_0x435957,_0xfa622e){return client[_0x5137('0xc')](_0x2da232,_0x3f3143)[_0x5137('0xd')](function(_0x44f5cd){logger[_0x5137('0xe')](_0x5137('0xf'),_0x242481,_0x5137('0x10'));logger['debug']('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x242481,_0x5137('0x10'),JSON[_0x5137('0x11')](_0x44f5cd));if(_0x44f5cd[_0x5137('0x12')]){if(_0x44f5cd['error'][_0x5137('0x13')]===0x1f4){logger['error'](_0x5137('0xf'),_0x242481,_0x44f5cd[_0x5137('0x12')]['message']);return _0xfa622e(_0x44f5cd['error'][_0x5137('0x14')]);}logger[_0x5137('0x12')](_0x5137('0xf'),_0x242481,_0x44f5cd[_0x5137('0x12')][_0x5137('0x14')]);return _0x435957(_0x44f5cd[_0x5137('0x12')][_0x5137('0x14')]);}else{logger['info']('UserProfileSection,\x20%s,\x20%s',_0x242481,_0x5137('0x10'));_0x435957(_0x44f5cd['result'][_0x5137('0x14')]);}})[_0x5137('0x15')](function(_0x13ca57){logger['error'](_0x5137('0xf'),_0x242481,_0x13ca57);_0xfa622e(_0x13ca57);});});}
\ No newline at end of file
+var _0x99a0=['../../config/environment','jayson/promise','client','http','then','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','../../mysqldb','../../config/utils','rpc'];(function(_0x298ed3,_0x4ab5e1){var _0x5aad28=function(_0x168687){while(--_0x168687){_0x298ed3['push'](_0x298ed3['shift']());}};_0x5aad28(++_0x4ab5e1);}(_0x99a0,0x121));var _0x099a=function(_0x29d8ad,_0x131a5d){_0x29d8ad=_0x29d8ad-0x0;var _0x9b2c7b=_0x99a0[_0x29d8ad];return _0x9b2c7b;};'use strict';var _=require(_0x099a('0x0'));var util=require(_0x099a('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x099a('0x2'))['db'];var utils=require(_0x099a('0x3'));var logger=require('../../config/logger')(_0x099a('0x4'));var config=require(_0x099a('0x5'));var jayson=require(_0x099a('0x6'));var client=jayson[_0x099a('0x7')][_0x099a('0x8')]({'port':0x232a});function respondWithRpcPromise(_0xaebf62,_0x5a5de5,_0x18f862){return new BPromise(function(_0x2da8c8,_0x268440){return client['request'](_0xaebf62,_0x18f862)[_0x099a('0x9')](function(_0x29255d){logger[_0x099a('0xa')](_0x099a('0xb'),_0x5a5de5,_0x099a('0xc'));logger[_0x099a('0xd')](_0x099a('0xe'),_0x5a5de5,_0x099a('0xc'),JSON[_0x099a('0xf')](_0x29255d));if(_0x29255d[_0x099a('0x10')]){if(_0x29255d[_0x099a('0x10')][_0x099a('0x11')]===0x1f4){logger[_0x099a('0x10')](_0x099a('0xb'),_0x5a5de5,_0x29255d[_0x099a('0x10')]['message']);return _0x268440(_0x29255d[_0x099a('0x10')]['message']);}logger[_0x099a('0x10')]('UserProfileSection,\x20%s,\x20%s',_0x5a5de5,_0x29255d[_0x099a('0x10')][_0x099a('0x12')]);return _0x2da8c8(_0x29255d[_0x099a('0x10')][_0x099a('0x12')]);}else{logger[_0x099a('0xa')](_0x099a('0xb'),_0x5a5de5,'request\x20sent');_0x2da8c8(_0x29255d[_0x099a('0x13')][_0x099a('0x12')]);}})[_0x099a('0x14')](function(_0x371af7){logger['error'](_0x099a('0xb'),_0x5a5de5,_0x371af7);_0x268440(_0x371af7);});});}
\ No newline at end of file