5c5f47f9f4005d8d874b30d205f227e70dace556
[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 _0xde46=['path','../../config/environment','getDataValue','extname','value','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','moment'];(function(_0x166ad6,_0x582eba){var _0x4347ff=function(_0x5d961a){while(--_0x5d961a){_0x166ad6['push'](_0x166ad6['shift']());}};_0x4347ff(++_0x582eba);}(_0xde46,0x14e));var _0x6de4=function(_0x474cdd,_0x55a759){_0x474cdd=_0x474cdd-0x0;var _0x1c751d=_0xde46[_0x474cdd];return _0x1c751d;};'use strict';var Sequelize=require(_0x6de4('0x0'));var moment=require(_0x6de4('0x1'));var path=require(_0x6de4('0x2'));var config=require(_0x6de4('0x3'));module['exports']={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x6de4('0x4')]('value')?path[_0x6de4('0x5')](this[_0x6de4('0x4')](_0x6de4('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x6de4('0x7')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize['STRING'],'set':function(_0x17f7ae){var _0x507ca0=_0x17f7ae[_0x6de4('0x8')](/\\/g,'/');this[_0x6de4('0x9')]('value',_0x507ca0);}},'rating':{'type':Sequelize[_0x6de4('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x6de4('0xa')],'set':function(_0xe81ab9){this[_0x6de4('0x9')](_0x6de4('0xb'),moment()[_0x6de4('0xc')](_0xe81ab9,'ms'));this[_0x6de4('0x9')](_0x6de4('0xd'),moment());this[_0x6de4('0x9')](_0x6de4('0xe'),_0xe81ab9);}},'startedAt':{'type':Sequelize[_0x6de4('0xf')],'get':function(){return moment(this['getDataValue'](_0x6de4('0xb')))[_0x6de4('0x10')](_0x6de4('0x11'))[_0x6de4('0x12')]();}},'closedAt':{'type':Sequelize[_0x6de4('0xf')],'get':function(){return moment(this[_0x6de4('0x4')](_0x6de4('0xd')))[_0x6de4('0x10')]('MM-DD-YYYY\x20HH:mm')[_0x6de4('0x12')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x6de4('0x4')](_0x6de4('0x13')))[_0x6de4('0x10')]('MM-DD-YYYY\x20HH:mm')[_0x6de4('0x12')]();}},'updatedAt':{'type':Sequelize[_0x6de4('0xf')],'get':function(){return moment(this[_0x6de4('0x4')](_0x6de4('0x14')))['format'](_0x6de4('0x11'))['toString']();}}};