Built motion from commit b5996064.|2.6.21
[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 _0x5f7b=['setDataValue','INTEGER','startedAt','subtract','toString','DATE','closedAt','format','createdAt','MM-DD-YYYY\x20HH:mm','sequelize','moment','../../config/environment','exports','VIRTUAL','getDataValue','value','extname','STRING','replace'];(function(_0x20aca2,_0x1c20e1){var _0x303df0=function(_0xa870e4){while(--_0xa870e4){_0x20aca2['push'](_0x20aca2['shift']());}};_0x303df0(++_0x1c20e1);}(_0x5f7b,0x14a));var _0xb5f7=function(_0x2112d4,_0x3c863c){_0x2112d4=_0x2112d4-0x0;var _0x434972=_0x5f7b[_0x2112d4];return _0x434972;};'use strict';var Sequelize=require(_0xb5f7('0x0'));var moment=require(_0xb5f7('0x1'));var path=require('path');var config=require(_0xb5f7('0x2'));module[_0xb5f7('0x3')]={'format':{'type':Sequelize[_0xb5f7('0x4')],'get':function(){return this[_0xb5f7('0x5')](_0xb5f7('0x6'))?path[_0xb5f7('0x7')](this[_0xb5f7('0x5')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0xb5f7('0x8')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xb5f7('0x8')],'set':function(_0x725cc9){var _0x580816=_0x725cc9[_0xb5f7('0x9')](/\\/g,'/');this[_0xb5f7('0xa')]('value',_0x580816);}},'rating':{'type':Sequelize[_0xb5f7('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xb5f7('0xb')],'set':function(_0x1b04ee){this[_0xb5f7('0xa')](_0xb5f7('0xc'),moment()[_0xb5f7('0xd')](_0x1b04ee,'ms'));this[_0xb5f7('0xa')]('closedAt',moment());this[_0xb5f7('0xa')]('duration',_0x1b04ee);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xb5f7('0x5')](_0xb5f7('0xc')))['format']('MM-DD-YYYY\x20HH:mm')[_0xb5f7('0xe')]();}},'closedAt':{'type':Sequelize[_0xb5f7('0xf')],'get':function(){return moment(this[_0xb5f7('0x5')](_0xb5f7('0x10')))[_0xb5f7('0x11')]('MM-DD-YYYY\x20HH:mm')[_0xb5f7('0xe')]();}},'createdAt':{'type':Sequelize[_0xb5f7('0xf')],'get':function(){return moment(this[_0xb5f7('0x5')](_0xb5f7('0x12')))[_0xb5f7('0x11')](_0xb5f7('0x13'))['toString']();}},'updatedAt':{'type':Sequelize[_0xb5f7('0xf')],'get':function(){return moment(this[_0xb5f7('0x5')]('updatedAt'))[_0xb5f7('0x11')](_0xb5f7('0x13'))['toString']();}}};