Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / jscriptySessionReport / jscriptySessionReport.rpc.js
index 427c1b3..5bb1af7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0db1=['rpc','jayson/promise','client','http','request','then','JscriptySessionReport,\x20%s,\x20%s','request\x20sent','debug','JscriptySessionReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','lodash','util','bluebird','../../mysqldb','../../config/utils','../../config/logger'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x0db1,0x1dd));var _0x10db=function(_0x228afb,_0x5210b2){_0x228afb=_0x228afb-0x0;var _0x185a65=_0x0db1[_0x228afb];return _0x185a65;};'use strict';var _=require(_0x10db('0x0'));var util=require(_0x10db('0x1'));var moment=require('moment');var BPromise=require(_0x10db('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x10db('0x3'))['db'];var utils=require(_0x10db('0x4'));var logger=require(_0x10db('0x5'))(_0x10db('0x6'));var config=require('../../config/environment');var jayson=require(_0x10db('0x7'));var client=jayson[_0x10db('0x8')][_0x10db('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x565090,_0x3763b2,_0x6dde23){return new BPromise(function(_0x153cc3,_0x2c2bfa){return client[_0x10db('0xa')](_0x565090,_0x6dde23)[_0x10db('0xb')](function(_0x4fbdc0){logger['info'](_0x10db('0xc'),_0x3763b2,_0x10db('0xd'));logger[_0x10db('0xe')](_0x10db('0xf'),_0x3763b2,_0x10db('0xd'),JSON[_0x10db('0x10')](_0x4fbdc0));if(_0x4fbdc0[_0x10db('0x11')]){if(_0x4fbdc0['error'][_0x10db('0x12')]===0x1f4){logger[_0x10db('0x11')](_0x10db('0xc'),_0x3763b2,_0x4fbdc0[_0x10db('0x11')][_0x10db('0x13')]);return _0x2c2bfa(_0x4fbdc0[_0x10db('0x11')][_0x10db('0x13')]);}logger['error']('JscriptySessionReport,\x20%s,\x20%s',_0x3763b2,_0x4fbdc0[_0x10db('0x11')]['message']);return _0x153cc3(_0x4fbdc0[_0x10db('0x11')][_0x10db('0x13')]);}else{logger[_0x10db('0x14')](_0x10db('0xc'),_0x3763b2,_0x10db('0xd'));_0x153cc3(_0x4fbdc0[_0x10db('0x15')][_0x10db('0x13')]);}})[_0x10db('0x16')](function(_0x5d790e){logger[_0x10db('0x11')](_0x10db('0xc'),_0x3763b2,_0x5d790e);_0x2c2bfa(_0x5d790e);});});}
\ No newline at end of file
+var _0x687b=['../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','JscriptySessionReport,\x20%s,\x20%s','request\x20sent','debug','JscriptySessionReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/utils'];(function(_0x24679e,_0x22d9d7){var _0x291f21=function(_0x329529){while(--_0x329529){_0x24679e['push'](_0x24679e['shift']());}};_0x291f21(++_0x22d9d7);}(_0x687b,0x14a));var _0xb687=function(_0x44d869,_0x49425f){_0x44d869=_0x44d869-0x0;var _0x1ed521=_0x687b[_0x44d869];return _0x1ed521;};'use strict';var _=require(_0xb687('0x0'));var util=require(_0xb687('0x1'));var moment=require(_0xb687('0x2'));var BPromise=require(_0xb687('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb687('0x4'))['db'];var utils=require(_0xb687('0x5'));var logger=require(_0xb687('0x6'))(_0xb687('0x7'));var config=require(_0xb687('0x8'));var jayson=require(_0xb687('0x9'));var client=jayson[_0xb687('0xa')][_0xb687('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x47ffea,_0x27b750,_0x48942b){return new BPromise(function(_0x2aea59,_0xd40346){return client['request'](_0x47ffea,_0x48942b)[_0xb687('0xc')](function(_0x21e3ab){logger[_0xb687('0xd')](_0xb687('0xe'),_0x27b750,_0xb687('0xf'));logger[_0xb687('0x10')](_0xb687('0x11'),_0x27b750,_0xb687('0xf'),JSON[_0xb687('0x12')](_0x21e3ab));if(_0x21e3ab['error']){if(_0x21e3ab[_0xb687('0x13')][_0xb687('0x14')]===0x1f4){logger[_0xb687('0x13')](_0xb687('0xe'),_0x27b750,_0x21e3ab['error']['message']);return _0xd40346(_0x21e3ab[_0xb687('0x13')][_0xb687('0x15')]);}logger['error'](_0xb687('0xe'),_0x27b750,_0x21e3ab[_0xb687('0x13')][_0xb687('0x15')]);return _0x2aea59(_0x21e3ab[_0xb687('0x13')][_0xb687('0x15')]);}else{logger[_0xb687('0xd')](_0xb687('0xe'),_0x27b750,_0xb687('0xf'));_0x2aea59(_0x21e3ab[_0xb687('0x16')][_0xb687('0x15')]);}})[_0xb687('0x17')](function(_0x19bb29){logger['error'](_0xb687('0xe'),_0x27b750,_0x19bb29);_0xd40346(_0x19bb29);});});}
\ No newline at end of file