Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / userProfileResource / userProfileResource.rpc.js
index eef70f6..354cf43 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x05a7=['info','request\x20sent','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','code','UserProfileResource,\x20%s,\x20%s','message','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http'];(function(_0xe59cff,_0x1a7dbe){var _0x26e8c1=function(_0x6a95cc){while(--_0x6a95cc){_0xe59cff['push'](_0xe59cff['shift']());}};_0x26e8c1(++_0x1a7dbe);}(_0x05a7,0x144));var _0x705a=function(_0x191c44,_0x20a896){_0x191c44=_0x191c44-0x0;var _0x1086cd=_0x05a7[_0x191c44];return _0x1086cd;};'use strict';var _=require(_0x705a('0x0'));var util=require(_0x705a('0x1'));var moment=require(_0x705a('0x2'));var BPromise=require('bluebird');var rs=require(_0x705a('0x3'));var fs=require('fs');var Redis=require(_0x705a('0x4'));var db=require(_0x705a('0x5'))['db'];var utils=require(_0x705a('0x6'));var logger=require(_0x705a('0x7'))(_0x705a('0x8'));var config=require(_0x705a('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x705a('0xa')][_0x705a('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x21631f,_0x207ad5,_0x433989){return new BPromise(function(_0x277624,_0x1d14d1){return client['request'](_0x21631f,_0x433989)['then'](function(_0x36944c){logger[_0x705a('0xc')]('UserProfileResource,\x20%s,\x20%s',_0x207ad5,_0x705a('0xd'));logger['debug'](_0x705a('0xe'),_0x207ad5,'request\x20sent',JSON[_0x705a('0xf')](_0x36944c));if(_0x36944c[_0x705a('0x10')]){if(_0x36944c[_0x705a('0x10')][_0x705a('0x11')]===0x1f4){logger[_0x705a('0x10')](_0x705a('0x12'),_0x207ad5,_0x36944c[_0x705a('0x10')][_0x705a('0x13')]);return _0x1d14d1(_0x36944c['error'][_0x705a('0x13')]);}logger['error'](_0x705a('0x12'),_0x207ad5,_0x36944c['error'][_0x705a('0x13')]);return _0x277624(_0x36944c['error'][_0x705a('0x13')]);}else{logger[_0x705a('0xc')](_0x705a('0x12'),_0x207ad5,_0x705a('0xd'));_0x277624(_0x36944c['result']['message']);}})[_0x705a('0x14')](function(_0x4b43ad){logger[_0x705a('0x10')](_0x705a('0x12'),_0x207ad5,_0x4b43ad);_0x1d14d1(_0x4b43ad);});});}
\ No newline at end of file
+var _0xff61=['request\x20sent','debug','UserProfileResource,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','UserProfileResource,\x20%s,\x20%s'];(function(_0x5bd30e,_0x1cf617){var _0x52f137=function(_0x4ff05b){while(--_0x4ff05b){_0x5bd30e['push'](_0x5bd30e['shift']());}};_0x52f137(++_0x1cf617);}(_0xff61,0x71));var _0x1ff6=function(_0x5e3adc,_0x28a873){_0x5e3adc=_0x5e3adc-0x0;var _0x530fd9=_0xff61[_0x5e3adc];return _0x530fd9;};'use strict';var _=require(_0x1ff6('0x0'));var util=require(_0x1ff6('0x1'));var moment=require('moment');var BPromise=require(_0x1ff6('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x1ff6('0x3'));var db=require(_0x1ff6('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x1ff6('0x5'))(_0x1ff6('0x6'));var config=require(_0x1ff6('0x7'));var jayson=require(_0x1ff6('0x8'));var client=jayson[_0x1ff6('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x18edc7,_0x14a978,_0x2cc7c3){return new BPromise(function(_0x395fee,_0x52cb20){return client[_0x1ff6('0xa')](_0x18edc7,_0x2cc7c3)['then'](function(_0xb8d69e){logger[_0x1ff6('0xb')](_0x1ff6('0xc'),_0x14a978,_0x1ff6('0xd'));logger[_0x1ff6('0xe')](_0x1ff6('0xf'),_0x14a978,'request\x20sent',JSON[_0x1ff6('0x10')](_0xb8d69e));if(_0xb8d69e[_0x1ff6('0x11')]){if(_0xb8d69e[_0x1ff6('0x11')]['code']===0x1f4){logger['error'](_0x1ff6('0xc'),_0x14a978,_0xb8d69e[_0x1ff6('0x11')][_0x1ff6('0x12')]);return _0x52cb20(_0xb8d69e[_0x1ff6('0x11')][_0x1ff6('0x12')]);}logger[_0x1ff6('0x11')](_0x1ff6('0xc'),_0x14a978,_0xb8d69e[_0x1ff6('0x11')]['message']);return _0x395fee(_0xb8d69e[_0x1ff6('0x11')]['message']);}else{logger[_0x1ff6('0xb')](_0x1ff6('0xc'),_0x14a978,_0x1ff6('0xd'));_0x395fee(_0xb8d69e[_0x1ff6('0x13')][_0x1ff6('0x12')]);}})[_0x1ff6('0x14')](function(_0x1e9eb4){logger[_0x1ff6('0x11')](_0x1ff6('0xc'),_0x14a978,_0x1e9eb4);_0x52cb20(_0x1e9eb4);});});}
\ No newline at end of file