Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / cmHopperFinal / cmHopperFinal.rpc.js
index 34f663f..b08db3b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9c2b=['CmHopperFinal,\x20%s,\x20%s','debug','request\x20sent','stringify','error','message','result','catch','CreateCmHopperFinal','CmHopperFinal','options','raw','then','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','http','info'];(function(_0x495a2c,_0x47dca7){var _0x4163d4=function(_0x1a17ba){while(--_0x1a17ba){_0x495a2c['push'](_0x495a2c['shift']());}};_0x4163d4(++_0x47dca7);}(_0x9c2b,0x1a5));var _0xb9c2=function(_0x3e5086,_0x48f4a2){_0x3e5086=_0x3e5086-0x0;var _0xfeb102=_0x9c2b[_0x3e5086];return _0xfeb102;};'use strict';var _=require('lodash');var util=require(_0xb9c2('0x0'));var moment=require('moment');var BPromise=require(_0xb9c2('0x1'));var rs=require(_0xb9c2('0x2'));var fs=require('fs');var Redis=require(_0xb9c2('0x3'));var db=require(_0xb9c2('0x4'))['db'];var utils=require(_0xb9c2('0x5'));var logger=require(_0xb9c2('0x6'))('rpc');var config=require(_0xb9c2('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xb9c2('0x8')][_0xb9c2('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x4a2c2e,_0x2830ec,_0x156740){return new BPromise(function(_0x25d7a7,_0x4011bb){return client['request'](_0x4a2c2e,_0x156740)['then'](function(_0x3d9c98){logger[_0xb9c2('0xa')](_0xb9c2('0xb'),_0x2830ec,'request\x20sent');logger[_0xb9c2('0xc')]('CmHopperFinal,\x20%s,\x20%s,\x20%s',_0x2830ec,_0xb9c2('0xd'),JSON[_0xb9c2('0xe')](_0x3d9c98));if(_0x3d9c98['error']){if(_0x3d9c98[_0xb9c2('0xf')]['code']===0x1f4){logger[_0xb9c2('0xf')]('CmHopperFinal,\x20%s,\x20%s',_0x2830ec,_0x3d9c98['error'][_0xb9c2('0x10')]);return _0x4011bb(_0x3d9c98[_0xb9c2('0xf')][_0xb9c2('0x10')]);}logger[_0xb9c2('0xf')](_0xb9c2('0xb'),_0x2830ec,_0x3d9c98['error']['message']);return _0x25d7a7(_0x3d9c98['error'][_0xb9c2('0x10')]);}else{logger['info']('CmHopperFinal,\x20%s,\x20%s',_0x2830ec,_0xb9c2('0xd'));_0x25d7a7(_0x3d9c98[_0xb9c2('0x11')][_0xb9c2('0x10')]);}})[_0xb9c2('0x12')](function(_0x1aaaee){logger[_0xb9c2('0xf')]('CmHopperFinal,\x20%s,\x20%s',_0x2830ec,_0x1aaaee);_0x4011bb(_0x1aaaee);});});}exports[_0xb9c2('0x13')]=function(_0x3b4115){var _0x5e5aff=this;return new Promise(function(_0x4e67dd,_0x1f50ea){return db[_0xb9c2('0x14')]['create'](_0x3b4115['body'],{'raw':_0x3b4115[_0xb9c2('0x15')]?_0x3b4115['options'][_0xb9c2('0x16')]===undefined?!![]:![]:!![]})[_0xb9c2('0x17')](function(_0x13ae65){logger[_0xb9c2('0xa')](_0xb9c2('0x13'),_0x3b4115);logger[_0xb9c2('0xc')](_0xb9c2('0x13'),_0x3b4115,JSON['stringify'](_0x13ae65));_0x4e67dd(_0x13ae65);})['catch'](function(_0x18745c){logger[_0xb9c2('0xf')](_0xb9c2('0x13'),_0x18745c['message'],_0x3b4115);_0x1f50ea(_0x5e5aff['error'](0x1f4,_0x18745c[_0xb9c2('0x10')]));});});};
\ No newline at end of file
+var _0xf84c=['debug','stringify','error','code','CmHopperFinal,\x20%s,\x20%s','message','result','catch','CmHopperFinal','body','options','CreateCmHopperFinal','lodash','util','moment','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','http','request','info','request\x20sent'];(function(_0x3c9a54,_0x13cede){var _0x4b4b40=function(_0x130dce){while(--_0x130dce){_0x3c9a54['push'](_0x3c9a54['shift']());}};_0x4b4b40(++_0x13cede);}(_0xf84c,0x1b5));var _0xcf84=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf84c[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xcf84('0x0'));var util=require(_0xcf84('0x1'));var moment=require(_0xcf84('0x2'));var BPromise=require('bluebird');var rs=require(_0xcf84('0x3'));var fs=require('fs');var Redis=require(_0xcf84('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xcf84('0x5'));var logger=require(_0xcf84('0x6'))(_0xcf84('0x7'));var config=require(_0xcf84('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0xcf84('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x38c445,_0xd2fc54,_0x27a21d){return new BPromise(function(_0x4299b3,_0x21bb43){return client[_0xcf84('0xa')](_0x38c445,_0x27a21d)['then'](function(_0xf369b5){logger[_0xcf84('0xb')]('CmHopperFinal,\x20%s,\x20%s',_0xd2fc54,_0xcf84('0xc'));logger[_0xcf84('0xd')]('CmHopperFinal,\x20%s,\x20%s,\x20%s',_0xd2fc54,_0xcf84('0xc'),JSON[_0xcf84('0xe')](_0xf369b5));if(_0xf369b5[_0xcf84('0xf')]){if(_0xf369b5[_0xcf84('0xf')][_0xcf84('0x10')]===0x1f4){logger[_0xcf84('0xf')](_0xcf84('0x11'),_0xd2fc54,_0xf369b5[_0xcf84('0xf')][_0xcf84('0x12')]);return _0x21bb43(_0xf369b5[_0xcf84('0xf')][_0xcf84('0x12')]);}logger[_0xcf84('0xf')](_0xcf84('0x11'),_0xd2fc54,_0xf369b5['error'][_0xcf84('0x12')]);return _0x4299b3(_0xf369b5['error'][_0xcf84('0x12')]);}else{logger['info']('CmHopperFinal,\x20%s,\x20%s',_0xd2fc54,'request\x20sent');_0x4299b3(_0xf369b5[_0xcf84('0x13')][_0xcf84('0x12')]);}})[_0xcf84('0x14')](function(_0x12323f){logger[_0xcf84('0xf')](_0xcf84('0x11'),_0xd2fc54,_0x12323f);_0x21bb43(_0x12323f);});});}exports['CreateCmHopperFinal']=function(_0xc83f16){var _0x44bd5a=this;return new Promise(function(_0xb4fdd5,_0x13bf83){return db[_0xcf84('0x15')]['create'](_0xc83f16[_0xcf84('0x16')],{'raw':_0xc83f16[_0xcf84('0x17')]?_0xc83f16[_0xcf84('0x17')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x5ad02c){logger[_0xcf84('0xb')](_0xcf84('0x18'),_0xc83f16);logger[_0xcf84('0xd')](_0xcf84('0x18'),_0xc83f16,JSON[_0xcf84('0xe')](_0x5ad02c));_0xb4fdd5(_0x5ad02c);})[_0xcf84('0x14')](function(_0x34e560){logger['error']('CreateCmHopperFinal',_0x34e560[_0xcf84('0x12')],_0xc83f16);_0x13bf83(_0x44bd5a[_0xcf84('0xf')](0x1f4,_0x34e560[_0xcf84('0x12')]));});});};
\ No newline at end of file