Built motion from commit (unavailable).|2.0.78
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.rpc.js
index 537e2f4..e73c4af 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x17a9=['then','request\x20sent','debug','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','error','code','message','info','result','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','http','request'];(function(_0x147cbb,_0x316721){var _0x3d5e47=function(_0x137493){while(--_0x137493){_0x147cbb['push'](_0x147cbb['shift']());}};_0x3d5e47(++_0x316721);}(_0x17a9,0x199));var _0x917a=function(_0x36de18,_0x1a3cce){_0x36de18=_0x36de18-0x0;var _0x2af78c=_0x17a9[_0x36de18];return _0x2af78c;};'use strict';var _=require('lodash');var util=require(_0x917a('0x0'));var moment=require(_0x917a('0x1'));var BPromise=require(_0x917a('0x2'));var rs=require(_0x917a('0x3'));var fs=require('fs');var db=require(_0x917a('0x4'))['db'];var utils=require(_0x917a('0x5'));var logger=require('../../config/logger')('rpc');var config=require(_0x917a('0x6'));var jayson=require(_0x917a('0x7'));var client=jayson[_0x917a('0x8')][_0x917a('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1dc124,_0x59b077,_0x39a3a5){return new BPromise(function(_0xe3a08d,_0x390ae4){return client[_0x917a('0xa')](_0x1dc124,_0x39a3a5)[_0x917a('0xb')](function(_0x3f65d1){logger['info']('JscriptyQuestionReport,\x20%s,\x20%s',_0x59b077,_0x917a('0xc'));logger[_0x917a('0xd')](_0x917a('0xe'),_0x59b077,_0x917a('0xc'),JSON['stringify'](_0x3f65d1));if(_0x3f65d1[_0x917a('0xf')]){if(_0x3f65d1[_0x917a('0xf')][_0x917a('0x10')]===0x1f4){logger['error']('JscriptyQuestionReport,\x20%s,\x20%s',_0x59b077,_0x3f65d1[_0x917a('0xf')][_0x917a('0x11')]);return _0x390ae4(_0x3f65d1[_0x917a('0xf')][_0x917a('0x11')]);}logger[_0x917a('0xf')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x59b077,_0x3f65d1['error'][_0x917a('0x11')]);return _0xe3a08d(_0x3f65d1[_0x917a('0xf')][_0x917a('0x11')]);}else{logger[_0x917a('0x12')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x59b077,_0x917a('0xc'));_0xe3a08d(_0x3f65d1[_0x917a('0x13')]['message']);}})['catch'](function(_0x27bdbc){logger['error']('JscriptyQuestionReport,\x20%s,\x20%s',_0x59b077,_0x27bdbc);_0x390ae4(_0x27bdbc);});});}
\ No newline at end of file
+var _0xf90f=['client','http','then','info','JscriptyQuestionReport,\x20%s,\x20%s','request\x20sent','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise'];(function(_0x2e1d37,_0x14f732){var _0x1ac62f=function(_0x35d93c){while(--_0x35d93c){_0x2e1d37['push'](_0x2e1d37['shift']());}};_0x1ac62f(++_0x14f732);}(_0xf90f,0x1c1));var _0xff90=function(_0x3da7f2,_0xab9ccf){_0x3da7f2=_0x3da7f2-0x0;var _0x362c3c=_0xf90f[_0x3da7f2];return _0x362c3c;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xff90('0x0'));var BPromise=require(_0xff90('0x1'));var rs=require('randomstring');var fs=require('fs');var db=require(_0xff90('0x2'))['db'];var utils=require(_0xff90('0x3'));var logger=require(_0xff90('0x4'))(_0xff90('0x5'));var config=require('../../config/environment');var jayson=require(_0xff90('0x6'));var client=jayson[_0xff90('0x7')][_0xff90('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x59b5fb,_0x1ac82f,_0x40299c){return new BPromise(function(_0xf3957b,_0x1571f5){return client['request'](_0x59b5fb,_0x40299c)[_0xff90('0x9')](function(_0x35d808){logger[_0xff90('0xa')](_0xff90('0xb'),_0x1ac82f,_0xff90('0xc'));logger['debug'](_0xff90('0xd'),_0x1ac82f,_0xff90('0xc'),JSON[_0xff90('0xe')](_0x35d808));if(_0x35d808[_0xff90('0xf')]){if(_0x35d808[_0xff90('0xf')][_0xff90('0x10')]===0x1f4){logger[_0xff90('0xf')](_0xff90('0xb'),_0x1ac82f,_0x35d808[_0xff90('0xf')][_0xff90('0x11')]);return _0x1571f5(_0x35d808[_0xff90('0xf')][_0xff90('0x11')]);}logger[_0xff90('0xf')](_0xff90('0xb'),_0x1ac82f,_0x35d808['error'][_0xff90('0x11')]);return _0xf3957b(_0x35d808[_0xff90('0xf')][_0xff90('0x11')]);}else{logger['info']('JscriptyQuestionReport,\x20%s,\x20%s',_0x1ac82f,_0xff90('0xc'));_0xf3957b(_0x35d808['result'][_0xff90('0x11')]);}})[_0xff90('0x12')](function(_0x2f4088){logger[_0xff90('0xf')](_0xff90('0xb'),_0x1ac82f,_0x2f4088);_0x1571f5(_0x2f4088);});});}
\ No newline at end of file