d0c4595a32dfc6b7b5dba3c007b2accb221e84e8
[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 _0x7217=['value','STRING','replace','setDataValue','INTEGER','startedAt','closedAt','duration','DATE','format','toString','MM-DD-YYYY\x20HH:mm','createdAt','updatedAt','sequelize','path','../../config/environment','exports','VIRTUAL','getDataValue'];(function(_0x1f36bb,_0x8af718){var _0xaf97fa=function(_0xeca489){while(--_0xeca489){_0x1f36bb['push'](_0x1f36bb['shift']());}};_0xaf97fa(++_0x8af718);}(_0x7217,0x19e));var _0x7721=function(_0x2b10c6,_0x185590){_0x2b10c6=_0x2b10c6-0x0;var _0x3789d2=_0x7217[_0x2b10c6];return _0x3789d2;};'use strict';var Sequelize=require(_0x7721('0x0'));var moment=require('moment');var path=require(_0x7721('0x1'));var config=require(_0x7721('0x2'));module[_0x7721('0x3')]={'format':{'type':Sequelize[_0x7721('0x4')],'get':function(){return this[_0x7721('0x5')]('value')?path['extname'](this[_0x7721('0x5')](_0x7721('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x7721('0x7')]},'channel':{'type':Sequelize[_0x7721('0x7')]},'value':{'type':Sequelize[_0x7721('0x7')],'set':function(_0xf7ff37){var _0x18ab6b=_0xf7ff37[_0x7721('0x8')](/\\/g,'/');this[_0x7721('0x9')](_0x7721('0x6'),_0x18ab6b);}},'rating':{'type':Sequelize[_0x7721('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x7721('0xa')],'set':function(_0xfa8835){this[_0x7721('0x9')](_0x7721('0xb'),moment()['subtract'](_0xfa8835,'ms'));this[_0x7721('0x9')](_0x7721('0xc'),moment());this[_0x7721('0x9')](_0x7721('0xd'),_0xfa8835);}},'startedAt':{'type':Sequelize[_0x7721('0xe')],'get':function(){return moment(this[_0x7721('0x5')](_0x7721('0xb')))[_0x7721('0xf')]('MM-DD-YYYY\x20HH:mm')[_0x7721('0x10')]();}},'closedAt':{'type':Sequelize[_0x7721('0xe')],'get':function(){return moment(this['getDataValue'](_0x7721('0xc')))[_0x7721('0xf')](_0x7721('0x11'))[_0x7721('0x10')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x7721('0x5')](_0x7721('0x12')))['format']('MM-DD-YYYY\x20HH:mm')['toString']();}},'updatedAt':{'type':Sequelize[_0x7721('0xe')],'get':function(){return moment(this[_0x7721('0x5')](_0x7721('0x13')))[_0x7721('0xf')]('MM-DD-YYYY\x20HH:mm')[_0x7721('0x10')]();}}};