Built motion from commit (unavailable).|2.4.1
[motion2.git] / server / api / screenRecording / screenRecording.model.js
index dc727ab..6840f27 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb1c8=['isNil','join','root','files','value','existsSync','catch','resolve','finally','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./screenRecording.attributes','exports','define','ScreenRecording','screen_recordings','interactionid'];(function(_0x1f74db,_0x46d348){var _0x4763c5=function(_0x4996ce){while(--_0x4996ce){_0x1f74db['push'](_0x1f74db['shift']());}};_0x4763c5(++_0x46d348);}(_0xb1c8,0x1d1));var _0x8b1c=function(_0x52bfa5,_0x42cf21){_0x52bfa5=_0x52bfa5-0x0;var _0x26f80b=_0xb1c8[_0x52bfa5];return _0x26f80b;};'use strict';var _=require(_0x8b1c('0x0'));var util=require(_0x8b1c('0x1'));var logger=require(_0x8b1c('0x2'))(_0x8b1c('0x3'));var moment=require(_0x8b1c('0x4'));var BPromise=require(_0x8b1c('0x5'));var rp=require(_0x8b1c('0x6'));var fs=require('fs');var path=require(_0x8b1c('0x7'));var rimraf=require('rimraf');var config=require(_0x8b1c('0x8'));var attributes=require(_0x8b1c('0x9'));module[_0x8b1c('0xa')]=function(_0x42e8a8,_0x12567b){return _0x42e8a8[_0x8b1c('0xb')](_0x8b1c('0xc'),attributes,{'tableName':_0x8b1c('0xd'),'paranoid':![],'indexes':[{'name':'interactionid','fields':[_0x8b1c('0xe')]}],'timestamps':!![],'hooks':{'afterDestroy':function(_0x396410,_0x3b3aa3,_0x1d615c){return new BPromise(function(_0x50121f,_0x22b09b){if(!_[_0x8b1c('0xf')](_0x396410['value'])){var _0x191bf0=path[_0x8b1c('0x10')](config[_0x8b1c('0x11')],'server',_0x8b1c('0x12'),_0x8b1c('0xd'),_0x396410[_0x8b1c('0x13')]);if(fs[_0x8b1c('0x14')](_0x191bf0)){rimraf(_0x191bf0,function(_0x2430cc){if(_0x2430cc){console['log'](_0x2430cc);}});}}_0x50121f();})[_0x8b1c('0x15')](function(_0x6b2c35){BPromise[_0x8b1c('0x16')]();})[_0x8b1c('0x17')](function(){_0x1d615c();});}}});};
\ No newline at end of file
+var _0xfba9=['lodash','util','api','moment','request-promise','path','rimraf','./screenRecording.attributes','define','ScreenRecording','screen_recordings','interactionid','isNil','value','join','root','files','existsSync','log','catch','resolve','finally'];(function(_0x2ec461,_0x5f588a){var _0x28603d=function(_0x21114b){while(--_0x21114b){_0x2ec461['push'](_0x2ec461['shift']());}};_0x28603d(++_0x5f588a);}(_0xfba9,0x1a2));var _0x9fba=function(_0x2ea9fd,_0x45d80b){_0x2ea9fd=_0x2ea9fd-0x0;var _0x27d18e=_0xfba9[_0x2ea9fd];return _0x27d18e;};'use strict';var _=require(_0x9fba('0x0'));var util=require(_0x9fba('0x1'));var logger=require('../../config/logger')(_0x9fba('0x2'));var moment=require(_0x9fba('0x3'));var BPromise=require('bluebird');var rp=require(_0x9fba('0x4'));var fs=require('fs');var path=require(_0x9fba('0x5'));var rimraf=require(_0x9fba('0x6'));var config=require('../../config/environment');var attributes=require(_0x9fba('0x7'));module['exports']=function(_0x33c48c,_0x3148d7){return _0x33c48c[_0x9fba('0x8')](_0x9fba('0x9'),attributes,{'tableName':_0x9fba('0xa'),'paranoid':![],'indexes':[{'name':_0x9fba('0xb'),'fields':[_0x9fba('0xb')]}],'timestamps':!![],'hooks':{'afterDestroy':function(_0x195acd,_0x534fc7,_0x37ab9d){return new BPromise(function(_0x105f51,_0x353c0e){if(!_[_0x9fba('0xc')](_0x195acd[_0x9fba('0xd')])){var _0x294833=path[_0x9fba('0xe')](config[_0x9fba('0xf')],'server',_0x9fba('0x10'),'screen_recordings',_0x195acd[_0x9fba('0xd')]);if(fs[_0x9fba('0x11')](_0x294833)){rimraf(_0x294833,function(_0x5d8778){if(_0x5d8778){console[_0x9fba('0x12')](_0x5d8778);}});}}_0x105f51();})[_0x9fba('0x13')](function(_0x4d30f0){BPromise[_0x9fba('0x14')]();})[_0x9fba('0x15')](function(){_0x37ab9d();});}}});};
\ No newline at end of file