Built motion from commit fd055180.|2.6.30
[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 _0xc3ed=['subtract','closedAt','DATE','MM-DD-YYYY\x20HH:mm','createdAt','toString','format','sequelize','moment','../../config/environment','exports','VIRTUAL','getDataValue','value','STRING','replace','setDataValue','INTEGER','startedAt'];(function(_0x31ac6f,_0xac69ee){var _0x26653f=function(_0x202b19){while(--_0x202b19){_0x31ac6f['push'](_0x31ac6f['shift']());}};_0x26653f(++_0xac69ee);}(_0xc3ed,0x111));var _0xdc3e=function(_0x436b13,_0x49e83b){_0x436b13=_0x436b13-0x0;var _0x7ea6f0=_0xc3ed[_0x436b13];return _0x7ea6f0;};'use strict';var Sequelize=require(_0xdc3e('0x0'));var moment=require(_0xdc3e('0x1'));var path=require('path');var config=require(_0xdc3e('0x2'));module[_0xdc3e('0x3')]={'format':{'type':Sequelize[_0xdc3e('0x4')],'get':function(){return this[_0xdc3e('0x5')](_0xdc3e('0x6'))?path['extname'](this[_0xdc3e('0x5')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0xdc3e('0x7')]},'channel':{'type':Sequelize[_0xdc3e('0x7')]},'value':{'type':Sequelize[_0xdc3e('0x7')],'set':function(_0x49e3f3){var _0xd0916c=_0x49e3f3[_0xdc3e('0x8')](/\\/g,'/');this[_0xdc3e('0x9')](_0xdc3e('0x6'),_0xd0916c);}},'rating':{'type':Sequelize[_0xdc3e('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xdc3e('0xa')],'set':function(_0x3becac){this[_0xdc3e('0x9')](_0xdc3e('0xb'),moment()[_0xdc3e('0xc')](_0x3becac,'ms'));this[_0xdc3e('0x9')](_0xdc3e('0xd'),moment());this[_0xdc3e('0x9')]('duration',_0x3becac);}},'startedAt':{'type':Sequelize[_0xdc3e('0xe')],'get':function(){return moment(this[_0xdc3e('0x5')](_0xdc3e('0xb')))['format'](_0xdc3e('0xf'))['toString']();}},'closedAt':{'type':Sequelize[_0xdc3e('0xe')],'get':function(){return moment(this[_0xdc3e('0x5')]('closedAt'))['format'](_0xdc3e('0xf'))['toString']();}},'createdAt':{'type':Sequelize[_0xdc3e('0xe')],'get':function(){return moment(this[_0xdc3e('0x5')](_0xdc3e('0x10')))['format'](_0xdc3e('0xf'))[_0xdc3e('0x11')]();}},'updatedAt':{'type':Sequelize[_0xdc3e('0xe')],'get':function(){return moment(this[_0xdc3e('0x5')]('updatedAt'))[_0xdc3e('0x12')](_0xdc3e('0xf'))[_0xdc3e('0x11')]();}}};