Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 7769a22..bb9ca94 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc03c=['catch','lodash','util','moment','bluebird','../../mysqldb','../../config/utils','rpc','jayson/promise','client','http','request','then','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','error','message'];(function(_0x1885f3,_0x3408e8){var _0x5de352=function(_0x6bc4fe){while(--_0x6bc4fe){_0x1885f3['push'](_0x1885f3['shift']());}};_0x5de352(++_0x3408e8);}(_0xc03c,0x16a));var _0xcc03=function(_0x49beea,_0x47add1){_0x49beea=_0x49beea-0x0;var _0x27693a=_0xc03c[_0x49beea];return _0x27693a;};'use strict';var _=require(_0xcc03('0x0'));var util=require(_0xcc03('0x1'));var moment=require(_0xcc03('0x2'));var BPromise=require(_0xcc03('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xcc03('0x4'))['db'];var utils=require(_0xcc03('0x5'));var logger=require('../../config/logger')(_0xcc03('0x6'));var config=require('../../config/environment');var jayson=require(_0xcc03('0x7'));var client=jayson[_0xcc03('0x8')][_0xcc03('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2977f4,_0x27099c,_0x421622){return new BPromise(function(_0x1511b9,_0x5b3a38){return client[_0xcc03('0xa')](_0x2977f4,_0x421622)[_0xcc03('0xb')](function(_0x375e9f){logger[_0xcc03('0xc')](_0xcc03('0xd'),_0x27099c,_0xcc03('0xe'));logger[_0xcc03('0xf')]('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x27099c,_0xcc03('0xe'),JSON['stringify'](_0x375e9f));if(_0x375e9f['error']){if(_0x375e9f[_0xcc03('0x10')]['code']===0x1f4){logger[_0xcc03('0x10')](_0xcc03('0xd'),_0x27099c,_0x375e9f['error'][_0xcc03('0x11')]);return _0x5b3a38(_0x375e9f[_0xcc03('0x10')]['message']);}logger['error'](_0xcc03('0xd'),_0x27099c,_0x375e9f[_0xcc03('0x10')][_0xcc03('0x11')]);return _0x1511b9(_0x375e9f[_0xcc03('0x10')][_0xcc03('0x11')]);}else{logger[_0xcc03('0xc')]('UserProfileSection,\x20%s,\x20%s',_0x27099c,_0xcc03('0xe'));_0x1511b9(_0x375e9f['result'][_0xcc03('0x11')]);}})[_0xcc03('0x12')](function(_0x51ba84){logger['error'](_0xcc03('0xd'),_0x27099c,_0x51ba84);_0x5b3a38(_0x51ba84);});});}
\ No newline at end of file
+var _0x67bc=['info','UserProfileSection,\x20%s,\x20%s','request\x20sent','UserProfileSection,\x20%s,\x20%s,\x20%s','error','message','result','lodash','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','request','then'];(function(_0x37ffea,_0x25b006){var _0x2e2615=function(_0x5e6c74){while(--_0x5e6c74){_0x37ffea['push'](_0x37ffea['shift']());}};_0x2e2615(++_0x25b006);}(_0x67bc,0x1d7));var _0xc67b=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x67bc[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0xc67b('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xc67b('0x1'));var fs=require('fs');var Redis=require(_0xc67b('0x2'));var db=require(_0xc67b('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xc67b('0x4'))('rpc');var config=require(_0xc67b('0x5'));var jayson=require('jayson/promise');var client=jayson[_0xc67b('0x6')]['http']({'port':0x232a});function respondWithRpcPromise(_0x45f0ce,_0x4d1b3f,_0x5df8a7){return new BPromise(function(_0x1ed563,_0x485f28){return client[_0xc67b('0x7')](_0x45f0ce,_0x5df8a7)[_0xc67b('0x8')](function(_0x20c25d){logger[_0xc67b('0x9')](_0xc67b('0xa'),_0x4d1b3f,_0xc67b('0xb'));logger['debug'](_0xc67b('0xc'),_0x4d1b3f,_0xc67b('0xb'),JSON['stringify'](_0x20c25d));if(_0x20c25d[_0xc67b('0xd')]){if(_0x20c25d[_0xc67b('0xd')]['code']===0x1f4){logger['error'](_0xc67b('0xa'),_0x4d1b3f,_0x20c25d['error'][_0xc67b('0xe')]);return _0x485f28(_0x20c25d['error'][_0xc67b('0xe')]);}logger[_0xc67b('0xd')](_0xc67b('0xa'),_0x4d1b3f,_0x20c25d[_0xc67b('0xd')][_0xc67b('0xe')]);return _0x1ed563(_0x20c25d['error'][_0xc67b('0xe')]);}else{logger[_0xc67b('0x9')](_0xc67b('0xa'),_0x4d1b3f,'request\x20sent');_0x1ed563(_0x20c25d[_0xc67b('0xf')]['message']);}})['catch'](function(_0x387003){logger[_0xc67b('0xd')](_0xc67b('0xa'),_0x4d1b3f,_0x387003);_0x485f28(_0x387003);});});}
\ No newline at end of file