e6a97b1baffff6f3280752462802ac1daa2eff1a
[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 _0xaf6e=['subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','../../config/environment','exports','VIRTUAL','getDataValue','extname','value','STRING','replace','INTEGER','setDataValue','startedAt'];(function(_0x9df060,_0x253d33){var _0x338dfe=function(_0x17d9a5){while(--_0x17d9a5){_0x9df060['push'](_0x9df060['shift']());}};_0x338dfe(++_0x253d33);}(_0xaf6e,0x16e));var _0xeaf6=function(_0x154453,_0x225e6f){_0x154453=_0x154453-0x0;var _0x25adc7=_0xaf6e[_0x154453];return _0x25adc7;};'use strict';var Sequelize=require(_0xeaf6('0x0'));var moment=require('moment');var path=require('path');var config=require(_0xeaf6('0x1'));module[_0xeaf6('0x2')]={'format':{'type':Sequelize[_0xeaf6('0x3')],'get':function(){return this[_0xeaf6('0x4')]('value')?path[_0xeaf6('0x5')](this[_0xeaf6('0x4')](_0xeaf6('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0xeaf6('0x7')]},'channel':{'type':Sequelize[_0xeaf6('0x7')]},'value':{'type':Sequelize['STRING'],'set':function(_0x595fc8){var _0x4f82d1=_0x595fc8[_0xeaf6('0x8')](/\\/g,'/');this['setDataValue'](_0xeaf6('0x6'),_0x4f82d1);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xeaf6('0x9')],'set':function(_0x3d5ac7){this[_0xeaf6('0xa')](_0xeaf6('0xb'),moment()[_0xeaf6('0xc')](_0x3d5ac7,'ms'));this[_0xeaf6('0xa')](_0xeaf6('0xd'),moment());this[_0xeaf6('0xa')](_0xeaf6('0xe'),_0x3d5ac7);}},'startedAt':{'type':Sequelize[_0xeaf6('0xf')],'get':function(){return moment(this[_0xeaf6('0x4')]('startedAt'))[_0xeaf6('0x10')](_0xeaf6('0x11'))[_0xeaf6('0x12')]();}},'closedAt':{'type':Sequelize[_0xeaf6('0xf')],'get':function(){return moment(this[_0xeaf6('0x4')](_0xeaf6('0xd')))[_0xeaf6('0x10')](_0xeaf6('0x11'))['toString']();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xeaf6('0x4')](_0xeaf6('0x13')))[_0xeaf6('0x10')](_0xeaf6('0x11'))[_0xeaf6('0x12')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xeaf6('0x4')](_0xeaf6('0x14')))[_0xeaf6('0x10')](_0xeaf6('0x11'))[_0xeaf6('0x12')]();}}};