Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / userProfileResource / userProfileResource.rpc.js
index b6f4b2c..11b743a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0ea1=['http','then','info','UserProfileResource,\x20%s,\x20%s','request\x20sent','debug','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x1db900,_0x2bf2fe){var _0x3e9b7f=function(_0x49da7f){while(--_0x49da7f){_0x1db900['push'](_0x1db900['shift']());}};_0x3e9b7f(++_0x2bf2fe);}(_0x0ea1,0xe4));var _0x10ea=function(_0x112e0e,_0x25f61a){_0x112e0e=_0x112e0e-0x0;var _0x35d007=_0x0ea1[_0x112e0e];return _0x35d007;};'use strict';var _=require(_0x10ea('0x0'));var util=require(_0x10ea('0x1'));var moment=require(_0x10ea('0x2'));var BPromise=require(_0x10ea('0x3'));var rs=require(_0x10ea('0x4'));var fs=require('fs');var Redis=require(_0x10ea('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x10ea('0x6'));var logger=require(_0x10ea('0x7'))(_0x10ea('0x8'));var config=require(_0x10ea('0x9'));var jayson=require(_0x10ea('0xa'));var client=jayson[_0x10ea('0xb')][_0x10ea('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1f9113,_0x3924e9,_0x553c01){return new BPromise(function(_0x5e2627,_0x378f1e){return client['request'](_0x1f9113,_0x553c01)[_0x10ea('0xd')](function(_0x62c7af){logger[_0x10ea('0xe')](_0x10ea('0xf'),_0x3924e9,_0x10ea('0x10'));logger[_0x10ea('0x11')](_0x10ea('0x12'),_0x3924e9,_0x10ea('0x10'),JSON[_0x10ea('0x13')](_0x62c7af));if(_0x62c7af[_0x10ea('0x14')]){if(_0x62c7af[_0x10ea('0x14')][_0x10ea('0x15')]===0x1f4){logger[_0x10ea('0x14')](_0x10ea('0xf'),_0x3924e9,_0x62c7af[_0x10ea('0x14')]['message']);return _0x378f1e(_0x62c7af['error'][_0x10ea('0x16')]);}logger[_0x10ea('0x14')](_0x10ea('0xf'),_0x3924e9,_0x62c7af[_0x10ea('0x14')][_0x10ea('0x16')]);return _0x5e2627(_0x62c7af[_0x10ea('0x14')]['message']);}else{logger[_0x10ea('0xe')](_0x10ea('0xf'),_0x3924e9,_0x10ea('0x10'));_0x5e2627(_0x62c7af['result'][_0x10ea('0x16')]);}})[_0x10ea('0x17')](function(_0x4ce687){logger[_0x10ea('0x14')]('UserProfileResource,\x20%s,\x20%s',_0x3924e9,_0x4ce687);_0x378f1e(_0x4ce687);});});}
\ No newline at end of file
+var _0x63df=['code','UserProfileResource,\x20%s,\x20%s','message','result','catch','util','bluebird','randomstring','ioredis','../../config/logger','../../config/environment','jayson/promise','client','http','request','info','request\x20sent','stringify','error'];(function(_0x4ca3e0,_0x3fde51){var _0x30d3a3=function(_0x475df5){while(--_0x475df5){_0x4ca3e0['push'](_0x4ca3e0['shift']());}};_0x30d3a3(++_0x3fde51);}(_0x63df,0x135));var _0xf63d=function(_0x5f309e,_0x66e31){_0x5f309e=_0x5f309e-0x0;var _0x487b5e=_0x63df[_0x5f309e];return _0x487b5e;};'use strict';var _=require('lodash');var util=require(_0xf63d('0x0'));var moment=require('moment');var BPromise=require(_0xf63d('0x1'));var rs=require(_0xf63d('0x2'));var fs=require('fs');var Redis=require(_0xf63d('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xf63d('0x4'))('rpc');var config=require(_0xf63d('0x5'));var jayson=require(_0xf63d('0x6'));var client=jayson[_0xf63d('0x7')][_0xf63d('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x4a10ca,_0x4a407e,_0x3d4872){return new BPromise(function(_0x9de4c4,_0x3df6cd){return client[_0xf63d('0x9')](_0x4a10ca,_0x3d4872)['then'](function(_0x42ff77){logger[_0xf63d('0xa')]('UserProfileResource,\x20%s,\x20%s',_0x4a407e,'request\x20sent');logger['debug']('UserProfileResource,\x20%s,\x20%s,\x20%s',_0x4a407e,_0xf63d('0xb'),JSON[_0xf63d('0xc')](_0x42ff77));if(_0x42ff77[_0xf63d('0xd')]){if(_0x42ff77[_0xf63d('0xd')][_0xf63d('0xe')]===0x1f4){logger['error'](_0xf63d('0xf'),_0x4a407e,_0x42ff77[_0xf63d('0xd')][_0xf63d('0x10')]);return _0x3df6cd(_0x42ff77[_0xf63d('0xd')][_0xf63d('0x10')]);}logger[_0xf63d('0xd')](_0xf63d('0xf'),_0x4a407e,_0x42ff77['error'][_0xf63d('0x10')]);return _0x9de4c4(_0x42ff77[_0xf63d('0xd')][_0xf63d('0x10')]);}else{logger['info'](_0xf63d('0xf'),_0x4a407e,_0xf63d('0xb'));_0x9de4c4(_0x42ff77[_0xf63d('0x11')][_0xf63d('0x10')]);}})[_0xf63d('0x12')](function(_0x5b88e3){logger[_0xf63d('0xd')](_0xf63d('0xf'),_0x4a407e,_0x5b88e3);_0x3df6cd(_0x5b88e3);});});}
\ No newline at end of file