97af93bea13fc5daf52815bb04e004da6b0bd3ca
[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 _0x2d17=['createdAt','updatedAt','sequelize','moment','../../config/environment','exports','getDataValue','value','STRING','replace','setDataValue','INTEGER','subtract','closedAt','duration','DATE','startedAt','format','MM-DD-YYYY\x20HH:mm','toString'];(function(_0x509f97,_0x442414){var _0x18bbef=function(_0x4787c5){while(--_0x4787c5){_0x509f97['push'](_0x509f97['shift']());}};_0x18bbef(++_0x442414);}(_0x2d17,0x17e));var _0x72d1=function(_0x117a84,_0x144bac){_0x117a84=_0x117a84-0x0;var _0x1849bf=_0x2d17[_0x117a84];return _0x1849bf;};'use strict';var Sequelize=require(_0x72d1('0x0'));var moment=require(_0x72d1('0x1'));var path=require('path');var config=require(_0x72d1('0x2'));module[_0x72d1('0x3')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x72d1('0x4')](_0x72d1('0x5'))?path['extname'](this[_0x72d1('0x4')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x72d1('0x6')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x72d1('0x6')],'set':function(_0x239d1f){var _0x5b40a9=_0x239d1f[_0x72d1('0x7')](/\\/g,'/');this[_0x72d1('0x8')](_0x72d1('0x5'),_0x5b40a9);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x72d1('0x9')],'set':function(_0x288362){this[_0x72d1('0x8')]('startedAt',moment()[_0x72d1('0xa')](_0x288362,'ms'));this[_0x72d1('0x8')](_0x72d1('0xb'),moment());this[_0x72d1('0x8')](_0x72d1('0xc'),_0x288362);}},'startedAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this[_0x72d1('0x4')](_0x72d1('0xe')))[_0x72d1('0xf')](_0x72d1('0x10'))['toString']();}},'closedAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this[_0x72d1('0x4')](_0x72d1('0xb')))[_0x72d1('0xf')](_0x72d1('0x10'))[_0x72d1('0x11')]();}},'createdAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this[_0x72d1('0x4')](_0x72d1('0x12')))[_0x72d1('0xf')](_0x72d1('0x10'))[_0x72d1('0x11')]();}},'updatedAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this['getDataValue'](_0x72d1('0x13')))['format'](_0x72d1('0x10'))[_0x72d1('0x11')]();}}};