Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index 0f8788c..85e8513 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2fc8=['request','then','info','ScreenRecording,\x20%s,\x20%s','request\x20sent','ScreenRecording,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client'];(function(_0x26af67,_0x16e0a1){var _0x30fb7b=function(_0x5c22ac){while(--_0x5c22ac){_0x26af67['push'](_0x26af67['shift']());}};_0x30fb7b(++_0x16e0a1);}(_0x2fc8,0xb3));var _0x82fc=function(_0x1e7b16,_0x4607a1){_0x1e7b16=_0x1e7b16-0x0;var _0x37fadc=_0x2fc8[_0x1e7b16];return _0x37fadc;};'use strict';var _=require(_0x82fc('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x82fc('0x1'));var rs=require(_0x82fc('0x2'));var fs=require('fs');var Redis=require(_0x82fc('0x3'));var db=require(_0x82fc('0x4'))['db'];var utils=require(_0x82fc('0x5'));var logger=require(_0x82fc('0x6'))('rpc');var config=require(_0x82fc('0x7'));var jayson=require(_0x82fc('0x8'));var client=jayson[_0x82fc('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x46d491,_0x14ea3f,_0x305770){return new BPromise(function(_0x17e547,_0x1105a3){return client[_0x82fc('0xa')](_0x46d491,_0x305770)[_0x82fc('0xb')](function(_0x2c5712){logger[_0x82fc('0xc')](_0x82fc('0xd'),_0x14ea3f,_0x82fc('0xe'));logger['debug'](_0x82fc('0xf'),_0x14ea3f,_0x82fc('0xe'),JSON[_0x82fc('0x10')](_0x2c5712));if(_0x2c5712[_0x82fc('0x11')]){if(_0x2c5712[_0x82fc('0x11')][_0x82fc('0x12')]===0x1f4){logger[_0x82fc('0x11')](_0x82fc('0xd'),_0x14ea3f,_0x2c5712[_0x82fc('0x11')][_0x82fc('0x13')]);return _0x1105a3(_0x2c5712[_0x82fc('0x11')][_0x82fc('0x13')]);}logger[_0x82fc('0x11')](_0x82fc('0xd'),_0x14ea3f,_0x2c5712['error']['message']);return _0x17e547(_0x2c5712[_0x82fc('0x11')]['message']);}else{logger[_0x82fc('0xc')](_0x82fc('0xd'),_0x14ea3f,_0x82fc('0xe'));_0x17e547(_0x2c5712['result'][_0x82fc('0x13')]);}})[_0x82fc('0x14')](function(_0xfbc560){logger[_0x82fc('0x11')](_0x82fc('0xd'),_0x14ea3f,_0xfbc560);_0x1105a3(_0xfbc560);});});}
\ No newline at end of file
+var _0xf068=['../../config/utils','../../config/logger','rpc','jayson/promise','http','request','then','info','request\x20sent','ScreenRecording,\x20%s,\x20%s,\x20%s','stringify','error','ScreenRecording,\x20%s,\x20%s','message','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x261305,_0x2efc00){var _0x5808b1=function(_0x5d070b){while(--_0x5d070b){_0x261305['push'](_0x261305['shift']());}};_0x5808b1(++_0x2efc00);}(_0xf068,0xd6));var _0x8f06=function(_0x256973,_0x38d186){_0x256973=_0x256973-0x0;var _0x5bdf0a=_0xf068[_0x256973];return _0x5bdf0a;};'use strict';var _=require(_0x8f06('0x0'));var util=require('util');var moment=require(_0x8f06('0x1'));var BPromise=require(_0x8f06('0x2'));var rs=require(_0x8f06('0x3'));var fs=require('fs');var Redis=require(_0x8f06('0x4'));var db=require(_0x8f06('0x5'))['db'];var utils=require(_0x8f06('0x6'));var logger=require(_0x8f06('0x7'))(_0x8f06('0x8'));var config=require('../../config/environment');var jayson=require(_0x8f06('0x9'));var client=jayson['client'][_0x8f06('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x24561d,_0x8369b4,_0x477c34){return new BPromise(function(_0xffef68,_0x18201c){return client[_0x8f06('0xb')](_0x24561d,_0x477c34)[_0x8f06('0xc')](function(_0x491d8d){logger[_0x8f06('0xd')]('ScreenRecording,\x20%s,\x20%s',_0x8369b4,_0x8f06('0xe'));logger['debug'](_0x8f06('0xf'),_0x8369b4,_0x8f06('0xe'),JSON[_0x8f06('0x10')](_0x491d8d));if(_0x491d8d['error']){if(_0x491d8d[_0x8f06('0x11')]['code']===0x1f4){logger[_0x8f06('0x11')](_0x8f06('0x12'),_0x8369b4,_0x491d8d[_0x8f06('0x11')][_0x8f06('0x13')]);return _0x18201c(_0x491d8d['error'][_0x8f06('0x13')]);}logger[_0x8f06('0x11')](_0x8f06('0x12'),_0x8369b4,_0x491d8d['error']['message']);return _0xffef68(_0x491d8d[_0x8f06('0x11')][_0x8f06('0x13')]);}else{logger['info'](_0x8f06('0x12'),_0x8369b4,_0x8f06('0xe'));_0xffef68(_0x491d8d['result'][_0x8f06('0x13')]);}})['catch'](function(_0x252512){logger[_0x8f06('0x11')](_0x8f06('0x12'),_0x8369b4,_0x252512);_0x18201c(_0x252512);});});}
\ No newline at end of file