Built motion from commit (unavailable).|2.0.83
[motion2.git] / server / api / jscriptySessionReport / jscriptySessionReport.rpc.js
index aa8c1a9..7ad3974 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x85cb=['client','http','request','then','JscriptySessionReport,\x20%s,\x20%s','debug','JscriptySessionReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info','result','catch','lodash','util','moment','bluebird','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x85cb,0x1bf));var _0xb85c=function(_0x3f478b,_0x2fb8aa){_0x3f478b=_0x3f478b-0x0;var _0x37c15f=_0x85cb[_0x3f478b];return _0x37c15f;};'use strict';var _=require(_0xb85c('0x0'));var util=require(_0xb85c('0x1'));var moment=require(_0xb85c('0x2'));var BPromise=require(_0xb85c('0x3'));var rs=require('randomstring');var fs=require('fs');var db=require('../../mysqldb')['db'];var utils=require(_0xb85c('0x4'));var logger=require(_0xb85c('0x5'))(_0xb85c('0x6'));var config=require(_0xb85c('0x7'));var jayson=require(_0xb85c('0x8'));var client=jayson[_0xb85c('0x9')][_0xb85c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2fb290,_0x2b11e0,_0x2a0e55){return new BPromise(function(_0x20dfd1,_0x4ec00a){return client[_0xb85c('0xb')](_0x2fb290,_0x2a0e55)[_0xb85c('0xc')](function(_0x493410){logger['info'](_0xb85c('0xd'),_0x2b11e0,'request\x20sent');logger[_0xb85c('0xe')](_0xb85c('0xf'),_0x2b11e0,_0xb85c('0x10'),JSON[_0xb85c('0x11')](_0x493410));if(_0x493410['error']){if(_0x493410[_0xb85c('0x12')][_0xb85c('0x13')]===0x1f4){logger[_0xb85c('0x12')](_0xb85c('0xd'),_0x2b11e0,_0x493410[_0xb85c('0x12')]['message']);return _0x4ec00a(_0x493410[_0xb85c('0x12')][_0xb85c('0x14')]);}logger[_0xb85c('0x12')]('JscriptySessionReport,\x20%s,\x20%s',_0x2b11e0,_0x493410[_0xb85c('0x12')][_0xb85c('0x14')]);return _0x20dfd1(_0x493410[_0xb85c('0x12')][_0xb85c('0x14')]);}else{logger[_0xb85c('0x15')](_0xb85c('0xd'),_0x2b11e0,_0xb85c('0x10'));_0x20dfd1(_0x493410[_0xb85c('0x16')][_0xb85c('0x14')]);}})[_0xb85c('0x17')](function(_0x43bfcd){logger['error'](_0xb85c('0xd'),_0x2b11e0,_0x43bfcd);_0x4ec00a(_0x43bfcd);});});}
\ No newline at end of file
+var _0x01f6=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','JscriptySessionReport,\x20%s,\x20%s','debug','JscriptySessionReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','bluebird','randomstring','../../mysqldb'];(function(_0x2df507,_0x553862){var _0x1f7167=function(_0x11319e){while(--_0x11319e){_0x2df507['push'](_0x2df507['shift']());}};_0x1f7167(++_0x553862);}(_0x01f6,0x10e));var _0x601f=function(_0x55e2f4,_0x715c55){_0x55e2f4=_0x55e2f4-0x0;var _0x53e0f3=_0x01f6[_0x55e2f4];return _0x53e0f3;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0x601f('0x0'));var rs=require(_0x601f('0x1'));var fs=require('fs');var db=require(_0x601f('0x2'))['db'];var utils=require(_0x601f('0x3'));var logger=require(_0x601f('0x4'))(_0x601f('0x5'));var config=require(_0x601f('0x6'));var jayson=require(_0x601f('0x7'));var client=jayson[_0x601f('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4305f2,_0x538b24,_0x4d5e75){return new BPromise(function(_0x3c1580,_0x1cad08){return client[_0x601f('0x9')](_0x4305f2,_0x4d5e75)[_0x601f('0xa')](function(_0x5ed4a7){logger[_0x601f('0xb')](_0x601f('0xc'),_0x538b24,'request\x20sent');logger[_0x601f('0xd')](_0x601f('0xe'),_0x538b24,_0x601f('0xf'),JSON[_0x601f('0x10')](_0x5ed4a7));if(_0x5ed4a7[_0x601f('0x11')]){if(_0x5ed4a7['error'][_0x601f('0x12')]===0x1f4){logger['error']('JscriptySessionReport,\x20%s,\x20%s',_0x538b24,_0x5ed4a7[_0x601f('0x11')][_0x601f('0x13')]);return _0x1cad08(_0x5ed4a7['error'][_0x601f('0x13')]);}logger[_0x601f('0x11')]('JscriptySessionReport,\x20%s,\x20%s',_0x538b24,_0x5ed4a7[_0x601f('0x11')][_0x601f('0x13')]);return _0x3c1580(_0x5ed4a7['error'][_0x601f('0x13')]);}else{logger[_0x601f('0xb')](_0x601f('0xc'),_0x538b24,_0x601f('0xf'));_0x3c1580(_0x5ed4a7['result']['message']);}})[_0x601f('0x14')](function(_0x5cc71d){logger[_0x601f('0x11')](_0x601f('0xc'),_0x538b24,_0x5cc71d);_0x1cad08(_0x5cc71d);});});}
\ No newline at end of file