Built motion from commit 53172ac8.|2.6.30
[motion2.git] / server / api / screenRecording / screenRecording.attributes.js
index 35ea23e..25f34cb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x014c=['../../config/environment','exports','VIRTUAL','extname','getDataValue','value','STRING','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','format','MM-DD-YYYY\x20HH:mm','toString','DATE','createdAt','moment'];(function(_0x5a6a90,_0x2ca2a0){var _0x434a61=function(_0x4ee129){while(--_0x4ee129){_0x5a6a90['push'](_0x5a6a90['shift']());}};_0x434a61(++_0x2ca2a0);}(_0x014c,0x17b));var _0xc014=function(_0x466247,_0x5d69e3){_0x466247=_0x466247-0x0;var _0x4b352e=_0x014c[_0x466247];return _0x4b352e;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xc014('0x0'));var path=require('path');var config=require(_0xc014('0x1'));module[_0xc014('0x2')]={'format':{'type':Sequelize[_0xc014('0x3')],'get':function(){return this['getDataValue']('value')?path[_0xc014('0x4')](this[_0xc014('0x5')](_0xc014('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0xc014('0x7')]},'channel':{'type':Sequelize[_0xc014('0x7')]},'value':{'type':Sequelize['STRING'],'set':function(_0x398960){var _0x367c5c=_0x398960['replace'](/\\/g,'/');this[_0xc014('0x8')]('value',_0x367c5c);}},'rating':{'type':Sequelize[_0xc014('0x9')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xc014('0x9')],'set':function(_0x5701db){this['setDataValue'](_0xc014('0xa'),moment()[_0xc014('0xb')](_0x5701db,'ms'));this[_0xc014('0x8')](_0xc014('0xc'),moment());this['setDataValue'](_0xc014('0xd'),_0x5701db);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xc014('0x5')]('startedAt'))[_0xc014('0xe')](_0xc014('0xf'))[_0xc014('0x10')]();}},'closedAt':{'type':Sequelize[_0xc014('0x11')],'get':function(){return moment(this['getDataValue'](_0xc014('0xc')))[_0xc014('0xe')](_0xc014('0xf'))['toString']();}},'createdAt':{'type':Sequelize[_0xc014('0x11')],'get':function(){return moment(this['getDataValue'](_0xc014('0x12')))[_0xc014('0xe')](_0xc014('0xf'))[_0xc014('0x10')]();}},'updatedAt':{'type':Sequelize[_0xc014('0x11')],'get':function(){return moment(this[_0xc014('0x5')]('updatedAt'))[_0xc014('0xe')](_0xc014('0xf'))[_0xc014('0x10')]();}}};
\ No newline at end of file
+var _0x19cb=['createdAt','updatedAt','moment','path','exports','getDataValue','value','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','MM-DD-YYYY\x20HH:mm','toString'];(function(_0x47467,_0x3afd2a){var _0x2bd690=function(_0x44ae00){while(--_0x44ae00){_0x47467['push'](_0x47467['shift']());}};_0x2bd690(++_0x3afd2a);}(_0x19cb,0x146));var _0xb19c=function(_0x202179,_0x185e1f){_0x202179=_0x202179-0x0;var _0x24852a=_0x19cb[_0x202179];return _0x24852a;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xb19c('0x0'));var path=require(_0xb19c('0x1'));var config=require('../../config/environment');module[_0xb19c('0x2')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0xb19c('0x3')]('value')?path['extname'](this['getDataValue'](_0xb19c('0x4'))):undefined;}},'interactionid':{'type':Sequelize[_0xb19c('0x5')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize['STRING'],'set':function(_0x2d6a30){var _0x477ac1=_0x2d6a30[_0xb19c('0x6')](/\\/g,'/');this[_0xb19c('0x7')]('value',_0x477ac1);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xb19c('0x8')],'set':function(_0x3ffb45){this[_0xb19c('0x7')](_0xb19c('0x9'),moment()[_0xb19c('0xa')](_0x3ffb45,'ms'));this['setDataValue'](_0xb19c('0xb'),moment());this[_0xb19c('0x7')](_0xb19c('0xc'),_0x3ffb45);}},'startedAt':{'type':Sequelize[_0xb19c('0xd')],'get':function(){return moment(this[_0xb19c('0x3')](_0xb19c('0x9')))['format']('MM-DD-YYYY\x20HH:mm')['toString']();}},'closedAt':{'type':Sequelize[_0xb19c('0xd')],'get':function(){return moment(this[_0xb19c('0x3')](_0xb19c('0xb')))['format'](_0xb19c('0xe'))[_0xb19c('0xf')]();}},'createdAt':{'type':Sequelize[_0xb19c('0xd')],'get':function(){return moment(this['getDataValue'](_0xb19c('0x10')))['format'](_0xb19c('0xe'))[_0xb19c('0xf')]();}},'updatedAt':{'type':Sequelize[_0xb19c('0xd')],'get':function(){return moment(this[_0xb19c('0x3')](_0xb19c('0x11')))['format'](_0xb19c('0xe'))[_0xb19c('0xf')]();}}};
\ No newline at end of file