Built motion from commit 4d4d9a88.|2.6.26
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index 5e9bfc9..5100c66 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x60a3=['result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request','ScreenRecording,\x20%s,\x20%s','request\x20sent','ScreenRecording,\x20%s,\x20%s,\x20%s','error','code','message','info'];(function(_0x498c85,_0x4bd176){var _0x33e3ef=function(_0x37634b){while(--_0x37634b){_0x498c85['push'](_0x498c85['shift']());}};_0x33e3ef(++_0x4bd176);}(_0x60a3,0xbf));var _0x360a=function(_0x3a07d4,_0x3e0ce4){_0x3a07d4=_0x3a07d4-0x0;var _0x563d32=_0x60a3[_0x3a07d4];return _0x563d32;};'use strict';var _=require(_0x360a('0x0'));var util=require(_0x360a('0x1'));var moment=require(_0x360a('0x2'));var BPromise=require('bluebird');var rs=require(_0x360a('0x3'));var fs=require('fs');var Redis=require(_0x360a('0x4'));var db=require(_0x360a('0x5'))['db'];var utils=require(_0x360a('0x6'));var logger=require(_0x360a('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0x360a('0x8'));var client=jayson[_0x360a('0x9')][_0x360a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3abcd5,_0x259666,_0x37fb33){return new BPromise(function(_0x2cdfa7,_0x170f2d){return client[_0x360a('0xb')](_0x3abcd5,_0x37fb33)['then'](function(_0x665882){logger['info'](_0x360a('0xc'),_0x259666,_0x360a('0xd'));logger['debug'](_0x360a('0xe'),_0x259666,_0x360a('0xd'),JSON['stringify'](_0x665882));if(_0x665882[_0x360a('0xf')]){if(_0x665882[_0x360a('0xf')][_0x360a('0x10')]===0x1f4){logger['error'](_0x360a('0xc'),_0x259666,_0x665882['error'][_0x360a('0x11')]);return _0x170f2d(_0x665882[_0x360a('0xf')]['message']);}logger[_0x360a('0xf')](_0x360a('0xc'),_0x259666,_0x665882['error'][_0x360a('0x11')]);return _0x2cdfa7(_0x665882[_0x360a('0xf')][_0x360a('0x11')]);}else{logger[_0x360a('0x12')](_0x360a('0xc'),_0x259666,_0x360a('0xd'));_0x2cdfa7(_0x665882[_0x360a('0x13')][_0x360a('0x11')]);}})[_0x360a('0x14')](function(_0x1f50a6){logger[_0x360a('0xf')](_0x360a('0xc'),_0x259666,_0x1f50a6);_0x170f2d(_0x1f50a6);});});}
\ No newline at end of file
+var _0x8787=['util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','info','ScreenRecording,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','result','catch','lodash'];(function(_0xe2406d,_0x20b53e){var _0x38826b=function(_0x238edf){while(--_0x238edf){_0xe2406d['push'](_0xe2406d['shift']());}};_0x38826b(++_0x20b53e);}(_0x8787,0x158));var _0x7878=function(_0x2480cd,_0x433aec){_0x2480cd=_0x2480cd-0x0;var _0x1ca300=_0x8787[_0x2480cd];return _0x1ca300;};'use strict';var _=require(_0x7878('0x0'));var util=require(_0x7878('0x1'));var moment=require('moment');var BPromise=require(_0x7878('0x2'));var rs=require(_0x7878('0x3'));var fs=require('fs');var Redis=require(_0x7878('0x4'));var db=require(_0x7878('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x7878('0x6'))(_0x7878('0x7'));var config=require('../../config/environment');var jayson=require(_0x7878('0x8'));var client=jayson[_0x7878('0x9')][_0x7878('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x7955d1,_0x2e4213,_0x257c26){return new BPromise(function(_0x51bb9f,_0x2d569a){return client[_0x7878('0xb')](_0x7955d1,_0x257c26)[_0x7878('0xc')](function(_0x2bbf8c){logger[_0x7878('0xd')](_0x7878('0xe'),_0x2e4213,'request\x20sent');logger[_0x7878('0xf')]('ScreenRecording,\x20%s,\x20%s,\x20%s',_0x2e4213,_0x7878('0x10'),JSON[_0x7878('0x11')](_0x2bbf8c));if(_0x2bbf8c[_0x7878('0x12')]){if(_0x2bbf8c['error'][_0x7878('0x13')]===0x1f4){logger[_0x7878('0x12')](_0x7878('0xe'),_0x2e4213,_0x2bbf8c[_0x7878('0x12')][_0x7878('0x14')]);return _0x2d569a(_0x2bbf8c[_0x7878('0x12')][_0x7878('0x14')]);}logger[_0x7878('0x12')](_0x7878('0xe'),_0x2e4213,_0x2bbf8c['error'][_0x7878('0x14')]);return _0x51bb9f(_0x2bbf8c[_0x7878('0x12')][_0x7878('0x14')]);}else{logger[_0x7878('0xd')](_0x7878('0xe'),_0x2e4213,_0x7878('0x10'));_0x51bb9f(_0x2bbf8c[_0x7878('0x15')][_0x7878('0x14')]);}})[_0x7878('0x16')](function(_0x5e55a2){logger['error']('ScreenRecording,\x20%s,\x20%s',_0x2e4213,_0x5e55a2);_0x2d569a(_0x5e55a2);});});}
\ No newline at end of file