Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index 10a3969..0d61bdb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbada=['../../config/utils','rpc','jayson/promise','client','request','then','info','request\x20sent','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','JscriptyAnswerReport,\x20%s,\x20%s','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x50d003,_0x4c5bfa){var _0x32656c=function(_0x2859d7){while(--_0x2859d7){_0x50d003['push'](_0x50d003['shift']());}};_0x32656c(++_0x4c5bfa);}(_0xbada,0x180));var _0xabad=function(_0x49b207,_0x408ade){_0x49b207=_0x49b207-0x0;var _0x2dc8fa=_0xbada[_0x49b207];return _0x2dc8fa;};'use strict';var _=require(_0xabad('0x0'));var util=require(_0xabad('0x1'));var moment=require(_0xabad('0x2'));var BPromise=require(_0xabad('0x3'));var rs=require(_0xabad('0x4'));var fs=require('fs');var Redis=require(_0xabad('0x5'));var db=require(_0xabad('0x6'))['db'];var utils=require(_0xabad('0x7'));var logger=require('../../config/logger')(_0xabad('0x8'));var config=require('../../config/environment');var jayson=require(_0xabad('0x9'));var client=jayson[_0xabad('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0xf0ac71,_0xdf7818,_0x1830a2){return new BPromise(function(_0x57750a,_0x5c2704){return client[_0xabad('0xb')](_0xf0ac71,_0x1830a2)[_0xabad('0xc')](function(_0x4ed24e){logger[_0xabad('0xd')]('JscriptyAnswerReport,\x20%s,\x20%s',_0xdf7818,_0xabad('0xe'));logger['debug'](_0xabad('0xf'),_0xdf7818,'request\x20sent',JSON[_0xabad('0x10')](_0x4ed24e));if(_0x4ed24e[_0xabad('0x11')]){if(_0x4ed24e[_0xabad('0x11')][_0xabad('0x12')]===0x1f4){logger[_0xabad('0x11')]('JscriptyAnswerReport,\x20%s,\x20%s',_0xdf7818,_0x4ed24e[_0xabad('0x11')]['message']);return _0x5c2704(_0x4ed24e[_0xabad('0x11')][_0xabad('0x13')]);}logger['error']('JscriptyAnswerReport,\x20%s,\x20%s',_0xdf7818,_0x4ed24e[_0xabad('0x11')][_0xabad('0x13')]);return _0x57750a(_0x4ed24e['error'][_0xabad('0x13')]);}else{logger[_0xabad('0xd')](_0xabad('0x14'),_0xdf7818,_0xabad('0xe'));_0x57750a(_0x4ed24e[_0xabad('0x15')][_0xabad('0x13')]);}})[_0xabad('0x16')](function(_0x5317fd){logger[_0xabad('0x11')](_0xabad('0x14'),_0xdf7818,_0x5317fd);_0x5c2704(_0x5317fd);});});}
\ No newline at end of file
+var _0x4b18=['error','code','message','JscriptyAnswerReport,\x20%s,\x20%s','result','catch','lodash','util','bluebird','randomstring','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x2daae8,_0x5c684e){var _0x53111a=function(_0x4f12f6){while(--_0x4f12f6){_0x2daae8['push'](_0x2daae8['shift']());}};_0x53111a(++_0x5c684e);}(_0x4b18,0x90));var _0x84b1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4b18[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x84b1('0x0'));var util=require(_0x84b1('0x1'));var moment=require('moment');var BPromise=require(_0x84b1('0x2'));var rs=require(_0x84b1('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x84b1('0x4'))(_0x84b1('0x5'));var config=require(_0x84b1('0x6'));var jayson=require(_0x84b1('0x7'));var client=jayson[_0x84b1('0x8')][_0x84b1('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x10c85f,_0x2296b0,_0x212a81){return new BPromise(function(_0x1122ae,_0x47e3ab){return client[_0x84b1('0xa')](_0x10c85f,_0x212a81)[_0x84b1('0xb')](function(_0x28f1ac){logger[_0x84b1('0xc')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x2296b0,'request\x20sent');logger[_0x84b1('0xd')](_0x84b1('0xe'),_0x2296b0,_0x84b1('0xf'),JSON[_0x84b1('0x10')](_0x28f1ac));if(_0x28f1ac['error']){if(_0x28f1ac[_0x84b1('0x11')][_0x84b1('0x12')]===0x1f4){logger[_0x84b1('0x11')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x2296b0,_0x28f1ac[_0x84b1('0x11')][_0x84b1('0x13')]);return _0x47e3ab(_0x28f1ac[_0x84b1('0x11')][_0x84b1('0x13')]);}logger[_0x84b1('0x11')](_0x84b1('0x14'),_0x2296b0,_0x28f1ac[_0x84b1('0x11')]['message']);return _0x1122ae(_0x28f1ac[_0x84b1('0x11')]['message']);}else{logger[_0x84b1('0xc')](_0x84b1('0x14'),_0x2296b0,_0x84b1('0xf'));_0x1122ae(_0x28f1ac[_0x84b1('0x15')]['message']);}})[_0x84b1('0x16')](function(_0x3c2b7f){logger[_0x84b1('0x11')](_0x84b1('0x14'),_0x2296b0,_0x3c2b7f);_0x47e3ab(_0x3c2b7f);});});}
\ No newline at end of file