Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index 42f9a57..e32575d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x42ef=['ScreenRecording,\x20%s,\x20%s,\x20%s','stringify','error','code','message','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','jayson/promise','client','http','request','info','ScreenRecording,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x26af5d,_0x26e33d){var _0x5ee59b=function(_0x531cd3){while(--_0x531cd3){_0x26af5d['push'](_0x26af5d['shift']());}};_0x5ee59b(++_0x26e33d);}(_0x42ef,0x98));var _0xf42e=function(_0x33398a,_0x100006){_0x33398a=_0x33398a-0x0;var _0x782593=_0x42ef[_0x33398a];return _0x782593;};'use strict';var _=require(_0xf42e('0x0'));var util=require(_0xf42e('0x1'));var moment=require(_0xf42e('0x2'));var BPromise=require(_0xf42e('0x3'));var rs=require(_0xf42e('0x4'));var fs=require('fs');var Redis=require(_0xf42e('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xf42e('0x6'));var logger=require(_0xf42e('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0xf42e('0x8'));var client=jayson[_0xf42e('0x9')][_0xf42e('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x58ccd5,_0x2f5359,_0x599487){return new BPromise(function(_0x3b9665,_0x361e2d){return client[_0xf42e('0xb')](_0x58ccd5,_0x599487)['then'](function(_0x12cb38){logger[_0xf42e('0xc')](_0xf42e('0xd'),_0x2f5359,_0xf42e('0xe'));logger[_0xf42e('0xf')](_0xf42e('0x10'),_0x2f5359,_0xf42e('0xe'),JSON[_0xf42e('0x11')](_0x12cb38));if(_0x12cb38[_0xf42e('0x12')]){if(_0x12cb38['error'][_0xf42e('0x13')]===0x1f4){logger[_0xf42e('0x12')](_0xf42e('0xd'),_0x2f5359,_0x12cb38[_0xf42e('0x12')][_0xf42e('0x14')]);return _0x361e2d(_0x12cb38[_0xf42e('0x12')][_0xf42e('0x14')]);}logger[_0xf42e('0x12')](_0xf42e('0xd'),_0x2f5359,_0x12cb38[_0xf42e('0x12')][_0xf42e('0x14')]);return _0x3b9665(_0x12cb38[_0xf42e('0x12')][_0xf42e('0x14')]);}else{logger['info'](_0xf42e('0xd'),_0x2f5359,_0xf42e('0xe'));_0x3b9665(_0x12cb38['result'][_0xf42e('0x14')]);}})['catch'](function(_0x46f814){logger[_0xf42e('0x12')](_0xf42e('0xd'),_0x2f5359,_0x46f814);_0x361e2d(_0x46f814);});});}
\ No newline at end of file
+var _0x45aa=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','ScreenRecording,\x20%s,\x20%s','request\x20sent','debug','ScreenRecording,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','catch','lodash','util','moment'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0x45aa,0x165));var _0xa45a=function(_0xb13dfb,_0x2279f2){_0xb13dfb=_0xb13dfb-0x0;var _0x5ad8cb=_0x45aa[_0xb13dfb];return _0x5ad8cb;};'use strict';var _=require(_0xa45a('0x0'));var util=require(_0xa45a('0x1'));var moment=require(_0xa45a('0x2'));var BPromise=require(_0xa45a('0x3'));var rs=require(_0xa45a('0x4'));var fs=require('fs');var Redis=require(_0xa45a('0x5'));var db=require(_0xa45a('0x6'))['db'];var utils=require(_0xa45a('0x7'));var logger=require(_0xa45a('0x8'))(_0xa45a('0x9'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xa45a('0xa')][_0xa45a('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x556324,_0x4b922f,_0x4be386){return new BPromise(function(_0x57aaf0,_0x3b2617){return client[_0xa45a('0xc')](_0x556324,_0x4be386)[_0xa45a('0xd')](function(_0x435ac7){logger['info'](_0xa45a('0xe'),_0x4b922f,_0xa45a('0xf'));logger[_0xa45a('0x10')](_0xa45a('0x11'),_0x4b922f,_0xa45a('0xf'),JSON[_0xa45a('0x12')](_0x435ac7));if(_0x435ac7[_0xa45a('0x13')]){if(_0x435ac7['error'][_0xa45a('0x14')]===0x1f4){logger['error']('ScreenRecording,\x20%s,\x20%s',_0x4b922f,_0x435ac7['error'][_0xa45a('0x15')]);return _0x3b2617(_0x435ac7[_0xa45a('0x13')]['message']);}logger[_0xa45a('0x13')](_0xa45a('0xe'),_0x4b922f,_0x435ac7[_0xa45a('0x13')][_0xa45a('0x15')]);return _0x57aaf0(_0x435ac7[_0xa45a('0x13')][_0xa45a('0x15')]);}else{logger[_0xa45a('0x16')](_0xa45a('0xe'),_0x4b922f,_0xa45a('0xf'));_0x57aaf0(_0x435ac7['result'][_0xa45a('0x15')]);}})[_0xa45a('0x17')](function(_0x537868){logger[_0xa45a('0x13')]('ScreenRecording,\x20%s,\x20%s',_0x4b922f,_0x537868);_0x3b2617(_0x537868);});});}
\ No newline at end of file