405c125058ddfc9e10b247348dfbc693d37e9f58
[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 _0x34e8=['duration','DATE','MM-DD-YYYY\x20HH:mm','toString','format','updatedAt','sequelize','moment','path','../../config/environment','VIRTUAL','getDataValue','value','extname','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt'];(function(_0x31fc26,_0x8a964d){var _0x37396d=function(_0x1a13fb){while(--_0x1a13fb){_0x31fc26['push'](_0x31fc26['shift']());}};_0x37396d(++_0x8a964d);}(_0x34e8,0x12c));var _0x834e=function(_0x36acba,_0xd5d51d){_0x36acba=_0x36acba-0x0;var _0x2fe147=_0x34e8[_0x36acba];return _0x2fe147;};'use strict';var Sequelize=require(_0x834e('0x0'));var moment=require(_0x834e('0x1'));var path=require(_0x834e('0x2'));var config=require(_0x834e('0x3'));module['exports']={'format':{'type':Sequelize[_0x834e('0x4')],'get':function(){return this[_0x834e('0x5')](_0x834e('0x6'))?path[_0x834e('0x7')](this[_0x834e('0x5')](_0x834e('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x834e('0x8')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x834e('0x8')],'set':function(_0x52056d){var _0x3e16d2=_0x52056d[_0x834e('0x9')](/\\/g,'/');this[_0x834e('0xa')](_0x834e('0x6'),_0x3e16d2);}},'rating':{'type':Sequelize[_0x834e('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x834e('0xb')],'set':function(_0x363786){this[_0x834e('0xa')](_0x834e('0xc'),moment()[_0x834e('0xd')](_0x363786,'ms'));this[_0x834e('0xa')](_0x834e('0xe'),moment());this[_0x834e('0xa')](_0x834e('0xf'),_0x363786);}},'startedAt':{'type':Sequelize[_0x834e('0x10')],'get':function(){return moment(this[_0x834e('0x5')](_0x834e('0xc')))['format'](_0x834e('0x11'))[_0x834e('0x12')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x834e('0x5')](_0x834e('0xe')))[_0x834e('0x13')](_0x834e('0x11'))['toString']();}},'createdAt':{'type':Sequelize[_0x834e('0x10')],'get':function(){return moment(this[_0x834e('0x5')]('createdAt'))[_0x834e('0x13')]('MM-DD-YYYY\x20HH:mm')[_0x834e('0x12')]();}},'updatedAt':{'type':Sequelize[_0x834e('0x10')],'get':function(){return moment(this['getDataValue'](_0x834e('0x14')))[_0x834e('0x13')](_0x834e('0x11'))['toString']();}}};