Built motion from commit (unavailable).|2.5.12
[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 _0x00bb=['exports','getDataValue','value','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','format','MM-DD-YYYY\x20HH:mm','toString','DATE','createdAt','updatedAt','sequelize','moment','path'];(function(_0x50933b,_0x2a1551){var _0x2b134e=function(_0x325d22){while(--_0x325d22){_0x50933b['push'](_0x50933b['shift']());}};_0x2b134e(++_0x2a1551);}(_0x00bb,0x1d8));var _0xb00b=function(_0x5447fd,_0x52a6b5){_0x5447fd=_0x5447fd-0x0;var _0x15b28a=_0x00bb[_0x5447fd];return _0x15b28a;};'use strict';var Sequelize=require(_0xb00b('0x0'));var moment=require(_0xb00b('0x1'));var path=require(_0xb00b('0x2'));var config=require('../../config/environment');module[_0xb00b('0x3')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0xb00b('0x4')](_0xb00b('0x5'))?path['extname'](this[_0xb00b('0x4')](_0xb00b('0x5'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize['STRING'],'set':function(_0x36e363){var _0xf737d0=_0x36e363[_0xb00b('0x6')](/\\/g,'/');this[_0xb00b('0x7')](_0xb00b('0x5'),_0xf737d0);}},'rating':{'type':Sequelize[_0xb00b('0x8')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x51d12b){this[_0xb00b('0x7')](_0xb00b('0x9'),moment()[_0xb00b('0xa')](_0x51d12b,'ms'));this[_0xb00b('0x7')](_0xb00b('0xb'),moment());this['setDataValue'](_0xb00b('0xc'),_0x51d12b);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue']('startedAt'))[_0xb00b('0xd')](_0xb00b('0xe'))[_0xb00b('0xf')]();}},'closedAt':{'type':Sequelize[_0xb00b('0x10')],'get':function(){return moment(this[_0xb00b('0x4')](_0xb00b('0xb')))['format'](_0xb00b('0xe'))[_0xb00b('0xf')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xb00b('0x4')](_0xb00b('0x11')))['format']('MM-DD-YYYY\x20HH:mm')[_0xb00b('0xf')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue'](_0xb00b('0x12')))[_0xb00b('0xd')](_0xb00b('0xe'))[_0xb00b('0xf')]();}}};