Built motion from commit 746c7d2a.|2.5.35
[motion2.git] / server / api / screenRecording / screenRecording.attributes.js
index 5e71fb7..dc821b8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x500c=['value','extname','STRING','replace','INTEGER','setDataValue','startedAt','MM-DD-YYYY\x20HH:mm','toString','DATE','closedAt','format','createdAt','updatedAt','sequelize','moment','path','../../config/environment','exports','VIRTUAL','getDataValue'];(function(_0x311f44,_0x1d7f5b){var _0x46f1e6=function(_0x27342a){while(--_0x27342a){_0x311f44['push'](_0x311f44['shift']());}};_0x46f1e6(++_0x1d7f5b);}(_0x500c,0x188));var _0xc500=function(_0x1489db,_0x343385){_0x1489db=_0x1489db-0x0;var _0x38b5fd=_0x500c[_0x1489db];return _0x38b5fd;};'use strict';var Sequelize=require(_0xc500('0x0'));var moment=require(_0xc500('0x1'));var path=require(_0xc500('0x2'));var config=require(_0xc500('0x3'));module[_0xc500('0x4')]={'format':{'type':Sequelize[_0xc500('0x5')],'get':function(){return this[_0xc500('0x6')](_0xc500('0x7'))?path[_0xc500('0x8')](this[_0xc500('0x6')](_0xc500('0x7'))):undefined;}},'interactionid':{'type':Sequelize[_0xc500('0x9')]},'channel':{'type':Sequelize[_0xc500('0x9')]},'value':{'type':Sequelize[_0xc500('0x9')],'set':function(_0x3bc410){var _0x5dd365=_0x3bc410[_0xc500('0xa')](/\\/g,'/');this['setDataValue'](_0xc500('0x7'),_0x5dd365);}},'rating':{'type':Sequelize[_0xc500('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xc500('0xb')],'set':function(_0x3b40f2){this[_0xc500('0xc')](_0xc500('0xd'),moment()['subtract'](_0x3b40f2,'ms'));this[_0xc500('0xc')]('closedAt',moment());this[_0xc500('0xc')]('duration',_0x3b40f2);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xc500('0x6')](_0xc500('0xd')))['format'](_0xc500('0xe'))[_0xc500('0xf')]();}},'closedAt':{'type':Sequelize[_0xc500('0x10')],'get':function(){return moment(this[_0xc500('0x6')](_0xc500('0x11')))[_0xc500('0x12')](_0xc500('0xe'))[_0xc500('0xf')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xc500('0x6')](_0xc500('0x13')))['format'](_0xc500('0xe'))[_0xc500('0xf')]();}},'updatedAt':{'type':Sequelize[_0xc500('0x10')],'get':function(){return moment(this[_0xc500('0x6')](_0xc500('0x14')))[_0xc500('0x12')](_0xc500('0xe'))['toString']();}}};
\ No newline at end of file
+var _0xb846=['setDataValue','DATE','format','MM-DD-YYYY\x20HH:mm','toString','closedAt','createdAt','updatedAt','sequelize','../../config/environment','exports','VIRTUAL','getDataValue','value','STRING','replace','INTEGER','startedAt','subtract'];(function(_0xc83539,_0x2a0b8f){var _0x4b0745=function(_0x337ffe){while(--_0x337ffe){_0xc83539['push'](_0xc83539['shift']());}};_0x4b0745(++_0x2a0b8f);}(_0xb846,0x1d0));var _0x6b84=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0xb846[_0x36eaaa];return _0x461349;};'use strict';var Sequelize=require(_0x6b84('0x0'));var moment=require('moment');var path=require('path');var config=require(_0x6b84('0x1'));module[_0x6b84('0x2')]={'format':{'type':Sequelize[_0x6b84('0x3')],'get':function(){return this[_0x6b84('0x4')]('value')?path['extname'](this[_0x6b84('0x4')](_0x6b84('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0x6b84('0x6')]},'channel':{'type':Sequelize[_0x6b84('0x6')]},'value':{'type':Sequelize[_0x6b84('0x6')],'set':function(_0x534d8e){var _0x54466a=_0x534d8e[_0x6b84('0x7')](/\\/g,'/');this['setDataValue'](_0x6b84('0x5'),_0x54466a);}},'rating':{'type':Sequelize[_0x6b84('0x8')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x4faca2){this['setDataValue'](_0x6b84('0x9'),moment()[_0x6b84('0xa')](_0x4faca2,'ms'));this[_0x6b84('0xb')]('closedAt',moment());this['setDataValue']('duration',_0x4faca2);}},'startedAt':{'type':Sequelize[_0x6b84('0xc')],'get':function(){return moment(this[_0x6b84('0x4')](_0x6b84('0x9')))[_0x6b84('0xd')](_0x6b84('0xe'))[_0x6b84('0xf')]();}},'closedAt':{'type':Sequelize[_0x6b84('0xc')],'get':function(){return moment(this[_0x6b84('0x4')](_0x6b84('0x10')))[_0x6b84('0xd')](_0x6b84('0xe'))[_0x6b84('0xf')]();}},'createdAt':{'type':Sequelize[_0x6b84('0xc')],'get':function(){return moment(this['getDataValue'](_0x6b84('0x11')))['format'](_0x6b84('0xe'))[_0x6b84('0xf')]();}},'updatedAt':{'type':Sequelize[_0x6b84('0xc')],'get':function(){return moment(this[_0x6b84('0x4')](_0x6b84('0x12')))[_0x6b84('0xd')](_0x6b84('0xe'))[_0x6b84('0xf')]();}}};
\ No newline at end of file