Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / api / userProfile / userProfile.rpc.js
index 476c382..ccad7d8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x71ab=['jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./userProfile.socket','register','request','then','info','request\x20sent','stringify','error','message','UserProfile,\x20%s,\x20%s','result','catch','util','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x3f9977,_0x5e0507){var _0x101965=function(_0x292340){while(--_0x292340){_0x3f9977['push'](_0x3f9977['shift']());}};_0x101965(++_0x5e0507);}(_0x71ab,0x64));var _0xb71a=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x71ab[_0x502c7d];return _0x30b7ed;};'use strict';var _=require('lodash');var util=require(_0xb71a('0x0'));var moment=require('moment');var BPromise=require(_0xb71a('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb71a('0x2'));var db=require(_0xb71a('0x3'))['db'];var utils=require(_0xb71a('0x4'));var logger=require(_0xb71a('0x5'))(_0xb71a('0x6'));var config=require(_0xb71a('0x7'));var jayson=require(_0xb71a('0x8'));var client=jayson[_0xb71a('0x9')][_0xb71a('0xa')]({'port':0x232a});config[_0xb71a('0xb')]=_[_0xb71a('0xc')](config[_0xb71a('0xb')],{'host':_0xb71a('0xd'),'port':0x18eb});var socket=require(_0xb71a('0xe'))(new Redis(config[_0xb71a('0xb')]));require(_0xb71a('0xf'))[_0xb71a('0x10')](socket);function respondWithRpcPromise(_0x2e8883,_0x517eed,_0xfec897){return new BPromise(function(_0x58956d,_0x3d7bd7){return client[_0xb71a('0x11')](_0x2e8883,_0xfec897)[_0xb71a('0x12')](function(_0x591311){logger[_0xb71a('0x13')]('UserProfile,\x20%s,\x20%s',_0x517eed,_0xb71a('0x14'));logger['debug']('UserProfile,\x20%s,\x20%s,\x20%s',_0x517eed,_0xb71a('0x14'),JSON[_0xb71a('0x15')](_0x591311));if(_0x591311[_0xb71a('0x16')]){if(_0x591311[_0xb71a('0x16')]['code']===0x1f4){logger['error']('UserProfile,\x20%s,\x20%s',_0x517eed,_0x591311[_0xb71a('0x16')][_0xb71a('0x17')]);return _0x3d7bd7(_0x591311[_0xb71a('0x16')][_0xb71a('0x17')]);}logger[_0xb71a('0x16')](_0xb71a('0x18'),_0x517eed,_0x591311[_0xb71a('0x16')][_0xb71a('0x17')]);return _0x58956d(_0x591311[_0xb71a('0x16')]['message']);}else{logger[_0xb71a('0x13')](_0xb71a('0x18'),_0x517eed,_0xb71a('0x14'));_0x58956d(_0x591311[_0xb71a('0x19')][_0xb71a('0x17')]);}})[_0xb71a('0x1a')](function(_0x349de1){logger[_0xb71a('0x16')](_0xb71a('0x18'),_0x517eed,_0x349de1);_0x3d7bd7(_0x349de1);});});}
\ No newline at end of file
+var _0xe635=['moment','bluebird','randomstring','ioredis','../../mysqldb','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./userProfile.socket','register','then','UserProfile,\x20%s,\x20%s','debug','UserProfile,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util'];(function(_0x1f81f5,_0x42aa67){var _0x4c9e93=function(_0x473119){while(--_0x473119){_0x1f81f5['push'](_0x1f81f5['shift']());}};_0x4c9e93(++_0x42aa67);}(_0xe635,0x1be));var _0x5e63=function(_0x5f1204,_0x92b018){_0x5f1204=_0x5f1204-0x0;var _0x44cf32=_0xe635[_0x5f1204];return _0x44cf32;};'use strict';var _=require(_0x5e63('0x0'));var util=require(_0x5e63('0x1'));var moment=require(_0x5e63('0x2'));var BPromise=require(_0x5e63('0x3'));var rs=require(_0x5e63('0x4'));var fs=require('fs');var Redis=require(_0x5e63('0x5'));var db=require(_0x5e63('0x6'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x5e63('0x7'));var config=require(_0x5e63('0x8'));var jayson=require(_0x5e63('0x9'));var client=jayson[_0x5e63('0xa')][_0x5e63('0xb')]({'port':0x232a});config[_0x5e63('0xc')]=_[_0x5e63('0xd')](config[_0x5e63('0xc')],{'host':_0x5e63('0xe'),'port':0x18eb});var socket=require(_0x5e63('0xf'))(new Redis(config['redis']));require(_0x5e63('0x10'))[_0x5e63('0x11')](socket);function respondWithRpcPromise(_0x307b83,_0x1b8208,_0x5d025f){return new BPromise(function(_0xd64e99,_0x2e9340){return client['request'](_0x307b83,_0x5d025f)[_0x5e63('0x12')](function(_0x2ac738){logger['info'](_0x5e63('0x13'),_0x1b8208,'request\x20sent');logger[_0x5e63('0x14')](_0x5e63('0x15'),_0x1b8208,_0x5e63('0x16'),JSON[_0x5e63('0x17')](_0x2ac738));if(_0x2ac738['error']){if(_0x2ac738['error']['code']===0x1f4){logger[_0x5e63('0x18')](_0x5e63('0x13'),_0x1b8208,_0x2ac738['error'][_0x5e63('0x19')]);return _0x2e9340(_0x2ac738[_0x5e63('0x18')][_0x5e63('0x19')]);}logger['error'](_0x5e63('0x13'),_0x1b8208,_0x2ac738[_0x5e63('0x18')][_0x5e63('0x19')]);return _0xd64e99(_0x2ac738[_0x5e63('0x18')][_0x5e63('0x19')]);}else{logger['info'](_0x5e63('0x13'),_0x1b8208,_0x5e63('0x16'));_0xd64e99(_0x2ac738[_0x5e63('0x1a')][_0x5e63('0x19')]);}})[_0x5e63('0x1b')](function(_0x4a6013){logger[_0x5e63('0x18')]('UserProfile,\x20%s,\x20%s',_0x1b8208,_0x4a6013);_0x2e9340(_0x4a6013);});});}
\ No newline at end of file