Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 67fefc2..e6a5afa 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 _0x7cca=['rpc','../../config/environment','client','http','request','then','info','debug','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','code','error','message','UserProfileSection,\x20%s,\x20%s','request\x20sent','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger'];(function(_0x5d01e3,_0x580578){var _0x4671b9=function(_0x233638){while(--_0x233638){_0x5d01e3['push'](_0x5d01e3['shift']());}};_0x4671b9(++_0x580578);}(_0x7cca,0x160));var _0xa7cc=function(_0x2864a3,_0x59677c){_0x2864a3=_0x2864a3-0x0;var _0x1977a2=_0x7cca[_0x2864a3];return _0x1977a2;};'use strict';var _=require(_0xa7cc('0x0'));var util=require(_0xa7cc('0x1'));var moment=require(_0xa7cc('0x2'));var BPromise=require(_0xa7cc('0x3'));var rs=require(_0xa7cc('0x4'));var fs=require('fs');var Redis=require(_0xa7cc('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xa7cc('0x6'));var logger=require(_0xa7cc('0x7'))(_0xa7cc('0x8'));var config=require(_0xa7cc('0x9'));var jayson=require('jayson/promise');var client=jayson[_0xa7cc('0xa')][_0xa7cc('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5f1762,_0x3b238d,_0x3baf82){return new BPromise(function(_0x1d51ce,_0x3b34c6){return client[_0xa7cc('0xc')](_0x5f1762,_0x3baf82)[_0xa7cc('0xd')](function(_0x5b1071){logger[_0xa7cc('0xe')]('UserProfileSection,\x20%s,\x20%s',_0x3b238d,'request\x20sent');logger[_0xa7cc('0xf')](_0xa7cc('0x10'),_0x3b238d,'request\x20sent',JSON[_0xa7cc('0x11')](_0x5b1071));if(_0x5b1071['error']){if(_0x5b1071['error'][_0xa7cc('0x12')]===0x1f4){logger[_0xa7cc('0x13')]('UserProfileSection,\x20%s,\x20%s',_0x3b238d,_0x5b1071['error'][_0xa7cc('0x14')]);return _0x3b34c6(_0x5b1071['error'][_0xa7cc('0x14')]);}logger[_0xa7cc('0x13')](_0xa7cc('0x15'),_0x3b238d,_0x5b1071[_0xa7cc('0x13')][_0xa7cc('0x14')]);return _0x1d51ce(_0x5b1071[_0xa7cc('0x13')]['message']);}else{logger['info']('UserProfileSection,\x20%s,\x20%s',_0x3b238d,_0xa7cc('0x16'));_0x1d51ce(_0x5b1071['result'][_0xa7cc('0x14')]);}})[_0xa7cc('0x17')](function(_0x5b14b7){logger[_0xa7cc('0x13')](_0xa7cc('0x15'),_0x3b238d,_0x5b14b7);_0x3b34c6(_0x5b14b7);});});}
\ No newline at end of file