Built motion from commit 06eb8eb0.|2.6.31
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index cbcc5a8..2a576db 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xce0a=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request','then','info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','util'];(function(_0x202c61,_0x3673e0){var _0x540691=function(_0x409610){while(--_0x409610){_0x202c61['push'](_0x202c61['shift']());}};_0x540691(++_0x3673e0);}(_0xce0a,0x83));var _0xace0=function(_0x446f11,_0x95cf21){_0x446f11=_0x446f11-0x0;var _0x385cb5=_0xce0a[_0x446f11];return _0x385cb5;};'use strict';var _=require('lodash');var util=require(_0xace0('0x0'));var moment=require('moment');var BPromise=require(_0xace0('0x1'));var rs=require(_0xace0('0x2'));var fs=require('fs');var Redis=require(_0xace0('0x3'));var db=require(_0xace0('0x4'))['db'];var utils=require(_0xace0('0x5'));var logger=require(_0xace0('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0xace0('0x7'));var client=jayson[_0xace0('0x8')][_0xace0('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x3e0ec9,_0xb8792a,_0x570ab2){return new BPromise(function(_0xee7b84,_0x3b7517){return client[_0xace0('0xa')](_0x3e0ec9,_0x570ab2)[_0xace0('0xb')](function(_0x2bdbc2){logger[_0xace0('0xc')](_0xace0('0xd'),_0xb8792a,_0xace0('0xe'));logger[_0xace0('0xf')](_0xace0('0x10'),_0xb8792a,'request\x20sent',JSON[_0xace0('0x11')](_0x2bdbc2));if(_0x2bdbc2[_0xace0('0x12')]){if(_0x2bdbc2[_0xace0('0x12')]['code']===0x1f4){logger['error']('JscriptyAnswerReport,\x20%s,\x20%s',_0xb8792a,_0x2bdbc2['error'][_0xace0('0x13')]);return _0x3b7517(_0x2bdbc2[_0xace0('0x12')]['message']);}logger[_0xace0('0x12')](_0xace0('0xd'),_0xb8792a,_0x2bdbc2['error'][_0xace0('0x13')]);return _0xee7b84(_0x2bdbc2[_0xace0('0x12')]['message']);}else{logger['info']('JscriptyAnswerReport,\x20%s,\x20%s',_0xb8792a,_0xace0('0xe'));_0xee7b84(_0x2bdbc2[_0xace0('0x14')][_0xace0('0x13')]);}})[_0xace0('0x15')](function(_0x5fc1a1){logger['error'](_0xace0('0xd'),_0xb8792a,_0x5fc1a1);_0x3b7517(_0x5fc1a1);});});}
\ No newline at end of file
+var _0xae1c=['stringify','error','JscriptyAnswerReport,\x20%s,\x20%s','message','result','util','moment','randomstring','ioredis','../../config/utils','../../config/logger','rpc','client','request','then','info','request\x20sent','debug'];(function(_0x2bd8f6,_0x362aa7){var _0x1a6654=function(_0x2af856){while(--_0x2af856){_0x2bd8f6['push'](_0x2bd8f6['shift']());}};_0x1a6654(++_0x362aa7);}(_0xae1c,0x15b));var _0xcae1=function(_0x232bd0,_0x459c63){_0x232bd0=_0x232bd0-0x0;var _0x160224=_0xae1c[_0x232bd0];return _0x160224;};'use strict';var _=require('lodash');var util=require(_0xcae1('0x0'));var moment=require(_0xcae1('0x1'));var BPromise=require('bluebird');var rs=require(_0xcae1('0x2'));var fs=require('fs');var Redis=require(_0xcae1('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xcae1('0x4'));var logger=require(_0xcae1('0x5'))(_0xcae1('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xcae1('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x6c7c0,_0x376fa0,_0xe7df22){return new BPromise(function(_0x1dd857,_0x4008e9){return client[_0xcae1('0x8')](_0x6c7c0,_0xe7df22)[_0xcae1('0x9')](function(_0xa88241){logger[_0xcae1('0xa')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x376fa0,_0xcae1('0xb'));logger[_0xcae1('0xc')]('JscriptyAnswerReport,\x20%s,\x20%s,\x20%s',_0x376fa0,_0xcae1('0xb'),JSON[_0xcae1('0xd')](_0xa88241));if(_0xa88241['error']){if(_0xa88241[_0xcae1('0xe')]['code']===0x1f4){logger[_0xcae1('0xe')](_0xcae1('0xf'),_0x376fa0,_0xa88241['error'][_0xcae1('0x10')]);return _0x4008e9(_0xa88241['error'][_0xcae1('0x10')]);}logger[_0xcae1('0xe')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x376fa0,_0xa88241[_0xcae1('0xe')][_0xcae1('0x10')]);return _0x1dd857(_0xa88241['error'][_0xcae1('0x10')]);}else{logger[_0xcae1('0xa')](_0xcae1('0xf'),_0x376fa0,_0xcae1('0xb'));_0x1dd857(_0xa88241[_0xcae1('0x11')][_0xcae1('0x10')]);}})['catch'](function(_0x5a49d5){logger[_0xcae1('0xe')](_0xcae1('0xf'),_0x376fa0,_0x5a49d5);_0x4008e9(_0x5a49d5);});});}
\ No newline at end of file