Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / api / screenRecording / screenRecording.attributes.js
1 const a533_0x4610=['format','STRING','DATE','updatedAt','toString','sequelize','value','setDataValue','replace','getDataValue','startedAt','createdAt','closedAt','duration','extname','subtract','moment','exports','MM-DD-YYYY\x20HH:mm'];(function(_0x500880,_0x4610cc){const _0xb31649=function(_0x2ab4e9){while(--_0x2ab4e9){_0x500880['push'](_0x500880['shift']());}};_0xb31649(++_0x4610cc);}(a533_0x4610,0x9d));const a533_0xb316=function(_0x500880,_0x4610cc){_0x500880=_0x500880-0x0;let _0xb31649=a533_0x4610[_0x500880];return _0xb31649;};const _0xb1beff=a533_0xb316;'use strict';const Sequelize=require(_0xb1beff('0x0')),moment=require(_0xb1beff('0xb')),path=require('path');module[_0xb1beff('0xc')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x11b0ff=_0xb1beff;return this[_0x11b0ff('0x4')]('value')?path[_0x11b0ff('0x9')](this['getDataValue']('value')):undefined;}},'interactionid':{'type':Sequelize[_0xb1beff('0xf')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xb1beff('0xf')],'set':function(_0x2ab4e9){const _0x191237=_0xb1beff,_0x1fa4e5=_0x2ab4e9[_0x191237('0x3')](/\\/g,'/');this['setDataValue'](_0x191237('0x1'),_0x1fa4e5);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x6dccee){const _0x32e879=_0xb1beff;this[_0x32e879('0x2')]('startedAt',moment()[_0x32e879('0xa')](_0x6dccee,'ms')),this['setDataValue']('closedAt',moment()),this['setDataValue'](_0x32e879('0x8'),_0x6dccee);}},'startedAt':{'type':Sequelize[_0xb1beff('0x10')],'get':function(){const _0xdfd3a5=_0xb1beff;return moment(this[_0xdfd3a5('0x4')](_0xdfd3a5('0x5')))[_0xdfd3a5('0xe')](_0xdfd3a5('0xd'))[_0xdfd3a5('0x12')]();}},'closedAt':{'type':Sequelize[_0xb1beff('0x10')],'get':function(){const _0x3c9c6d=_0xb1beff;return moment(this[_0x3c9c6d('0x4')](_0x3c9c6d('0x7')))[_0x3c9c6d('0xe')](_0x3c9c6d('0xd'))[_0x3c9c6d('0x12')]();}},'createdAt':{'type':Sequelize[_0xb1beff('0x10')],'get':function(){const _0xe5db4=_0xb1beff;return moment(this[_0xe5db4('0x4')](_0xe5db4('0x6')))[_0xe5db4('0xe')](_0xe5db4('0xd'))['toString']();}},'updatedAt':{'type':Sequelize[_0xb1beff('0x10')],'get':function(){const _0x588ede=_0xb1beff;return moment(this[_0x588ede('0x4')](_0x588ede('0x11')))[_0x588ede('0xe')](_0x588ede('0xd'))[_0x588ede('0x12')]();}}};