Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 2bc3f3b..c5f591c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd25f=['info','UserProfileSection,\x20%s,\x20%s','request\x20sent','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','client','request','then'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xd25f,0xdc));var _0xfd25=function(_0x27250c,_0x3e6637){_0x27250c=_0x27250c-0x0;var _0x7e3095=_0xd25f[_0x27250c];return _0x7e3095;};'use strict';var _=require(_0xfd25('0x0'));var util=require(_0xfd25('0x1'));var moment=require(_0xfd25('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xfd25('0x3'));var db=require(_0xfd25('0x4'))['db'];var utils=require(_0xfd25('0x5'));var logger=require('../../config/logger')(_0xfd25('0x6'));var config=require('../../config/environment');var jayson=require(_0xfd25('0x7'));var client=jayson[_0xfd25('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x148f8b,_0x3d178a,_0x3cac5d){return new BPromise(function(_0x131dea,_0x3cbf18){return client[_0xfd25('0x9')](_0x148f8b,_0x3cac5d)[_0xfd25('0xa')](function(_0x2b7752){logger[_0xfd25('0xb')](_0xfd25('0xc'),_0x3d178a,_0xfd25('0xd'));logger['debug'](_0xfd25('0xe'),_0x3d178a,_0xfd25('0xd'),JSON[_0xfd25('0xf')](_0x2b7752));if(_0x2b7752['error']){if(_0x2b7752[_0xfd25('0x10')][_0xfd25('0x11')]===0x1f4){logger[_0xfd25('0x10')](_0xfd25('0xc'),_0x3d178a,_0x2b7752[_0xfd25('0x10')][_0xfd25('0x12')]);return _0x3cbf18(_0x2b7752[_0xfd25('0x10')][_0xfd25('0x12')]);}logger[_0xfd25('0x10')](_0xfd25('0xc'),_0x3d178a,_0x2b7752[_0xfd25('0x10')][_0xfd25('0x12')]);return _0x131dea(_0x2b7752[_0xfd25('0x10')][_0xfd25('0x12')]);}else{logger[_0xfd25('0xb')](_0xfd25('0xc'),_0x3d178a,'request\x20sent');_0x131dea(_0x2b7752[_0xfd25('0x13')][_0xfd25('0x12')]);}})[_0xfd25('0x14')](function(_0x38f3f4){logger[_0xfd25('0x10')](_0xfd25('0xc'),_0x3d178a,_0x38f3f4);_0x3cbf18(_0x38f3f4);});});}
\ 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