Built motion from commit (unavailable).|2.4.2
[motion2.git] / server / api / screenRecording / screenRecording.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2739=['getDataValue','toString','format','createdAt','MM-DD-YYYY\x20HH:mm','updatedAt','sequelize','exports','value','extname','STRING','replace','INTEGER','startedAt','subtract','setDataValue','closedAt','duration','DATE'];(function(_0x46a634,_0x439b70){var _0x42007a=function(_0x2a9e29){while(--_0x2a9e29){_0x46a634['push'](_0x46a634['shift']());}};_0x42007a(++_0x439b70);}(_0x2739,0x8b));var _0x9273=function(_0x360e66,_0xf5b28b){_0x360e66=_0x360e66-0x0;var _0x18bd04=_0x2739[_0x360e66];return _0x18bd04;};'use strict';var Sequelize=require(_0x9273('0x0'));var moment=require('moment');var path=require('path');var config=require('../../config/environment');module[_0x9273('0x1')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this['getDataValue'](_0x9273('0x2'))?path[_0x9273('0x3')](this['getDataValue'](_0x9273('0x2'))):undefined;}},'interactionid':{'type':Sequelize[_0x9273('0x4')]},'channel':{'type':Sequelize[_0x9273('0x4')]},'value':{'type':Sequelize[_0x9273('0x4')],'set':function(_0xfe2742){var _0x2f56cb=_0xfe2742[_0x9273('0x5')](/\\/g,'/');this['setDataValue'](_0x9273('0x2'),_0x2f56cb);}},'rating':{'type':Sequelize[_0x9273('0x6')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x538c6f){this['setDataValue'](_0x9273('0x7'),moment()[_0x9273('0x8')](_0x538c6f,'ms'));this[_0x9273('0x9')](_0x9273('0xa'),moment());this[_0x9273('0x9')](_0x9273('0xb'),_0x538c6f);}},'startedAt':{'type':Sequelize[_0x9273('0xc')],'get':function(){return moment(this[_0x9273('0xd')](_0x9273('0x7')))['format']('MM-DD-YYYY\x20HH:mm')[_0x9273('0xe')]();}},'closedAt':{'type':Sequelize[_0x9273('0xc')],'get':function(){return moment(this[_0x9273('0xd')]('closedAt'))[_0x9273('0xf')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'createdAt':{'type':Sequelize[_0x9273('0xc')],'get':function(){return moment(this[_0x9273('0xd')](_0x9273('0x10')))['format'](_0x9273('0x11'))[_0x9273('0xe')]();}},'updatedAt':{'type':Sequelize[_0x9273('0xc')],'get':function(){return moment(this[_0x9273('0xd')](_0x9273('0x12')))[_0x9273('0xf')](_0x9273('0x11'))[_0x9273('0xe')]();}}};