Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / userProfileResource / userProfileResource.rpc.js
index fdd5359..24ecfa5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdde2=['http','request','then','info','UserProfileResource,\x20%s,\x20%s','request\x20sent','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','client'];(function(_0x398634,_0x47e35a){var _0x3d8c33=function(_0xda10b1){while(--_0xda10b1){_0x398634['push'](_0x398634['shift']());}};_0x3d8c33(++_0x47e35a);}(_0xdde2,0xbd));var _0x2dde=function(_0x5bb047,_0x275dc7){_0x5bb047=_0x5bb047-0x0;var _0x44a35d=_0xdde2[_0x5bb047];return _0x44a35d;};'use strict';var _=require(_0x2dde('0x0'));var util=require(_0x2dde('0x1'));var moment=require(_0x2dde('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x2dde('0x3'));var db=require(_0x2dde('0x4'))['db'];var utils=require(_0x2dde('0x5'));var logger=require('../../config/logger')(_0x2dde('0x6'));var config=require(_0x2dde('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x2dde('0x8')][_0x2dde('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xb2a028,_0x5c7358,_0x4239eb){return new BPromise(function(_0x75f0eb,_0x473cdb){return client[_0x2dde('0xa')](_0xb2a028,_0x4239eb)[_0x2dde('0xb')](function(_0x36247b){logger[_0x2dde('0xc')](_0x2dde('0xd'),_0x5c7358,_0x2dde('0xe'));logger['debug'](_0x2dde('0xf'),_0x5c7358,_0x2dde('0xe'),JSON[_0x2dde('0x10')](_0x36247b));if(_0x36247b[_0x2dde('0x11')]){if(_0x36247b['error'][_0x2dde('0x12')]===0x1f4){logger['error'](_0x2dde('0xd'),_0x5c7358,_0x36247b['error']['message']);return _0x473cdb(_0x36247b['error'][_0x2dde('0x13')]);}logger[_0x2dde('0x11')]('UserProfileResource,\x20%s,\x20%s',_0x5c7358,_0x36247b[_0x2dde('0x11')][_0x2dde('0x13')]);return _0x75f0eb(_0x36247b[_0x2dde('0x11')][_0x2dde('0x13')]);}else{logger['info'](_0x2dde('0xd'),_0x5c7358,_0x2dde('0xe'));_0x75f0eb(_0x36247b[_0x2dde('0x14')][_0x2dde('0x13')]);}})[_0x2dde('0x15')](function(_0x146f6b){logger[_0x2dde('0x11')](_0x2dde('0xd'),_0x5c7358,_0x146f6b);_0x473cdb(_0x146f6b);});});}
\ No newline at end of file
+var _0x3d63=['../../config/logger','rpc','client','http','request','then','request\x20sent','debug','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','UserProfileResource,\x20%s,\x20%s','info','result','message','catch','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3d63,0x186));var _0x33d6=function(_0xe840ea,_0x442b87){_0xe840ea=_0xe840ea-0x0;var _0x13560e=_0x3d63[_0xe840ea];return _0x13560e;};'use strict';var _=require('lodash');var util=require(_0x33d6('0x0'));var moment=require(_0x33d6('0x1'));var BPromise=require(_0x33d6('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x33d6('0x3'));var db=require(_0x33d6('0x4'))['db'];var utils=require(_0x33d6('0x5'));var logger=require(_0x33d6('0x6'))(_0x33d6('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x33d6('0x8')][_0x33d6('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5e861a,_0xead969,_0x579709){return new BPromise(function(_0x365a51,_0x40d762){return client[_0x33d6('0xa')](_0x5e861a,_0x579709)[_0x33d6('0xb')](function(_0x518003){logger['info']('UserProfileResource,\x20%s,\x20%s',_0xead969,_0x33d6('0xc'));logger[_0x33d6('0xd')](_0x33d6('0xe'),_0xead969,_0x33d6('0xc'),JSON[_0x33d6('0xf')](_0x518003));if(_0x518003['error']){if(_0x518003[_0x33d6('0x10')]['code']===0x1f4){logger[_0x33d6('0x10')](_0x33d6('0x11'),_0xead969,_0x518003['error']['message']);return _0x40d762(_0x518003[_0x33d6('0x10')]['message']);}logger[_0x33d6('0x10')](_0x33d6('0x11'),_0xead969,_0x518003[_0x33d6('0x10')]['message']);return _0x365a51(_0x518003[_0x33d6('0x10')]['message']);}else{logger[_0x33d6('0x12')](_0x33d6('0x11'),_0xead969,'request\x20sent');_0x365a51(_0x518003[_0x33d6('0x13')][_0x33d6('0x14')]);}})[_0x33d6('0x15')](function(_0x26e784){logger[_0x33d6('0x10')](_0x33d6('0x11'),_0xead969,_0x26e784);_0x40d762(_0x26e784);});});}
\ No newline at end of file