Built motion from commit 994c64e1.|2.6.1
[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 _0x3d2f=['moment','../../config/environment','exports','VIRTUAL','getDataValue','value','extname','STRING','setDataValue','INTEGER','startedAt','subtract','closedAt','DATE','format','toString','MM-DD-YYYY\x20HH:mm','createdAt','updatedAt','sequelize'];(function(_0x36d203,_0x3653f3){var _0x2f9e62=function(_0x461a77){while(--_0x461a77){_0x36d203['push'](_0x36d203['shift']());}};_0x2f9e62(++_0x3653f3);}(_0x3d2f,0x18f));var _0xf3d2=function(_0x42f3d3,_0x58f190){_0x42f3d3=_0x42f3d3-0x0;var _0xd136f3=_0x3d2f[_0x42f3d3];return _0xd136f3;};'use strict';var Sequelize=require(_0xf3d2('0x0'));var moment=require(_0xf3d2('0x1'));var path=require('path');var config=require(_0xf3d2('0x2'));module[_0xf3d2('0x3')]={'format':{'type':Sequelize[_0xf3d2('0x4')],'get':function(){return this[_0xf3d2('0x5')](_0xf3d2('0x6'))?path[_0xf3d2('0x7')](this[_0xf3d2('0x5')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0xf3d2('0x8')]},'channel':{'type':Sequelize[_0xf3d2('0x8')]},'value':{'type':Sequelize[_0xf3d2('0x8')],'set':function(_0xf9a0c9){var _0x23edba=_0xf9a0c9['replace'](/\\/g,'/');this[_0xf3d2('0x9')](_0xf3d2('0x6'),_0x23edba);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xf3d2('0xa')],'set':function(_0x4ef134){this[_0xf3d2('0x9')](_0xf3d2('0xb'),moment()[_0xf3d2('0xc')](_0x4ef134,'ms'));this[_0xf3d2('0x9')](_0xf3d2('0xd'),moment());this[_0xf3d2('0x9')]('duration',_0x4ef134);}},'startedAt':{'type':Sequelize[_0xf3d2('0xe')],'get':function(){return moment(this[_0xf3d2('0x5')]('startedAt'))[_0xf3d2('0xf')]('MM-DD-YYYY\x20HH:mm')[_0xf3d2('0x10')]();}},'closedAt':{'type':Sequelize[_0xf3d2('0xe')],'get':function(){return moment(this[_0xf3d2('0x5')]('closedAt'))[_0xf3d2('0xf')](_0xf3d2('0x11'))[_0xf3d2('0x10')]();}},'createdAt':{'type':Sequelize[_0xf3d2('0xe')],'get':function(){return moment(this[_0xf3d2('0x5')](_0xf3d2('0x12')))['format'](_0xf3d2('0x11'))[_0xf3d2('0x10')]();}},'updatedAt':{'type':Sequelize[_0xf3d2('0xe')],'get':function(){return moment(this[_0xf3d2('0x5')](_0xf3d2('0x13')))[_0xf3d2('0xf')](_0xf3d2('0x11'))[_0xf3d2('0x10')]();}}};