5e68290ac6ba8a86ee5be1432ebeeda710324cf8
[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 _0xbdfb=['STRING','setDataValue','INTEGER','startedAt','closedAt','duration','format','MM-DD-YYYY\x20HH:mm','DATE','createdAt','updatedAt','toString','sequelize','moment','path','../../config/environment','exports','VIRTUAL','getDataValue','value','extname'];(function(_0x408de5,_0x24fa7b){var _0x2015a1=function(_0x13082c){while(--_0x13082c){_0x408de5['push'](_0x408de5['shift']());}};_0x2015a1(++_0x24fa7b);}(_0xbdfb,0x1ef));var _0xbbdf=function(_0x30a528,_0x1d04f2){_0x30a528=_0x30a528-0x0;var _0x3e029c=_0xbdfb[_0x30a528];return _0x3e029c;};'use strict';var Sequelize=require(_0xbbdf('0x0'));var moment=require(_0xbbdf('0x1'));var path=require(_0xbbdf('0x2'));var config=require(_0xbbdf('0x3'));module[_0xbbdf('0x4')]={'format':{'type':Sequelize[_0xbbdf('0x5')],'get':function(){return this[_0xbbdf('0x6')](_0xbbdf('0x7'))?path[_0xbbdf('0x8')](this[_0xbbdf('0x6')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0xbbdf('0x9')]},'channel':{'type':Sequelize[_0xbbdf('0x9')]},'value':{'type':Sequelize['STRING'],'set':function(_0x3c930d){var _0x17c835=_0x3c930d['replace'](/\\/g,'/');this[_0xbbdf('0xa')](_0xbbdf('0x7'),_0x17c835);}},'rating':{'type':Sequelize[_0xbbdf('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xbbdf('0xb')],'set':function(_0x4c1436){this[_0xbbdf('0xa')](_0xbbdf('0xc'),moment()['subtract'](_0x4c1436,'ms'));this[_0xbbdf('0xa')](_0xbbdf('0xd'),moment());this[_0xbbdf('0xa')](_0xbbdf('0xe'),_0x4c1436);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xbbdf('0x6')](_0xbbdf('0xc')))[_0xbbdf('0xf')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue'](_0xbbdf('0xd')))[_0xbbdf('0xf')](_0xbbdf('0x10'))['toString']();}},'createdAt':{'type':Sequelize[_0xbbdf('0x11')],'get':function(){return moment(this[_0xbbdf('0x6')](_0xbbdf('0x12')))[_0xbbdf('0xf')](_0xbbdf('0x10'))['toString']();}},'updatedAt':{'type':Sequelize[_0xbbdf('0x11')],'get':function(){return moment(this[_0xbbdf('0x6')](_0xbbdf('0x13')))['format']('MM-DD-YYYY\x20HH:mm')[_0xbbdf('0x14')]();}}};