Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / jscriptySessionReport / jscriptySessionReport.rpc.js
index 7953fb4..f86dbf8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x37cf=['message','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','info','JscriptySessionReport,\x20%s,\x20%s','request\x20sent','error','code'];(function(_0x65d12e,_0x4b0a30){var _0x4274e0=function(_0x121624){while(--_0x121624){_0x65d12e['push'](_0x65d12e['shift']());}};_0x4274e0(++_0x4b0a30);}(_0x37cf,0x133));var _0xf37c=function(_0x332e51,_0x4e3b00){_0x332e51=_0x332e51-0x0;var _0x2461dd=_0x37cf[_0x332e51];return _0x2461dd;};'use strict';var _=require('lodash');var util=require(_0xf37c('0x0'));var moment=require('moment');var BPromise=require(_0xf37c('0x1'));var rs=require(_0xf37c('0x2'));var fs=require('fs');var Redis=require(_0xf37c('0x3'));var db=require(_0xf37c('0x4'))['db'];var utils=require(_0xf37c('0x5'));var logger=require(_0xf37c('0x6'))(_0xf37c('0x7'));var config=require('../../config/environment');var jayson=require(_0xf37c('0x8'));var client=jayson['client'][_0xf37c('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xedc009,_0x71ec3c,_0x2655eb){return new BPromise(function(_0x3c460d,_0x42d6cc){return client[_0xf37c('0xa')](_0xedc009,_0x2655eb)['then'](function(_0x3e4758){logger[_0xf37c('0xb')](_0xf37c('0xc'),_0x71ec3c,_0xf37c('0xd'));logger['debug']('JscriptySessionReport,\x20%s,\x20%s,\x20%s',_0x71ec3c,_0xf37c('0xd'),JSON['stringify'](_0x3e4758));if(_0x3e4758[_0xf37c('0xe')]){if(_0x3e4758[_0xf37c('0xe')][_0xf37c('0xf')]===0x1f4){logger['error'](_0xf37c('0xc'),_0x71ec3c,_0x3e4758[_0xf37c('0xe')][_0xf37c('0x10')]);return _0x42d6cc(_0x3e4758[_0xf37c('0xe')][_0xf37c('0x10')]);}logger['error'](_0xf37c('0xc'),_0x71ec3c,_0x3e4758['error'][_0xf37c('0x10')]);return _0x3c460d(_0x3e4758[_0xf37c('0xe')][_0xf37c('0x10')]);}else{logger[_0xf37c('0xb')](_0xf37c('0xc'),_0x71ec3c,_0xf37c('0xd'));_0x3c460d(_0x3e4758[_0xf37c('0x11')][_0xf37c('0x10')]);}})[_0xf37c('0x12')](function(_0x4decb6){logger[_0xf37c('0xe')](_0xf37c('0xc'),_0x71ec3c,_0x4decb6);_0x42d6cc(_0x4decb6);});});}
\ No newline at end of file
+var _0x32f4=['info','JscriptySessionReport,\x20%s,\x20%s','request\x20sent','JscriptySessionReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','then'];(function(_0x5eae84,_0x193d5e){var _0x5b44cc=function(_0x501640){while(--_0x501640){_0x5eae84['push'](_0x5eae84['shift']());}};_0x5b44cc(++_0x193d5e);}(_0x32f4,0x154));var _0x432f=function(_0x27ac9c,_0x50f44c){_0x27ac9c=_0x27ac9c-0x0;var _0x2ce715=_0x32f4[_0x27ac9c];return _0x2ce715;};'use strict';var _=require(_0x432f('0x0'));var util=require(_0x432f('0x1'));var moment=require(_0x432f('0x2'));var BPromise=require(_0x432f('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x432f('0x4'));var db=require(_0x432f('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x432f('0x6'))(_0x432f('0x7'));var config=require(_0x432f('0x8'));var jayson=require(_0x432f('0x9'));var client=jayson[_0x432f('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5b5f08,_0x2f66fd,_0x32b062){return new BPromise(function(_0x4a5b56,_0x2a2ef6){return client['request'](_0x5b5f08,_0x32b062)[_0x432f('0xb')](function(_0x340fe9){logger[_0x432f('0xc')](_0x432f('0xd'),_0x2f66fd,_0x432f('0xe'));logger['debug'](_0x432f('0xf'),_0x2f66fd,'request\x20sent',JSON[_0x432f('0x10')](_0x340fe9));if(_0x340fe9['error']){if(_0x340fe9[_0x432f('0x11')][_0x432f('0x12')]===0x1f4){logger['error'](_0x432f('0xd'),_0x2f66fd,_0x340fe9[_0x432f('0x11')]['message']);return _0x2a2ef6(_0x340fe9[_0x432f('0x11')][_0x432f('0x13')]);}logger['error']('JscriptySessionReport,\x20%s,\x20%s',_0x2f66fd,_0x340fe9[_0x432f('0x11')][_0x432f('0x13')]);return _0x4a5b56(_0x340fe9[_0x432f('0x11')][_0x432f('0x13')]);}else{logger[_0x432f('0xc')]('JscriptySessionReport,\x20%s,\x20%s',_0x2f66fd,_0x432f('0xe'));_0x4a5b56(_0x340fe9[_0x432f('0x14')][_0x432f('0x13')]);}})[_0x432f('0x15')](function(_0x5bae29){logger[_0x432f('0x11')](_0x432f('0xd'),_0x2f66fd,_0x5bae29);_0x2a2ef6(_0x5bae29);});});}
\ No newline at end of file