Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / userProfileResource / userProfileResource.rpc.js
index d51cef2..484dc3a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7dfd=['request','then','info','UserProfileResource,\x20%s,\x20%s','request\x20sent','debug','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http'];(function(_0x4fedd4,_0x1dbf05){var _0x5dce0d=function(_0x28f99e){while(--_0x28f99e){_0x4fedd4['push'](_0x4fedd4['shift']());}};_0x5dce0d(++_0x1dbf05);}(_0x7dfd,0xc4));var _0xd7df=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7dfd[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xd7df('0x0'));var util=require(_0xd7df('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xd7df('0x2'));var fs=require('fs');var Redis=require(_0xd7df('0x3'));var db=require(_0xd7df('0x4'))['db'];var utils=require(_0xd7df('0x5'));var logger=require(_0xd7df('0x6'))(_0xd7df('0x7'));var config=require(_0xd7df('0x8'));var jayson=require(_0xd7df('0x9'));var client=jayson['client'][_0xd7df('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4d4f5b,_0x5d63bf,_0x27b455){return new BPromise(function(_0xd69e57,_0x1b7a09){return client[_0xd7df('0xb')](_0x4d4f5b,_0x27b455)[_0xd7df('0xc')](function(_0x3bef68){logger[_0xd7df('0xd')](_0xd7df('0xe'),_0x5d63bf,_0xd7df('0xf'));logger[_0xd7df('0x10')](_0xd7df('0x11'),_0x5d63bf,_0xd7df('0xf'),JSON[_0xd7df('0x12')](_0x3bef68));if(_0x3bef68['error']){if(_0x3bef68[_0xd7df('0x13')]['code']===0x1f4){logger['error'](_0xd7df('0xe'),_0x5d63bf,_0x3bef68[_0xd7df('0x13')][_0xd7df('0x14')]);return _0x1b7a09(_0x3bef68[_0xd7df('0x13')][_0xd7df('0x14')]);}logger[_0xd7df('0x13')](_0xd7df('0xe'),_0x5d63bf,_0x3bef68[_0xd7df('0x13')][_0xd7df('0x14')]);return _0xd69e57(_0x3bef68[_0xd7df('0x13')]['message']);}else{logger[_0xd7df('0xd')](_0xd7df('0xe'),_0x5d63bf,_0xd7df('0xf'));_0xd69e57(_0x3bef68[_0xd7df('0x15')][_0xd7df('0x14')]);}})[_0xd7df('0x16')](function(_0x4ffb9b){logger[_0xd7df('0x13')]('UserProfileResource,\x20%s,\x20%s',_0x5d63bf,_0x4ffb9b);_0x1b7a09(_0x4ffb9b);});});}
\ No newline at end of file
+var _0xefcf=['jayson/promise','client','http','request','info','UserProfileResource,\x20%s,\x20%s','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','result','catch','util','bluebird','randomstring','../../config/logger','rpc','../../config/environment'];(function(_0x3f1101,_0x25faf4){var _0x2e7f63=function(_0x3a296e){while(--_0x3a296e){_0x3f1101['push'](_0x3f1101['shift']());}};_0x2e7f63(++_0x25faf4);}(_0xefcf,0x86));var _0xfefc=function(_0x356dcc,_0x51f8f7){_0x356dcc=_0x356dcc-0x0;var _0xe6c019=_0xefcf[_0x356dcc];return _0xe6c019;};'use strict';var _=require('lodash');var util=require(_0xfefc('0x0'));var moment=require('moment');var BPromise=require(_0xfefc('0x1'));var rs=require(_0xfefc('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xfefc('0x3'))(_0xfefc('0x4'));var config=require(_0xfefc('0x5'));var jayson=require(_0xfefc('0x6'));var client=jayson[_0xfefc('0x7')][_0xfefc('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x39940c,_0x105343,_0x132545){return new BPromise(function(_0x14f4aa,_0x1f1477){return client[_0xfefc('0x9')](_0x39940c,_0x132545)['then'](function(_0x169214){logger[_0xfefc('0xa')](_0xfefc('0xb'),_0x105343,'request\x20sent');logger['debug'](_0xfefc('0xc'),_0x105343,'request\x20sent',JSON[_0xfefc('0xd')](_0x169214));if(_0x169214[_0xfefc('0xe')]){if(_0x169214[_0xfefc('0xe')][_0xfefc('0xf')]===0x1f4){logger[_0xfefc('0xe')](_0xfefc('0xb'),_0x105343,_0x169214['error'][_0xfefc('0x10')]);return _0x1f1477(_0x169214[_0xfefc('0xe')][_0xfefc('0x10')]);}logger['error']('UserProfileResource,\x20%s,\x20%s',_0x105343,_0x169214[_0xfefc('0xe')][_0xfefc('0x10')]);return _0x14f4aa(_0x169214[_0xfefc('0xe')]['message']);}else{logger['info'](_0xfefc('0xb'),_0x105343,_0xfefc('0x11'));_0x14f4aa(_0x169214[_0xfefc('0x12')][_0xfefc('0x10')]);}})[_0xfefc('0x13')](function(_0xddae18){logger[_0xfefc('0xe')](_0xfefc('0xb'),_0x105343,_0xddae18);_0x1f1477(_0xddae18);});});}
\ No newline at end of file