Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / userProfileSection / userProfileSection.rpc.js
index 1aa4f42..1db2287 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5d06=['http','request','then','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','debug','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','client'];(function(_0xf35bd4,_0x51ff64){var _0x47912b=function(_0x269818){while(--_0x269818){_0xf35bd4['push'](_0xf35bd4['shift']());}};_0x47912b(++_0x51ff64);}(_0x5d06,0x1b2));var _0x65d0=function(_0xdac7dd,_0x59f328){_0xdac7dd=_0xdac7dd-0x0;var _0xe73b94=_0x5d06[_0xdac7dd];return _0xe73b94;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x65d0('0x0'));var BPromise=require(_0x65d0('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x65d0('0x2'))['db'];var utils=require(_0x65d0('0x3'));var logger=require(_0x65d0('0x4'))(_0x65d0('0x5'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x65d0('0x6')][_0x65d0('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x66aa3a,_0x2289b2,_0x31370b){return new BPromise(function(_0x814e4c,_0x5d471a){return client[_0x65d0('0x8')](_0x66aa3a,_0x31370b)[_0x65d0('0x9')](function(_0x21bd91){logger[_0x65d0('0xa')](_0x65d0('0xb'),_0x2289b2,_0x65d0('0xc'));logger[_0x65d0('0xd')](_0x65d0('0xe'),_0x2289b2,_0x65d0('0xc'),JSON[_0x65d0('0xf')](_0x21bd91));if(_0x21bd91[_0x65d0('0x10')]){if(_0x21bd91[_0x65d0('0x10')][_0x65d0('0x11')]===0x1f4){logger['error'](_0x65d0('0xb'),_0x2289b2,_0x21bd91[_0x65d0('0x10')][_0x65d0('0x12')]);return _0x5d471a(_0x21bd91['error']['message']);}logger['error']('UserProfileSection,\x20%s,\x20%s',_0x2289b2,_0x21bd91[_0x65d0('0x10')][_0x65d0('0x12')]);return _0x814e4c(_0x21bd91[_0x65d0('0x10')][_0x65d0('0x12')]);}else{logger[_0x65d0('0xa')](_0x65d0('0xb'),_0x2289b2,_0x65d0('0xc'));_0x814e4c(_0x21bd91[_0x65d0('0x13')][_0x65d0('0x12')]);}})[_0x65d0('0x14')](function(_0x5e57a5){logger['error'](_0x65d0('0xb'),_0x2289b2,_0x5e57a5);_0x5d471a(_0x5e57a5);});});}
\ No newline at end of file
+var _0x55de=['http','request','then','info','UserProfileSection,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client'];(function(_0x49e2fa,_0x59eb58){var _0x4dc3b0=function(_0x24d9f4){while(--_0x24d9f4){_0x49e2fa['push'](_0x49e2fa['shift']());}};_0x4dc3b0(++_0x59eb58);}(_0x55de,0x1ef));var _0xe55d=function(_0x58712a,_0x1d88a9){_0x58712a=_0x58712a-0x0;var _0x342032=_0x55de[_0x58712a];return _0x342032;};'use strict';var _=require(_0xe55d('0x0'));var util=require(_0xe55d('0x1'));var moment=require(_0xe55d('0x2'));var BPromise=require(_0xe55d('0x3'));var rs=require(_0xe55d('0x4'));var fs=require('fs');var Redis=require(_0xe55d('0x5'));var db=require(_0xe55d('0x6'))['db'];var utils=require(_0xe55d('0x7'));var logger=require(_0xe55d('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0xe55d('0x9'));var client=jayson[_0xe55d('0xa')][_0xe55d('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x87f3e3,_0x249f97,_0x4d3869){return new BPromise(function(_0x4359d6,_0x46516c){return client[_0xe55d('0xc')](_0x87f3e3,_0x4d3869)[_0xe55d('0xd')](function(_0x4bf04c){logger[_0xe55d('0xe')](_0xe55d('0xf'),_0x249f97,'request\x20sent');logger[_0xe55d('0x10')]('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x249f97,_0xe55d('0x11'),JSON[_0xe55d('0x12')](_0x4bf04c));if(_0x4bf04c[_0xe55d('0x13')]){if(_0x4bf04c['error'][_0xe55d('0x14')]===0x1f4){logger['error']('UserProfileSection,\x20%s,\x20%s',_0x249f97,_0x4bf04c[_0xe55d('0x13')][_0xe55d('0x15')]);return _0x46516c(_0x4bf04c[_0xe55d('0x13')][_0xe55d('0x15')]);}logger[_0xe55d('0x13')](_0xe55d('0xf'),_0x249f97,_0x4bf04c['error'][_0xe55d('0x15')]);return _0x4359d6(_0x4bf04c[_0xe55d('0x13')]['message']);}else{logger[_0xe55d('0xe')](_0xe55d('0xf'),_0x249f97,_0xe55d('0x11'));_0x4359d6(_0x4bf04c[_0xe55d('0x16')][_0xe55d('0x15')]);}})['catch'](function(_0xe3c42f){logger[_0xe55d('0x13')]('UserProfileSection,\x20%s,\x20%s',_0x249f97,_0xe3c42f);_0x46516c(_0xe3c42f);});});}
\ No newline at end of file