e9dcb56a5a1f0bf8d3a135015147f8f1dd9a2ff1
[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 _0x55ca=['STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','moment','VIRTUAL','getDataValue','extname','value'];(function(_0x3bdbac,_0x47c32e){var _0x43947a=function(_0x254728){while(--_0x254728){_0x3bdbac['push'](_0x3bdbac['shift']());}};_0x43947a(++_0x47c32e);}(_0x55ca,0x126));var _0xa55c=function(_0x5cc556,_0x158710){_0x5cc556=_0x5cc556-0x0;var _0x12103b=_0x55ca[_0x5cc556];return _0x12103b;};'use strict';var Sequelize=require(_0xa55c('0x0'));var moment=require(_0xa55c('0x1'));var path=require('path');var config=require('../../config/environment');module['exports']={'format':{'type':Sequelize[_0xa55c('0x2')],'get':function(){return this[_0xa55c('0x3')]('value')?path[_0xa55c('0x4')](this[_0xa55c('0x3')](_0xa55c('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0xa55c('0x6')]},'channel':{'type':Sequelize[_0xa55c('0x6')]},'value':{'type':Sequelize[_0xa55c('0x6')],'set':function(_0x36b623){var _0x4d0624=_0x36b623[_0xa55c('0x7')](/\\/g,'/');this[_0xa55c('0x8')]('value',_0x4d0624);}},'rating':{'type':Sequelize[_0xa55c('0x9')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xa55c('0x9')],'set':function(_0x52a3bc){this['setDataValue'](_0xa55c('0xa'),moment()[_0xa55c('0xb')](_0x52a3bc,'ms'));this[_0xa55c('0x8')](_0xa55c('0xc'),moment());this[_0xa55c('0x8')](_0xa55c('0xd'),_0x52a3bc);}},'startedAt':{'type':Sequelize[_0xa55c('0xe')],'get':function(){return moment(this[_0xa55c('0x3')](_0xa55c('0xa')))[_0xa55c('0xf')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'closedAt':{'type':Sequelize[_0xa55c('0xe')],'get':function(){return moment(this['getDataValue']('closedAt'))['format'](_0xa55c('0x10'))[_0xa55c('0x11')]();}},'createdAt':{'type':Sequelize[_0xa55c('0xe')],'get':function(){return moment(this[_0xa55c('0x3')](_0xa55c('0x12')))[_0xa55c('0xf')]('MM-DD-YYYY\x20HH:mm')[_0xa55c('0x11')]();}},'updatedAt':{'type':Sequelize[_0xa55c('0xe')],'get':function(){return moment(this[_0xa55c('0x3')](_0xa55c('0x13')))[_0xa55c('0xf')](_0xa55c('0x10'))[_0xa55c('0x11')]();}}};