Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index 86d68a8..f10c787 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf7cf=['info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','then'];(function(_0x3a4702,_0x4efc56){var _0x58affa=function(_0x281cd0){while(--_0x281cd0){_0x3a4702['push'](_0x3a4702['shift']());}};_0x58affa(++_0x4efc56);}(_0xf7cf,0xb3));var _0xff7c=function(_0x366ae5,_0x2aebf3){_0x366ae5=_0x366ae5-0x0;var _0x546e69=_0xf7cf[_0x366ae5];return _0x546e69;};'use strict';var _=require(_0xff7c('0x0'));var util=require(_0xff7c('0x1'));var moment=require(_0xff7c('0x2'));var BPromise=require(_0xff7c('0x3'));var rs=require(_0xff7c('0x4'));var fs=require('fs');var Redis=require(_0xff7c('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xff7c('0x6'));var logger=require(_0xff7c('0x7'))(_0xff7c('0x8'));var config=require(_0xff7c('0x9'));var jayson=require('jayson/promise');var client=jayson[_0xff7c('0xa')][_0xff7c('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2c6710,_0x42c57b,_0x28159d){return new BPromise(function(_0x1bccbc,_0x564331){return client['request'](_0x2c6710,_0x28159d)[_0xff7c('0xc')](function(_0x23185a){logger[_0xff7c('0xd')](_0xff7c('0xe'),_0x42c57b,_0xff7c('0xf'));logger[_0xff7c('0x10')](_0xff7c('0x11'),_0x42c57b,_0xff7c('0xf'),JSON[_0xff7c('0x12')](_0x23185a));if(_0x23185a[_0xff7c('0x13')]){if(_0x23185a[_0xff7c('0x13')][_0xff7c('0x14')]===0x1f4){logger[_0xff7c('0x13')](_0xff7c('0xe'),_0x42c57b,_0x23185a[_0xff7c('0x13')]['message']);return _0x564331(_0x23185a[_0xff7c('0x13')][_0xff7c('0x15')]);}logger[_0xff7c('0x13')](_0xff7c('0xe'),_0x42c57b,_0x23185a[_0xff7c('0x13')][_0xff7c('0x15')]);return _0x1bccbc(_0x23185a[_0xff7c('0x13')]['message']);}else{logger[_0xff7c('0xd')](_0xff7c('0xe'),_0x42c57b,'request\x20sent');_0x1bccbc(_0x23185a[_0xff7c('0x16')][_0xff7c('0x15')]);}})[_0xff7c('0x17')](function(_0x1e7de9){logger[_0xff7c('0x13')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x42c57b,_0x1e7de9);_0x564331(_0x1e7de9);});});}
\ No newline at end of file
+var _0xab07=['catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','JscriptyAnswerReport,\x20%s,\x20%s','message'];(function(_0x539f32,_0x3eb6e6){var _0x507b71=function(_0x2811e2){while(--_0x2811e2){_0x539f32['push'](_0x539f32['shift']());}};_0x507b71(++_0x3eb6e6);}(_0xab07,0x151));var _0x7ab0=function(_0x58d5ac,_0x11c4bc){_0x58d5ac=_0x58d5ac-0x0;var _0x37985c=_0xab07[_0x58d5ac];return _0x37985c;};'use strict';var _=require(_0x7ab0('0x0'));var util=require(_0x7ab0('0x1'));var moment=require(_0x7ab0('0x2'));var BPromise=require(_0x7ab0('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7ab0('0x4'));var db=require(_0x7ab0('0x5'))['db'];var utils=require(_0x7ab0('0x6'));var logger=require('../../config/logger')(_0x7ab0('0x7'));var config=require(_0x7ab0('0x8'));var jayson=require(_0x7ab0('0x9'));var client=jayson[_0x7ab0('0xa')][_0x7ab0('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x151243,_0x791565,_0x2c0158){return new BPromise(function(_0xa9108f,_0x1488b0){return client[_0x7ab0('0xc')](_0x151243,_0x2c0158)[_0x7ab0('0xd')](function(_0x1c2d9b){logger[_0x7ab0('0xe')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x791565,_0x7ab0('0xf'));logger[_0x7ab0('0x10')](_0x7ab0('0x11'),_0x791565,'request\x20sent',JSON[_0x7ab0('0x12')](_0x1c2d9b));if(_0x1c2d9b['error']){if(_0x1c2d9b[_0x7ab0('0x13')][_0x7ab0('0x14')]===0x1f4){logger[_0x7ab0('0x13')](_0x7ab0('0x15'),_0x791565,_0x1c2d9b[_0x7ab0('0x13')][_0x7ab0('0x16')]);return _0x1488b0(_0x1c2d9b[_0x7ab0('0x13')][_0x7ab0('0x16')]);}logger[_0x7ab0('0x13')](_0x7ab0('0x15'),_0x791565,_0x1c2d9b[_0x7ab0('0x13')]['message']);return _0xa9108f(_0x1c2d9b[_0x7ab0('0x13')][_0x7ab0('0x16')]);}else{logger[_0x7ab0('0xe')](_0x7ab0('0x15'),_0x791565,_0x7ab0('0xf'));_0xa9108f(_0x1c2d9b['result'][_0x7ab0('0x16')]);}})[_0x7ab0('0x17')](function(_0x478542){logger[_0x7ab0('0x13')](_0x7ab0('0x15'),_0x791565,_0x478542);_0x1488b0(_0x478542);});});}
\ No newline at end of file