Built motion from commit f7863d46.|2.5.41
[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 _0xcefd=['extname','value','STRING','setDataValue','INTEGER','startedAt','subtract','closedAt','MM-DD-YYYY\x20HH:mm','format','toString','DATE','createdAt','updatedAt','sequelize','moment','path','exports','VIRTUAL','getDataValue'];(function(_0x2dd390,_0x1bc894){var _0x3afe47=function(_0x42d8d3){while(--_0x42d8d3){_0x2dd390['push'](_0x2dd390['shift']());}};_0x3afe47(++_0x1bc894);}(_0xcefd,0x126));var _0xdcef=function(_0x39ab14,_0x1c6d59){_0x39ab14=_0x39ab14-0x0;var _0x5a661e=_0xcefd[_0x39ab14];return _0x5a661e;};'use strict';var Sequelize=require(_0xdcef('0x0'));var moment=require(_0xdcef('0x1'));var path=require(_0xdcef('0x2'));var config=require('../../config/environment');module[_0xdcef('0x3')]={'format':{'type':Sequelize[_0xdcef('0x4')],'get':function(){return this[_0xdcef('0x5')]('value')?path[_0xdcef('0x6')](this[_0xdcef('0x5')](_0xdcef('0x7'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xdcef('0x8')]},'value':{'type':Sequelize[_0xdcef('0x8')],'set':function(_0x3fb1b7){var _0x3260fe=_0x3fb1b7['replace'](/\\/g,'/');this[_0xdcef('0x9')](_0xdcef('0x7'),_0x3260fe);}},'rating':{'type':Sequelize[_0xdcef('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xdcef('0xa')],'set':function(_0x5d601b){this[_0xdcef('0x9')](_0xdcef('0xb'),moment()[_0xdcef('0xc')](_0x5d601b,'ms'));this[_0xdcef('0x9')](_0xdcef('0xd'),moment());this[_0xdcef('0x9')]('duration',_0x5d601b);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xdcef('0x5')](_0xdcef('0xb')))['format'](_0xdcef('0xe'))['toString']();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xdcef('0x5')](_0xdcef('0xd')))[_0xdcef('0xf')](_0xdcef('0xe'))[_0xdcef('0x10')]();}},'createdAt':{'type':Sequelize[_0xdcef('0x11')],'get':function(){return moment(this[_0xdcef('0x5')](_0xdcef('0x12')))[_0xdcef('0xf')](_0xdcef('0xe'))[_0xdcef('0x10')]();}},'updatedAt':{'type':Sequelize[_0xdcef('0x11')],'get':function(){return moment(this['getDataValue'](_0xdcef('0x13')))['format'](_0xdcef('0xe'))[_0xdcef('0x10')]();}}};