Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index 7cdc73e..258110a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb5f9=['http','request','then','info','ScreenRecording,\x20%s,\x20%s','request\x20sent','ScreenRecording,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x494c43,_0x2158f2){var _0x2d4cb7=function(_0x23c126){while(--_0x23c126){_0x494c43['push'](_0x494c43['shift']());}};_0x2d4cb7(++_0x2158f2);}(_0xb5f9,0x166));var _0x9b5f=function(_0x28b218,_0x286076){_0x28b218=_0x28b218-0x0;var _0x3ac3f8=_0xb5f9[_0x28b218];return _0x3ac3f8;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x9b5f('0x0'));var BPromise=require(_0x9b5f('0x1'));var rs=require(_0x9b5f('0x2'));var fs=require('fs');var Redis=require(_0x9b5f('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x9b5f('0x4'));var logger=require(_0x9b5f('0x5'))(_0x9b5f('0x6'));var config=require(_0x9b5f('0x7'));var jayson=require(_0x9b5f('0x8'));var client=jayson[_0x9b5f('0x9')][_0x9b5f('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x13fc1e,_0x41e96e,_0x22b61c){return new BPromise(function(_0x89b630,_0x4ed8ae){return client[_0x9b5f('0xb')](_0x13fc1e,_0x22b61c)[_0x9b5f('0xc')](function(_0xeb15a2){logger[_0x9b5f('0xd')](_0x9b5f('0xe'),_0x41e96e,_0x9b5f('0xf'));logger['debug'](_0x9b5f('0x10'),_0x41e96e,_0x9b5f('0xf'),JSON[_0x9b5f('0x11')](_0xeb15a2));if(_0xeb15a2[_0x9b5f('0x12')]){if(_0xeb15a2[_0x9b5f('0x12')][_0x9b5f('0x13')]===0x1f4){logger[_0x9b5f('0x12')](_0x9b5f('0xe'),_0x41e96e,_0xeb15a2[_0x9b5f('0x12')][_0x9b5f('0x14')]);return _0x4ed8ae(_0xeb15a2[_0x9b5f('0x12')][_0x9b5f('0x14')]);}logger[_0x9b5f('0x12')](_0x9b5f('0xe'),_0x41e96e,_0xeb15a2['error']['message']);return _0x89b630(_0xeb15a2['error'][_0x9b5f('0x14')]);}else{logger[_0x9b5f('0xd')](_0x9b5f('0xe'),_0x41e96e,_0x9b5f('0xf'));_0x89b630(_0xeb15a2[_0x9b5f('0x15')]['message']);}})[_0x9b5f('0x16')](function(_0x11da89){logger[_0x9b5f('0x12')](_0x9b5f('0xe'),_0x41e96e,_0x11da89);_0x4ed8ae(_0x11da89);});});}
\ No newline at end of file
+var _0xee4f=['code','ScreenRecording,\x20%s,\x20%s','message','info','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','request\x20sent','debug','ScreenRecording,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x5b2412,_0x14696a){var _0x4ae918=function(_0xb98caf){while(--_0xb98caf){_0x5b2412['push'](_0x5b2412['shift']());}};_0x4ae918(++_0x14696a);}(_0xee4f,0x14a));var _0xfee4=function(_0x3d1c32,_0x1fcf95){_0x3d1c32=_0x3d1c32-0x0;var _0x1fd510=_0xee4f[_0x3d1c32];return _0x1fd510;};'use strict';var _=require(_0xfee4('0x0'));var util=require(_0xfee4('0x1'));var moment=require(_0xfee4('0x2'));var BPromise=require(_0xfee4('0x3'));var rs=require(_0xfee4('0x4'));var fs=require('fs');var Redis=require(_0xfee4('0x5'));var db=require(_0xfee4('0x6'))['db'];var utils=require(_0xfee4('0x7'));var logger=require('../../config/logger')(_0xfee4('0x8'));var config=require(_0xfee4('0x9'));var jayson=require(_0xfee4('0xa'));var client=jayson[_0xfee4('0xb')][_0xfee4('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x762c9b,_0x247963,_0x2bcefc){return new BPromise(function(_0x852191,_0x453625){return client[_0xfee4('0xd')](_0x762c9b,_0x2bcefc)[_0xfee4('0xe')](function(_0x2e4d30){logger['info']('ScreenRecording,\x20%s,\x20%s',_0x247963,_0xfee4('0xf'));logger[_0xfee4('0x10')](_0xfee4('0x11'),_0x247963,_0xfee4('0xf'),JSON[_0xfee4('0x12')](_0x2e4d30));if(_0x2e4d30[_0xfee4('0x13')]){if(_0x2e4d30['error'][_0xfee4('0x14')]===0x1f4){logger[_0xfee4('0x13')](_0xfee4('0x15'),_0x247963,_0x2e4d30[_0xfee4('0x13')][_0xfee4('0x16')]);return _0x453625(_0x2e4d30['error'][_0xfee4('0x16')]);}logger[_0xfee4('0x13')](_0xfee4('0x15'),_0x247963,_0x2e4d30[_0xfee4('0x13')][_0xfee4('0x16')]);return _0x852191(_0x2e4d30['error'][_0xfee4('0x16')]);}else{logger[_0xfee4('0x17')](_0xfee4('0x15'),_0x247963,_0xfee4('0xf'));_0x852191(_0x2e4d30[_0xfee4('0x18')][_0xfee4('0x16')]);}})['catch'](function(_0x1022cf){logger[_0xfee4('0x13')](_0xfee4('0x15'),_0x247963,_0x1022cf);_0x453625(_0x1022cf);});});}
\ No newline at end of file