Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 535dd5d..c0d5011 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb3bc=['request\x20sent','error','code','UserProfileSection,\x20%s,\x20%s','message','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','request','then','info'];(function(_0x5f3de3,_0x40f0f5){var _0x287e0d=function(_0x3189dc){while(--_0x3189dc){_0x5f3de3['push'](_0x5f3de3['shift']());}};_0x287e0d(++_0x40f0f5);}(_0xb3bc,0xd7));var _0xcb3b=function(_0x340c24,_0x4ff751){_0x340c24=_0x340c24-0x0;var _0xd1f1e9=_0xb3bc[_0x340c24];return _0xd1f1e9;};'use strict';var _=require(_0xcb3b('0x0'));var util=require('util');var moment=require(_0xcb3b('0x1'));var BPromise=require(_0xcb3b('0x2'));var rs=require(_0xcb3b('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xcb3b('0x4'))['db'];var utils=require(_0xcb3b('0x5'));var logger=require(_0xcb3b('0x6'))(_0xcb3b('0x7'));var config=require(_0xcb3b('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xcb3b('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3835df,_0x58f9a7,_0x2634ac){return new BPromise(function(_0x1fb156,_0x27a41b){return client[_0xcb3b('0xa')](_0x3835df,_0x2634ac)[_0xcb3b('0xb')](function(_0x85bc9f){logger[_0xcb3b('0xc')]('UserProfileSection,\x20%s,\x20%s',_0x58f9a7,_0xcb3b('0xd'));logger['debug']('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x58f9a7,_0xcb3b('0xd'),JSON['stringify'](_0x85bc9f));if(_0x85bc9f[_0xcb3b('0xe')]){if(_0x85bc9f[_0xcb3b('0xe')][_0xcb3b('0xf')]===0x1f4){logger[_0xcb3b('0xe')](_0xcb3b('0x10'),_0x58f9a7,_0x85bc9f[_0xcb3b('0xe')]['message']);return _0x27a41b(_0x85bc9f[_0xcb3b('0xe')][_0xcb3b('0x11')]);}logger[_0xcb3b('0xe')](_0xcb3b('0x10'),_0x58f9a7,_0x85bc9f['error'][_0xcb3b('0x11')]);return _0x1fb156(_0x85bc9f['error'][_0xcb3b('0x11')]);}else{logger[_0xcb3b('0xc')]('UserProfileSection,\x20%s,\x20%s',_0x58f9a7,'request\x20sent');_0x1fb156(_0x85bc9f['result'][_0xcb3b('0x11')]);}})[_0xcb3b('0x12')](function(_0x1b1171){logger['error']('UserProfileSection,\x20%s,\x20%s',_0x58f9a7,_0x1b1171);_0x27a41b(_0x1b1171);});});}
\ No newline at end of file
+var _0xfa98=['../../config/environment','jayson/promise','client','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','message','info','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb'];(function(_0x21defb,_0x137d35){var _0x2356d0=function(_0x27606a){while(--_0x27606a){_0x21defb['push'](_0x21defb['shift']());}};_0x2356d0(++_0x137d35);}(_0xfa98,0x11a));var _0x8fa9=function(_0x10ec84,_0x267064){_0x10ec84=_0x10ec84-0x0;var _0x12565e=_0xfa98[_0x10ec84];return _0x12565e;};'use strict';var _=require(_0x8fa9('0x0'));var util=require(_0x8fa9('0x1'));var moment=require(_0x8fa9('0x2'));var BPromise=require(_0x8fa9('0x3'));var rs=require(_0x8fa9('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x8fa9('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')('rpc');var config=require(_0x8fa9('0x6'));var jayson=require(_0x8fa9('0x7'));var client=jayson[_0x8fa9('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x49b148,_0x271385,_0x34231e){return new BPromise(function(_0x5666a9,_0x32e38d){return client['request'](_0x49b148,_0x34231e)['then'](function(_0x1b7043){logger['info'](_0x8fa9('0x9'),_0x271385,_0x8fa9('0xa'));logger[_0x8fa9('0xb')](_0x8fa9('0xc'),_0x271385,_0x8fa9('0xa'),JSON[_0x8fa9('0xd')](_0x1b7043));if(_0x1b7043[_0x8fa9('0xe')]){if(_0x1b7043[_0x8fa9('0xe')]['code']===0x1f4){logger['error'](_0x8fa9('0x9'),_0x271385,_0x1b7043['error'][_0x8fa9('0xf')]);return _0x32e38d(_0x1b7043[_0x8fa9('0xe')][_0x8fa9('0xf')]);}logger[_0x8fa9('0xe')](_0x8fa9('0x9'),_0x271385,_0x1b7043[_0x8fa9('0xe')]['message']);return _0x5666a9(_0x1b7043[_0x8fa9('0xe')][_0x8fa9('0xf')]);}else{logger[_0x8fa9('0x10')](_0x8fa9('0x9'),_0x271385,_0x8fa9('0xa'));_0x5666a9(_0x1b7043['result'][_0x8fa9('0xf')]);}})[_0x8fa9('0x11')](function(_0x357bb0){logger[_0x8fa9('0xe')]('UserProfileSection,\x20%s,\x20%s',_0x271385,_0x357bb0);_0x32e38d(_0x357bb0);});});}
\ No newline at end of file