Built motion from commit e38a297d.|2.6.18
[motion2.git] / server / api / screenRecording / screenRecording.attributes.js
index caee9a2..d4870ba 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x46cb=['sequelize','moment','path','../../config/environment','VIRTUAL','getDataValue','value','extname','STRING','replace','setDataValue','INTEGER','startedAt','subtract','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','closedAt','createdAt','updatedAt'];(function(_0x116f38,_0x31d8a1){var _0x3dc58b=function(_0x2cd7e1){while(--_0x2cd7e1){_0x116f38['push'](_0x116f38['shift']());}};_0x3dc58b(++_0x31d8a1);}(_0x46cb,0x84));var _0xb46c=function(_0x1d0458,_0x4ed6d4){_0x1d0458=_0x1d0458-0x0;var _0x2fad3c=_0x46cb[_0x1d0458];return _0x2fad3c;};'use strict';var Sequelize=require(_0xb46c('0x0'));var moment=require(_0xb46c('0x1'));var path=require(_0xb46c('0x2'));var config=require(_0xb46c('0x3'));module['exports']={'format':{'type':Sequelize[_0xb46c('0x4')],'get':function(){return this[_0xb46c('0x5')](_0xb46c('0x6'))?path[_0xb46c('0x7')](this['getDataValue'](_0xb46c('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0xb46c('0x8')]},'channel':{'type':Sequelize[_0xb46c('0x8')]},'value':{'type':Sequelize['STRING'],'set':function(_0x16554f){var _0x595776=_0x16554f[_0xb46c('0x9')](/\\/g,'/');this[_0xb46c('0xa')]('value',_0x595776);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xb46c('0xb')],'set':function(_0x12a113){this[_0xb46c('0xa')](_0xb46c('0xc'),moment()[_0xb46c('0xd')](_0x12a113,'ms'));this[_0xb46c('0xa')]('closedAt',moment());this[_0xb46c('0xa')](_0xb46c('0xe'),_0x12a113);}},'startedAt':{'type':Sequelize[_0xb46c('0xf')],'get':function(){return moment(this[_0xb46c('0x5')]('startedAt'))[_0xb46c('0x10')](_0xb46c('0x11'))[_0xb46c('0x12')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xb46c('0x5')](_0xb46c('0x13')))['format'](_0xb46c('0x11'))[_0xb46c('0x12')]();}},'createdAt':{'type':Sequelize[_0xb46c('0xf')],'get':function(){return moment(this[_0xb46c('0x5')](_0xb46c('0x14')))[_0xb46c('0x10')](_0xb46c('0x11'))['toString']();}},'updatedAt':{'type':Sequelize[_0xb46c('0xf')],'get':function(){return moment(this[_0xb46c('0x5')](_0xb46c('0x15')))[_0xb46c('0x10')](_0xb46c('0x11'))[_0xb46c('0x12')]();}}};
\ No newline at end of file
+var _0x13cc=['replace','setDataValue','INTEGER','subtract','closedAt','duration','format','DATE','MM-DD-YYYY\x20HH:mm','toString','createdAt','path','../../config/environment','VIRTUAL','getDataValue','value','extname','STRING'];(function(_0x441199,_0xb73e4){var _0x16a478=function(_0xdd73fa){while(--_0xdd73fa){_0x441199['push'](_0x441199['shift']());}};_0x16a478(++_0xb73e4);}(_0x13cc,0x161));var _0xc13c=function(_0x631a84,_0x180570){_0x631a84=_0x631a84-0x0;var _0x6930ab=_0x13cc[_0x631a84];return _0x6930ab;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');var path=require(_0xc13c('0x0'));var config=require(_0xc13c('0x1'));module['exports']={'format':{'type':Sequelize[_0xc13c('0x2')],'get':function(){return this[_0xc13c('0x3')](_0xc13c('0x4'))?path[_0xc13c('0x5')](this[_0xc13c('0x3')](_0xc13c('0x4'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xc13c('0x6')]},'value':{'type':Sequelize['STRING'],'set':function(_0x18b0b4){var _0x41b41b=_0x18b0b4[_0xc13c('0x7')](/\\/g,'/');this[_0xc13c('0x8')](_0xc13c('0x4'),_0x41b41b);}},'rating':{'type':Sequelize[_0xc13c('0x9')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xc13c('0x9')],'set':function(_0x5ee2aa){this['setDataValue']('startedAt',moment()[_0xc13c('0xa')](_0x5ee2aa,'ms'));this[_0xc13c('0x8')](_0xc13c('0xb'),moment());this[_0xc13c('0x8')](_0xc13c('0xc'),_0x5ee2aa);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xc13c('0x3')]('startedAt'))[_0xc13c('0xd')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'closedAt':{'type':Sequelize[_0xc13c('0xe')],'get':function(){return moment(this[_0xc13c('0x3')](_0xc13c('0xb')))[_0xc13c('0xd')](_0xc13c('0xf'))[_0xc13c('0x10')]();}},'createdAt':{'type':Sequelize[_0xc13c('0xe')],'get':function(){return moment(this[_0xc13c('0x3')](_0xc13c('0x11')))[_0xc13c('0xd')]('MM-DD-YYYY\x20HH:mm')[_0xc13c('0x10')]();}},'updatedAt':{'type':Sequelize[_0xc13c('0xe')],'get':function(){return moment(this[_0xc13c('0x3')]('updatedAt'))[_0xc13c('0xd')](_0xc13c('0xf'))[_0xc13c('0x10')]();}}};
\ No newline at end of file