Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 67fefc2..a017454 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3573=['info','UserProfileSection,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http'];(function(_0x330cc5,_0x147150){var _0x5b3ad9=function(_0x418fc7){while(--_0x418fc7){_0x330cc5['push'](_0x330cc5['shift']());}};_0x5b3ad9(++_0x147150);}(_0x3573,0x15e));var _0x3357=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3573[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x3357('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x3357('0x1'));var rs=require(_0x3357('0x2'));var fs=require('fs');var Redis=require(_0x3357('0x3'));var db=require(_0x3357('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x3357('0x5'))(_0x3357('0x6'));var config=require('../../config/environment');var jayson=require(_0x3357('0x7'));var client=jayson[_0x3357('0x8')][_0x3357('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x595f70,_0xb49f1,_0x5763c1){return new BPromise(function(_0x275806,_0x3209a2){return client['request'](_0x595f70,_0x5763c1)['then'](function(_0x1e074c){logger[_0x3357('0xa')](_0x3357('0xb'),_0xb49f1,_0x3357('0xc'));logger['debug']('UserProfileSection,\x20%s,\x20%s,\x20%s',_0xb49f1,_0x3357('0xc'),JSON[_0x3357('0xd')](_0x1e074c));if(_0x1e074c['error']){if(_0x1e074c[_0x3357('0xe')]['code']===0x1f4){logger['error'](_0x3357('0xb'),_0xb49f1,_0x1e074c[_0x3357('0xe')]['message']);return _0x3209a2(_0x1e074c['error']['message']);}logger['error'](_0x3357('0xb'),_0xb49f1,_0x1e074c[_0x3357('0xe')]['message']);return _0x275806(_0x1e074c[_0x3357('0xe')][_0x3357('0xf')]);}else{logger[_0x3357('0xa')](_0x3357('0xb'),_0xb49f1,_0x3357('0xc'));_0x275806(_0x1e074c[_0x3357('0x10')][_0x3357('0xf')]);}})[_0x3357('0x11')](function(_0x4ec8de){logger[_0x3357('0xe')](_0x3357('0xb'),_0xb49f1,_0x4ec8de);_0x3209a2(_0x4ec8de);});});}
\ No newline at end of file
+var _0x038b=['../../config/utils','../../config/logger','../../config/environment','jayson/promise','request','then','UserProfileSection,\x20%s,\x20%s','request\x20sent','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','util','moment','bluebird','ioredis'];(function(_0x52c246,_0x18b06a){var _0x4db050=function(_0x2ffc2b){while(--_0x2ffc2b){_0x52c246['push'](_0x52c246['shift']());}};_0x4db050(++_0x18b06a);}(_0x038b,0x114));var _0xb038=function(_0x3f7fba,_0x168355){_0x3f7fba=_0x3f7fba-0x0;var _0x5d95d6=_0x038b[_0x3f7fba];return _0x5d95d6;};'use strict';var _=require('lodash');var util=require(_0xb038('0x0'));var moment=require(_0xb038('0x1'));var BPromise=require(_0xb038('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb038('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xb038('0x4'));var logger=require(_0xb038('0x5'))('rpc');var config=require(_0xb038('0x6'));var jayson=require(_0xb038('0x7'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x2e3e64,_0x1b077a,_0x1534a9){return new BPromise(function(_0x4b4085,_0x48a4d7){return client[_0xb038('0x8')](_0x2e3e64,_0x1534a9)[_0xb038('0x9')](function(_0x4d85b4){logger['info'](_0xb038('0xa'),_0x1b077a,_0xb038('0xb'));logger['debug'](_0xb038('0xc'),_0x1b077a,_0xb038('0xb'),JSON[_0xb038('0xd')](_0x4d85b4));if(_0x4d85b4[_0xb038('0xe')]){if(_0x4d85b4[_0xb038('0xe')][_0xb038('0xf')]===0x1f4){logger[_0xb038('0xe')](_0xb038('0xa'),_0x1b077a,_0x4d85b4[_0xb038('0xe')][_0xb038('0x10')]);return _0x48a4d7(_0x4d85b4[_0xb038('0xe')][_0xb038('0x10')]);}logger[_0xb038('0xe')](_0xb038('0xa'),_0x1b077a,_0x4d85b4[_0xb038('0xe')][_0xb038('0x10')]);return _0x4b4085(_0x4d85b4[_0xb038('0xe')]['message']);}else{logger[_0xb038('0x11')](_0xb038('0xa'),_0x1b077a,_0xb038('0xb'));_0x4b4085(_0x4d85b4[_0xb038('0x12')][_0xb038('0x10')]);}})[_0xb038('0x13')](function(_0x5246c3){logger[_0xb038('0xe')](_0xb038('0xa'),_0x1b077a,_0x5246c3);_0x48a4d7(_0x5246c3);});});}
\ No newline at end of file