afed4063ff19aa1af5eb401412b48e6e4ba0e2e7
[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 _0x4c4e=['../../config/environment','exports','getDataValue','value','extname','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','DATE','format','toString','createdAt','MM-DD-YYYY\x20HH:mm','updatedAt','sequelize','path'];(function(_0x3593b7,_0x120d93){var _0x372547=function(_0x5ef0a1){while(--_0x5ef0a1){_0x3593b7['push'](_0x3593b7['shift']());}};_0x372547(++_0x120d93);}(_0x4c4e,0x152));var _0xe4c4=function(_0x4a6784,_0x45fcfc){_0x4a6784=_0x4a6784-0x0;var _0xd3c225=_0x4c4e[_0x4a6784];return _0xd3c225;};'use strict';var Sequelize=require(_0xe4c4('0x0'));var moment=require('moment');var path=require(_0xe4c4('0x1'));var config=require(_0xe4c4('0x2'));module[_0xe4c4('0x3')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0xe4c4('0x4')](_0xe4c4('0x5'))?path[_0xe4c4('0x6')](this['getDataValue'](_0xe4c4('0x5'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xe4c4('0x7')]},'value':{'type':Sequelize[_0xe4c4('0x7')],'set':function(_0x262b64){var _0xad105=_0x262b64[_0xe4c4('0x8')](/\\/g,'/');this[_0xe4c4('0x9')](_0xe4c4('0x5'),_0xad105);}},'rating':{'type':Sequelize[_0xe4c4('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x589b2e){this[_0xe4c4('0x9')](_0xe4c4('0xb'),moment()[_0xe4c4('0xc')](_0x589b2e,'ms'));this[_0xe4c4('0x9')](_0xe4c4('0xd'),moment());this[_0xe4c4('0x9')]('duration',_0x589b2e);}},'startedAt':{'type':Sequelize[_0xe4c4('0xe')],'get':function(){return moment(this[_0xe4c4('0x4')](_0xe4c4('0xb')))[_0xe4c4('0xf')]('MM-DD-YYYY\x20HH:mm')[_0xe4c4('0x10')]();}},'closedAt':{'type':Sequelize[_0xe4c4('0xe')],'get':function(){return moment(this['getDataValue'](_0xe4c4('0xd')))[_0xe4c4('0xf')]('MM-DD-YYYY\x20HH:mm')[_0xe4c4('0x10')]();}},'createdAt':{'type':Sequelize[_0xe4c4('0xe')],'get':function(){return moment(this['getDataValue'](_0xe4c4('0x11')))[_0xe4c4('0xf')](_0xe4c4('0x12'))[_0xe4c4('0x10')]();}},'updatedAt':{'type':Sequelize[_0xe4c4('0xe')],'get':function(){return moment(this[_0xe4c4('0x4')](_0xe4c4('0x13')))[_0xe4c4('0xf')](_0xe4c4('0x12'))[_0xe4c4('0x10')]();}}};