5262c402d4d82071dc2a8da9553438459866aa14
[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 _0xccef=['DATE','MM-DD-YYYY\x20HH:mm','toString','format','createdAt','updatedAt','moment','../../config/environment','exports','VIRTUAL','getDataValue','value','extname','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration'];(function(_0xeeba71,_0x26d43b){var _0x870901=function(_0x3e5c25){while(--_0x3e5c25){_0xeeba71['push'](_0xeeba71['shift']());}};_0x870901(++_0x26d43b);}(_0xccef,0x1d4));var _0xfcce=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0xccef[_0xa464c9];return _0x3d73c4;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xfcce('0x0'));var path=require('path');var config=require(_0xfcce('0x1'));module[_0xfcce('0x2')]={'format':{'type':Sequelize[_0xfcce('0x3')],'get':function(){return this[_0xfcce('0x4')](_0xfcce('0x5'))?path[_0xfcce('0x6')](this['getDataValue']('value')):undefined;}},'interactionid':{'type':Sequelize[_0xfcce('0x7')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xfcce('0x7')],'set':function(_0xd71971){var _0x12d091=_0xd71971[_0xfcce('0x8')](/\\/g,'/');this[_0xfcce('0x9')](_0xfcce('0x5'),_0x12d091);}},'rating':{'type':Sequelize[_0xfcce('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x382ea5){this[_0xfcce('0x9')](_0xfcce('0xb'),moment()[_0xfcce('0xc')](_0x382ea5,'ms'));this[_0xfcce('0x9')](_0xfcce('0xd'),moment());this[_0xfcce('0x9')](_0xfcce('0xe'),_0x382ea5);}},'startedAt':{'type':Sequelize[_0xfcce('0xf')],'get':function(){return moment(this[_0xfcce('0x4')](_0xfcce('0xb')))['format'](_0xfcce('0x10'))[_0xfcce('0x11')]();}},'closedAt':{'type':Sequelize[_0xfcce('0xf')],'get':function(){return moment(this[_0xfcce('0x4')]('closedAt'))[_0xfcce('0x12')](_0xfcce('0x10'))['toString']();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xfcce('0x4')](_0xfcce('0x13')))[_0xfcce('0x12')](_0xfcce('0x10'))[_0xfcce('0x11')]();}},'updatedAt':{'type':Sequelize[_0xfcce('0xf')],'get':function(){return moment(this[_0xfcce('0x4')](_0xfcce('0x14')))[_0xfcce('0x12')](_0xfcce('0x10'))[_0xfcce('0x11')]();}}};