Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index 7132862..85e8513 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7c6a=['rpc','jayson/promise','client','http','request','then','ScreenRecording,\x20%s,\x20%s','request\x20sent','debug','error','message','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x4526ee,_0x1b275b){var _0x36ed69=function(_0x2cca0b){while(--_0x2cca0b){_0x4526ee['push'](_0x4526ee['shift']());}};_0x36ed69(++_0x1b275b);}(_0x7c6a,0x197));var _0xa7c6=function(_0x3eb59c,_0x146eaa){_0x3eb59c=_0x3eb59c-0x0;var _0x1a79cc=_0x7c6a[_0x3eb59c];return _0x1a79cc;};'use strict';var _=require(_0xa7c6('0x0'));var util=require('util');var moment=require(_0xa7c6('0x1'));var BPromise=require(_0xa7c6('0x2'));var rs=require(_0xa7c6('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa7c6('0x4'))['db'];var utils=require(_0xa7c6('0x5'));var logger=require(_0xa7c6('0x6'))(_0xa7c6('0x7'));var config=require('../../config/environment');var jayson=require(_0xa7c6('0x8'));var client=jayson[_0xa7c6('0x9')][_0xa7c6('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x32a160,_0x48a397,_0x543f0c){return new BPromise(function(_0x33cc8a,_0x4f5893){return client[_0xa7c6('0xb')](_0x32a160,_0x543f0c)[_0xa7c6('0xc')](function(_0x329a84){logger['info'](_0xa7c6('0xd'),_0x48a397,_0xa7c6('0xe'));logger[_0xa7c6('0xf')]('ScreenRecording,\x20%s,\x20%s,\x20%s',_0x48a397,_0xa7c6('0xe'),JSON['stringify'](_0x329a84));if(_0x329a84['error']){if(_0x329a84['error']['code']===0x1f4){logger[_0xa7c6('0x10')](_0xa7c6('0xd'),_0x48a397,_0x329a84['error'][_0xa7c6('0x11')]);return _0x4f5893(_0x329a84[_0xa7c6('0x10')][_0xa7c6('0x11')]);}logger[_0xa7c6('0x10')]('ScreenRecording,\x20%s,\x20%s',_0x48a397,_0x329a84[_0xa7c6('0x10')][_0xa7c6('0x11')]);return _0x33cc8a(_0x329a84[_0xa7c6('0x10')][_0xa7c6('0x11')]);}else{logger['info'](_0xa7c6('0xd'),_0x48a397,_0xa7c6('0xe'));_0x33cc8a(_0x329a84['result'][_0xa7c6('0x11')]);}})['catch'](function(_0x148148){logger[_0xa7c6('0x10')]('ScreenRecording,\x20%s,\x20%s',_0x48a397,_0x148148);_0x4f5893(_0x148148);});});}
\ 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