Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / screenRecording / screenRecording.rpc.js
index 7cdc73e..3fc3dd5 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 _0x5956=['../../config/environment','jayson/promise','client','request','ScreenRecording,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info','result','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc'];(function(_0x43608c,_0x29b597){var _0x2001a2=function(_0x2e4e03){while(--_0x2e4e03){_0x43608c['push'](_0x43608c['shift']());}};_0x2001a2(++_0x29b597);}(_0x5956,0x19b));var _0x6595=function(_0x20fa14,_0x2f0234){_0x20fa14=_0x20fa14-0x0;var _0x161aa0=_0x5956[_0x20fa14];return _0x161aa0;};'use strict';var _=require(_0x6595('0x0'));var util=require(_0x6595('0x1'));var moment=require('moment');var BPromise=require(_0x6595('0x2'));var rs=require(_0x6595('0x3'));var fs=require('fs');var Redis=require(_0x6595('0x4'));var db=require(_0x6595('0x5'))['db'];var utils=require(_0x6595('0x6'));var logger=require(_0x6595('0x7'))(_0x6595('0x8'));var config=require(_0x6595('0x9'));var jayson=require(_0x6595('0xa'));var client=jayson[_0x6595('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x182ea3,_0x222c46,_0x3ac45a){return new BPromise(function(_0x4e121f,_0x4ff2f9){return client[_0x6595('0xc')](_0x182ea3,_0x3ac45a)['then'](function(_0x4b8561){logger['info'](_0x6595('0xd'),_0x222c46,_0x6595('0xe'));logger['debug']('ScreenRecording,\x20%s,\x20%s,\x20%s',_0x222c46,'request\x20sent',JSON[_0x6595('0xf')](_0x4b8561));if(_0x4b8561[_0x6595('0x10')]){if(_0x4b8561[_0x6595('0x10')][_0x6595('0x11')]===0x1f4){logger[_0x6595('0x10')]('ScreenRecording,\x20%s,\x20%s',_0x222c46,_0x4b8561[_0x6595('0x10')][_0x6595('0x12')]);return _0x4ff2f9(_0x4b8561[_0x6595('0x10')][_0x6595('0x12')]);}logger['error'](_0x6595('0xd'),_0x222c46,_0x4b8561[_0x6595('0x10')]['message']);return _0x4e121f(_0x4b8561[_0x6595('0x10')][_0x6595('0x12')]);}else{logger[_0x6595('0x13')](_0x6595('0xd'),_0x222c46,'request\x20sent');_0x4e121f(_0x4b8561[_0x6595('0x14')][_0x6595('0x12')]);}})['catch'](function(_0x54c43f){logger[_0x6595('0x10')](_0x6595('0xd'),_0x222c46,_0x54c43f);_0x4ff2f9(_0x54c43f);});});}
\ No newline at end of file