Built motion from commit (unavailable).|2.5.7
[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 _0x0e85=['../../config/environment','exports','extname','value','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','getDataValue','createdAt','toString','updatedAt','sequelize','moment'];(function(_0x2d3dbb,_0x486efd){var _0x33823f=function(_0x20f9e8){while(--_0x20f9e8){_0x2d3dbb['push'](_0x2d3dbb['shift']());}};_0x33823f(++_0x486efd);}(_0x0e85,0x7c));var _0x50e8=function(_0x173441,_0x26b0d9){_0x173441=_0x173441-0x0;var _0x2423a8=_0x0e85[_0x173441];return _0x2423a8;};'use strict';var Sequelize=require(_0x50e8('0x0'));var moment=require(_0x50e8('0x1'));var path=require('path');var config=require(_0x50e8('0x2'));module[_0x50e8('0x3')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this['getDataValue']('value')?path[_0x50e8('0x4')](this['getDataValue'](_0x50e8('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0x50e8('0x6')]},'channel':{'type':Sequelize[_0x50e8('0x6')]},'value':{'type':Sequelize[_0x50e8('0x6')],'set':function(_0x5e8b01){var _0x3ce904=_0x5e8b01[_0x50e8('0x7')](/\\/g,'/');this[_0x50e8('0x8')](_0x50e8('0x5'),_0x3ce904);}},'rating':{'type':Sequelize[_0x50e8('0x9')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x50e8('0x9')],'set':function(_0x5825f5){this[_0x50e8('0x8')](_0x50e8('0xa'),moment()[_0x50e8('0xb')](_0x5825f5,'ms'));this[_0x50e8('0x8')](_0x50e8('0xc'),moment());this[_0x50e8('0x8')](_0x50e8('0xd'),_0x5825f5);}},'startedAt':{'type':Sequelize[_0x50e8('0xe')],'get':function(){return moment(this['getDataValue']('startedAt'))[_0x50e8('0xf')](_0x50e8('0x10'))['toString']();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x50e8('0x11')](_0x50e8('0xc')))[_0x50e8('0xf')](_0x50e8('0x10'))['toString']();}},'createdAt':{'type':Sequelize[_0x50e8('0xe')],'get':function(){return moment(this[_0x50e8('0x11')](_0x50e8('0x12')))['format']('MM-DD-YYYY\x20HH:mm')[_0x50e8('0x13')]();}},'updatedAt':{'type':Sequelize[_0x50e8('0xe')],'get':function(){return moment(this[_0x50e8('0x11')](_0x50e8('0x14')))[_0x50e8('0xf')](_0x50e8('0x10'))['toString']();}}};