X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FjscriptySessionReport%2FjscriptySessionReport.rpc.js;h=7b660e298b1e3182824c7c817c35fffc64cd2911;hb=de6f27d8824ffb29cbf937050a12378469af9a53;hp=7953fb4730f43c9abfaf151f930e4b06911acc5d;hpb=6154c6759c55056c3b23ea2e885ab9e551bbdf0c;p=motion2.git diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.rpc.js b/server/api/jscriptySessionReport/jscriptySessionReport.rpc.js index 7953fb4..7b660e2 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.rpc.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.rpc.js @@ -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 _0xfc07=['debug','JscriptySessionReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring','../../config/logger','rpc','../../config/environment','request','then','info','JscriptySessionReport,\x20%s,\x20%s','request\x20sent'];(function(_0x4555bb,_0x1abb92){var _0x2a5293=function(_0x13b8ac){while(--_0x13b8ac){_0x4555bb['push'](_0x4555bb['shift']());}};_0x2a5293(++_0x1abb92);}(_0xfc07,0x183));var _0x7fc0=function(_0x4ce028,_0x526d4b){_0x4ce028=_0x4ce028-0x0;var _0x583d0c=_0xfc07[_0x4ce028];return _0x583d0c;};'use strict';var _=require(_0x7fc0('0x0'));var util=require(_0x7fc0('0x1'));var moment=require(_0x7fc0('0x2'));var BPromise=require(_0x7fc0('0x3'));var rs=require(_0x7fc0('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x7fc0('0x5'))(_0x7fc0('0x6'));var config=require(_0x7fc0('0x7'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x5ea8f3,_0x387e89,_0xf95602){return new BPromise(function(_0x388659,_0xb0ed03){return client[_0x7fc0('0x8')](_0x5ea8f3,_0xf95602)[_0x7fc0('0x9')](function(_0x38f504){logger[_0x7fc0('0xa')](_0x7fc0('0xb'),_0x387e89,_0x7fc0('0xc'));logger[_0x7fc0('0xd')](_0x7fc0('0xe'),_0x387e89,_0x7fc0('0xc'),JSON[_0x7fc0('0xf')](_0x38f504));if(_0x38f504[_0x7fc0('0x10')]){if(_0x38f504[_0x7fc0('0x10')][_0x7fc0('0x11')]===0x1f4){logger[_0x7fc0('0x10')](_0x7fc0('0xb'),_0x387e89,_0x38f504['error']['message']);return _0xb0ed03(_0x38f504[_0x7fc0('0x10')][_0x7fc0('0x12')]);}logger[_0x7fc0('0x10')](_0x7fc0('0xb'),_0x387e89,_0x38f504[_0x7fc0('0x10')][_0x7fc0('0x12')]);return _0x388659(_0x38f504['error']['message']);}else{logger['info'](_0x7fc0('0xb'),_0x387e89,_0x7fc0('0xc'));_0x388659(_0x38f504[_0x7fc0('0x13')]['message']);}})['catch'](function(_0x50f4d1){logger[_0x7fc0('0x10')](_0x7fc0('0xb'),_0x387e89,_0x50f4d1);_0xb0ed03(_0x50f4d1);});});} \ No newline at end of file