Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index b571e25..07daa14 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7f3b=['info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then'];(function(_0x5774f4,_0x4a4240){var _0x19bd1a=function(_0x5ab942){while(--_0x5ab942){_0x5774f4['push'](_0x5774f4['shift']());}};_0x19bd1a(++_0x4a4240);}(_0x7f3b,0x6e));var _0xb7f3=function(_0x3073c3,_0x2ddf87){_0x3073c3=_0x3073c3-0x0;var _0x587c1c=_0x7f3b[_0x3073c3];return _0x587c1c;};'use strict';var _=require(_0xb7f3('0x0'));var util=require(_0xb7f3('0x1'));var moment=require(_0xb7f3('0x2'));var BPromise=require(_0xb7f3('0x3'));var rs=require(_0xb7f3('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb7f3('0x5'))['db'];var utils=require(_0xb7f3('0x6'));var logger=require(_0xb7f3('0x7'))(_0xb7f3('0x8'));var config=require(_0xb7f3('0x9'));var jayson=require(_0xb7f3('0xa'));var client=jayson[_0xb7f3('0xb')][_0xb7f3('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x50c32a,_0x17e5f3,_0x3d9b62){return new BPromise(function(_0x2ce934,_0x1014bd){return client[_0xb7f3('0xd')](_0x50c32a,_0x3d9b62)[_0xb7f3('0xe')](function(_0xb00d5b){logger[_0xb7f3('0xf')](_0xb7f3('0x10'),_0x17e5f3,_0xb7f3('0x11'));logger['debug'](_0xb7f3('0x12'),_0x17e5f3,_0xb7f3('0x11'),JSON[_0xb7f3('0x13')](_0xb00d5b));if(_0xb00d5b[_0xb7f3('0x14')]){if(_0xb00d5b[_0xb7f3('0x14')][_0xb7f3('0x15')]===0x1f4){logger[_0xb7f3('0x14')](_0xb7f3('0x10'),_0x17e5f3,_0xb00d5b['error'][_0xb7f3('0x16')]);return _0x1014bd(_0xb00d5b[_0xb7f3('0x14')][_0xb7f3('0x16')]);}logger['error'](_0xb7f3('0x10'),_0x17e5f3,_0xb00d5b[_0xb7f3('0x14')][_0xb7f3('0x16')]);return _0x2ce934(_0xb00d5b[_0xb7f3('0x14')][_0xb7f3('0x16')]);}else{logger['info']('JscriptyAnswerReport,\x20%s,\x20%s',_0x17e5f3,'request\x20sent');_0x2ce934(_0xb00d5b[_0xb7f3('0x17')][_0xb7f3('0x16')]);}})[_0xb7f3('0x18')](function(_0x2b4362){logger[_0xb7f3('0x14')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x17e5f3,_0x2b4362);_0x1014bd(_0x2b4362);});});}
\ No newline at end of file
+var _0x548a=['rpc','../../config/environment','jayson/promise','client','http','request','then','JscriptyAnswerReport,\x20%s,\x20%s','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','info','result','catch','util','bluebird','randomstring','ioredis','../../config/utils','../../config/logger'];(function(_0x209941,_0x5c9988){var _0x1e8729=function(_0x51a9b8){while(--_0x51a9b8){_0x209941['push'](_0x209941['shift']());}};_0x1e8729(++_0x5c9988);}(_0x548a,0x1dd));var _0xa548=function(_0x39bc56,_0x2979cd){_0x39bc56=_0x39bc56-0x0;var _0x2eb196=_0x548a[_0x39bc56];return _0x2eb196;};'use strict';var _=require('lodash');var util=require(_0xa548('0x0'));var moment=require('moment');var BPromise=require(_0xa548('0x1'));var rs=require(_0xa548('0x2'));var fs=require('fs');var Redis=require(_0xa548('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xa548('0x4'));var logger=require(_0xa548('0x5'))(_0xa548('0x6'));var config=require(_0xa548('0x7'));var jayson=require(_0xa548('0x8'));var client=jayson[_0xa548('0x9')][_0xa548('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5783c0,_0x766b26,_0x259bd3){return new BPromise(function(_0x5a0799,_0x30546d){return client[_0xa548('0xb')](_0x5783c0,_0x259bd3)[_0xa548('0xc')](function(_0x25793f){logger['info'](_0xa548('0xd'),_0x766b26,'request\x20sent');logger[_0xa548('0xe')](_0xa548('0xf'),_0x766b26,_0xa548('0x10'),JSON[_0xa548('0x11')](_0x25793f));if(_0x25793f[_0xa548('0x12')]){if(_0x25793f[_0xa548('0x12')]['code']===0x1f4){logger[_0xa548('0x12')](_0xa548('0xd'),_0x766b26,_0x25793f[_0xa548('0x12')][_0xa548('0x13')]);return _0x30546d(_0x25793f[_0xa548('0x12')][_0xa548('0x13')]);}logger['error'](_0xa548('0xd'),_0x766b26,_0x25793f['error'][_0xa548('0x13')]);return _0x5a0799(_0x25793f[_0xa548('0x12')]['message']);}else{logger[_0xa548('0x14')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x766b26,_0xa548('0x10'));_0x5a0799(_0x25793f[_0xa548('0x15')][_0xa548('0x13')]);}})[_0xa548('0x16')](function(_0x57b14f){logger[_0xa548('0x12')](_0xa548('0xd'),_0x766b26,_0x57b14f);_0x30546d(_0x57b14f);});});}
\ No newline at end of file