Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 6b9c70a..c5f591c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc63b=['result','lodash','util','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','stringify','error','code','message'];(function(_0xc6be3a,_0x540e05){var _0x56a310=function(_0x50a144){while(--_0x50a144){_0xc6be3a['push'](_0xc6be3a['shift']());}};_0x56a310(++_0x540e05);}(_0xc63b,0x1ba));var _0xbc63=function(_0x152121,_0x120c53){_0x152121=_0x152121-0x0;var _0x592a85=_0xc63b[_0x152121];return _0x592a85;};'use strict';var _=require(_0xbc63('0x0'));var util=require(_0xbc63('0x1'));var moment=require(_0xbc63('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xbc63('0x3'));var db=require(_0xbc63('0x4'))['db'];var utils=require(_0xbc63('0x5'));var logger=require(_0xbc63('0x6'))(_0xbc63('0x7'));var config=require(_0xbc63('0x8'));var jayson=require(_0xbc63('0x9'));var client=jayson[_0xbc63('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x519afe,_0x28c863,_0x2cfc40){return new BPromise(function(_0x13bc9f,_0x2f0c45){return client[_0xbc63('0xb')](_0x519afe,_0x2cfc40)[_0xbc63('0xc')](function(_0x439b8d){logger[_0xbc63('0xd')](_0xbc63('0xe'),_0x28c863,_0xbc63('0xf'));logger['debug']('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x28c863,_0xbc63('0xf'),JSON[_0xbc63('0x10')](_0x439b8d));if(_0x439b8d[_0xbc63('0x11')]){if(_0x439b8d[_0xbc63('0x11')][_0xbc63('0x12')]===0x1f4){logger['error'](_0xbc63('0xe'),_0x28c863,_0x439b8d[_0xbc63('0x11')][_0xbc63('0x13')]);return _0x2f0c45(_0x439b8d[_0xbc63('0x11')][_0xbc63('0x13')]);}logger[_0xbc63('0x11')](_0xbc63('0xe'),_0x28c863,_0x439b8d[_0xbc63('0x11')][_0xbc63('0x13')]);return _0x13bc9f(_0x439b8d['error'][_0xbc63('0x13')]);}else{logger[_0xbc63('0xd')](_0xbc63('0xe'),_0x28c863,_0xbc63('0xf'));_0x13bc9f(_0x439b8d[_0xbc63('0x14')][_0xbc63('0x13')]);}})['catch'](function(_0xfdc541){logger[_0xbc63('0x11')]('UserProfileSection,\x20%s,\x20%s',_0x28c863,_0xfdc541);_0x2f0c45(_0xfdc541);});});}
\ No newline at end of file
+var _0x2560=['UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','info','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http','request'];(function(_0x2a8111,_0x177fe1){var _0x2f0f4e=function(_0xf8d115){while(--_0xf8d115){_0x2a8111['push'](_0x2a8111['shift']());}};_0x2f0f4e(++_0x177fe1);}(_0x2560,0xf0));var _0x0256=function(_0x1e6333,_0x331870){_0x1e6333=_0x1e6333-0x0;var _0x49cc29=_0x2560[_0x1e6333];return _0x49cc29;};'use strict';var _=require('lodash');var util=require(_0x0256('0x0'));var moment=require(_0x0256('0x1'));var BPromise=require(_0x0256('0x2'));var rs=require(_0x0256('0x3'));var fs=require('fs');var Redis=require(_0x0256('0x4'));var db=require(_0x0256('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x0256('0x6'))('rpc');var config=require(_0x0256('0x7'));var jayson=require(_0x0256('0x8'));var client=jayson[_0x0256('0x9')][_0x0256('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xf2527a,_0x180df1,_0x4a41d0){return new BPromise(function(_0x85ac81,_0x2576ae){return client[_0x0256('0xb')](_0xf2527a,_0x4a41d0)['then'](function(_0x5f316a){logger['info'](_0x0256('0xc'),_0x180df1,_0x0256('0xd'));logger[_0x0256('0xe')]('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x180df1,_0x0256('0xd'),JSON[_0x0256('0xf')](_0x5f316a));if(_0x5f316a['error']){if(_0x5f316a[_0x0256('0x10')][_0x0256('0x11')]===0x1f4){logger['error'](_0x0256('0xc'),_0x180df1,_0x5f316a[_0x0256('0x10')][_0x0256('0x12')]);return _0x2576ae(_0x5f316a[_0x0256('0x10')][_0x0256('0x12')]);}logger[_0x0256('0x10')]('UserProfileSection,\x20%s,\x20%s',_0x180df1,_0x5f316a[_0x0256('0x10')][_0x0256('0x12')]);return _0x85ac81(_0x5f316a['error'][_0x0256('0x12')]);}else{logger[_0x0256('0x13')](_0x0256('0xc'),_0x180df1,_0x0256('0xd'));_0x85ac81(_0x5f316a['result'][_0x0256('0x12')]);}})[_0x0256('0x14')](function(_0x5a9f33){logger[_0x0256('0x10')](_0x0256('0xc'),_0x180df1,_0x5a9f33);_0x2576ae(_0x5a9f33);});});}
\ No newline at end of file