Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index fceaa35..e2c21a5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa275=['error','code','message','lodash','util','../../config/utils','../../config/logger','rpc','../../config/environment','http','request','then','info','ScreenRecording,\x20%s,\x20%s','request\x20sent','debug','ScreenRecording,\x20%s,\x20%s,\x20%s'];(function(_0x3e21f4,_0x43d310){var _0x40fc49=function(_0x54a8f6){while(--_0x54a8f6){_0x3e21f4['push'](_0x3e21f4['shift']());}};_0x40fc49(++_0x43d310);}(_0xa275,0x8b));var _0x5a27=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xa275[_0x2c91e9];return _0x13f0ff;};'use strict';var _=require(_0x5a27('0x0'));var util=require(_0x5a27('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x5a27('0x2'));var logger=require(_0x5a27('0x3'))(_0x5a27('0x4'));var config=require(_0x5a27('0x5'));var jayson=require('jayson/promise');var client=jayson['client'][_0x5a27('0x6')]({'port':0x232a});function respondWithRpcPromise(_0x1c0709,_0x5c9141,_0x3733c3){return new BPromise(function(_0x16921b,_0x435478){return client[_0x5a27('0x7')](_0x1c0709,_0x3733c3)[_0x5a27('0x8')](function(_0x1d9549){logger[_0x5a27('0x9')](_0x5a27('0xa'),_0x5c9141,_0x5a27('0xb'));logger[_0x5a27('0xc')](_0x5a27('0xd'),_0x5c9141,_0x5a27('0xb'),JSON['stringify'](_0x1d9549));if(_0x1d9549[_0x5a27('0xe')]){if(_0x1d9549[_0x5a27('0xe')][_0x5a27('0xf')]===0x1f4){logger[_0x5a27('0xe')](_0x5a27('0xa'),_0x5c9141,_0x1d9549['error'][_0x5a27('0x10')]);return _0x435478(_0x1d9549[_0x5a27('0xe')][_0x5a27('0x10')]);}logger[_0x5a27('0xe')](_0x5a27('0xa'),_0x5c9141,_0x1d9549[_0x5a27('0xe')][_0x5a27('0x10')]);return _0x16921b(_0x1d9549[_0x5a27('0xe')][_0x5a27('0x10')]);}else{logger['info'](_0x5a27('0xa'),_0x5c9141,_0x5a27('0xb'));_0x16921b(_0x1d9549['result'][_0x5a27('0x10')]);}})['catch'](function(_0x35589b){logger[_0x5a27('0xe')]('ScreenRecording,\x20%s,\x20%s',_0x5c9141,_0x35589b);_0x435478(_0x35589b);});});}
\ No newline at end of file
+var _0x27f9=['randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','then','info','ScreenRecording,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','moment','bluebird'];(function(_0x31eab0,_0x14be89){var _0x36a7eb=function(_0x3ae825){while(--_0x3ae825){_0x31eab0['push'](_0x31eab0['shift']());}};_0x36a7eb(++_0x14be89);}(_0x27f9,0x1de));var _0x927f=function(_0x490daf,_0x4be094){_0x490daf=_0x490daf-0x0;var _0x52b0dd=_0x27f9[_0x490daf];return _0x52b0dd;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x927f('0x0'));var BPromise=require(_0x927f('0x1'));var rs=require(_0x927f('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x927f('0x3'))['db'];var utils=require(_0x927f('0x4'));var logger=require(_0x927f('0x5'))('rpc');var config=require(_0x927f('0x6'));var jayson=require(_0x927f('0x7'));var client=jayson[_0x927f('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x136873,_0x1524d2,_0x58f8bf){return new BPromise(function(_0x241996,_0x9a533b){return client['request'](_0x136873,_0x58f8bf)[_0x927f('0x9')](function(_0x54795a){logger[_0x927f('0xa')](_0x927f('0xb'),_0x1524d2,_0x927f('0xc'));logger[_0x927f('0xd')]('ScreenRecording,\x20%s,\x20%s,\x20%s',_0x1524d2,_0x927f('0xc'),JSON[_0x927f('0xe')](_0x54795a));if(_0x54795a[_0x927f('0xf')]){if(_0x54795a[_0x927f('0xf')][_0x927f('0x10')]===0x1f4){logger[_0x927f('0xf')](_0x927f('0xb'),_0x1524d2,_0x54795a[_0x927f('0xf')][_0x927f('0x11')]);return _0x9a533b(_0x54795a[_0x927f('0xf')][_0x927f('0x11')]);}logger[_0x927f('0xf')]('ScreenRecording,\x20%s,\x20%s',_0x1524d2,_0x54795a[_0x927f('0xf')][_0x927f('0x11')]);return _0x241996(_0x54795a[_0x927f('0xf')][_0x927f('0x11')]);}else{logger[_0x927f('0xa')](_0x927f('0xb'),_0x1524d2,_0x927f('0xc'));_0x241996(_0x54795a[_0x927f('0x12')][_0x927f('0x11')]);}})[_0x927f('0x13')](function(_0x411531){logger[_0x927f('0xf')](_0x927f('0xb'),_0x1524d2,_0x411531);_0x9a533b(_0x411531);});});}
\ No newline at end of file