Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 27e7a6d..23209e5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x143e=['../../config/environment','jayson/promise','http','request','then','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x143e,0xdf));var _0xe143=function(_0x38462d,_0x4a756d){_0x38462d=_0x38462d-0x0;var _0x4a0ece=_0x143e[_0x38462d];return _0x4a0ece;};'use strict';var _=require(_0xe143('0x0'));var util=require(_0xe143('0x1'));var moment=require('moment');var BPromise=require(_0xe143('0x2'));var rs=require(_0xe143('0x3'));var fs=require('fs');var Redis=require(_0xe143('0x4'));var db=require(_0xe143('0x5'))['db'];var utils=require(_0xe143('0x6'));var logger=require('../../config/logger')(_0xe143('0x7'));var config=require(_0xe143('0x8'));var jayson=require(_0xe143('0x9'));var client=jayson['client'][_0xe143('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4a827b,_0x5f2857,_0x491ebc){return new BPromise(function(_0x523fc7,_0x48098a){return client[_0xe143('0xb')](_0x4a827b,_0x491ebc)[_0xe143('0xc')](function(_0x40abed){logger['info'](_0xe143('0xd'),_0x5f2857,_0xe143('0xe'));logger[_0xe143('0xf')]('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x5f2857,_0xe143('0xe'),JSON[_0xe143('0x10')](_0x40abed));if(_0x40abed[_0xe143('0x11')]){if(_0x40abed[_0xe143('0x11')]['code']===0x1f4){logger[_0xe143('0x11')](_0xe143('0xd'),_0x5f2857,_0x40abed[_0xe143('0x11')]['message']);return _0x48098a(_0x40abed['error'][_0xe143('0x12')]);}logger['error']('UserProfileSection,\x20%s,\x20%s',_0x5f2857,_0x40abed[_0xe143('0x11')][_0xe143('0x12')]);return _0x523fc7(_0x40abed['error']['message']);}else{logger['info'](_0xe143('0xd'),_0x5f2857,_0xe143('0xe'));_0x523fc7(_0x40abed[_0xe143('0x13')][_0xe143('0x12')]);}})[_0xe143('0x14')](function(_0x1a4540){logger['error'](_0xe143('0xd'),_0x5f2857,_0x1a4540);_0x48098a(_0x1a4540);});});}
\ No newline at end of file
+var _0x8dbd=['lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','message','catch'];(function(_0x38289c,_0x16c002){var _0x335486=function(_0x3be7fa){while(--_0x3be7fa){_0x38289c['push'](_0x38289c['shift']());}};_0x335486(++_0x16c002);}(_0x8dbd,0x159));var _0xd8db=function(_0x501b9b,_0x55ed20){_0x501b9b=_0x501b9b-0x0;var _0x508f16=_0x8dbd[_0x501b9b];return _0x508f16;};'use strict';var _=require(_0xd8db('0x0'));var util=require(_0xd8db('0x1'));var moment=require('moment');var BPromise=require(_0xd8db('0x2'));var rs=require(_0xd8db('0x3'));var fs=require('fs');var Redis=require(_0xd8db('0x4'));var db=require(_0xd8db('0x5'))['db'];var utils=require(_0xd8db('0x6'));var logger=require(_0xd8db('0x7'))(_0xd8db('0x8'));var config=require(_0xd8db('0x9'));var jayson=require(_0xd8db('0xa'));var client=jayson[_0xd8db('0xb')][_0xd8db('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x2c08cf,_0x1fc5f1,_0x80f8e9){return new BPromise(function(_0x3bdf6a,_0x53afb5){return client[_0xd8db('0xd')](_0x2c08cf,_0x80f8e9)['then'](function(_0x10c57e){logger[_0xd8db('0xe')](_0xd8db('0xf'),_0x1fc5f1,_0xd8db('0x10'));logger[_0xd8db('0x11')](_0xd8db('0x12'),_0x1fc5f1,_0xd8db('0x10'),JSON[_0xd8db('0x13')](_0x10c57e));if(_0x10c57e[_0xd8db('0x14')]){if(_0x10c57e[_0xd8db('0x14')]['code']===0x1f4){logger[_0xd8db('0x14')](_0xd8db('0xf'),_0x1fc5f1,_0x10c57e[_0xd8db('0x14')][_0xd8db('0x15')]);return _0x53afb5(_0x10c57e[_0xd8db('0x14')][_0xd8db('0x15')]);}logger[_0xd8db('0x14')](_0xd8db('0xf'),_0x1fc5f1,_0x10c57e['error']['message']);return _0x3bdf6a(_0x10c57e[_0xd8db('0x14')][_0xd8db('0x15')]);}else{logger['info'](_0xd8db('0xf'),_0x1fc5f1,_0xd8db('0x10'));_0x3bdf6a(_0x10c57e['result'][_0xd8db('0x15')]);}})[_0xd8db('0x16')](function(_0x437806){logger[_0xd8db('0x14')](_0xd8db('0xf'),_0x1fc5f1,_0x437806);_0x53afb5(_0x437806);});});}
\ No newline at end of file