b35fd9c277e8c232028a2d9b68d097bf679a0676
[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 _0xab54=['setDataValue','INTEGER','startedAt','subtract','closedAt','DATE','getDataValue','format','MM-DD-YYYY\x20HH:mm','toString','updatedAt','moment','path','../../config/environment','exports','VIRTUAL','value','STRING','replace'];(function(_0x5a6f9b,_0x3f0261){var _0x5e583a=function(_0x2e5ec2){while(--_0x2e5ec2){_0x5a6f9b['push'](_0x5a6f9b['shift']());}};_0x5e583a(++_0x3f0261);}(_0xab54,0x115));var _0x4ab5=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xab54[_0x14add3];return _0x4a174f;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x4ab5('0x0'));var path=require(_0x4ab5('0x1'));var config=require(_0x4ab5('0x2'));module[_0x4ab5('0x3')]={'format':{'type':Sequelize[_0x4ab5('0x4')],'get':function(){return this['getDataValue'](_0x4ab5('0x5'))?path['extname'](this['getDataValue']('value')):undefined;}},'interactionid':{'type':Sequelize[_0x4ab5('0x6')]},'channel':{'type':Sequelize[_0x4ab5('0x6')]},'value':{'type':Sequelize['STRING'],'set':function(_0x2c39fe){var _0x5c8c61=_0x2c39fe[_0x4ab5('0x7')](/\\/g,'/');this[_0x4ab5('0x8')](_0x4ab5('0x5'),_0x5c8c61);}},'rating':{'type':Sequelize[_0x4ab5('0x9')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x58e6a7){this['setDataValue'](_0x4ab5('0xa'),moment()[_0x4ab5('0xb')](_0x58e6a7,'ms'));this['setDataValue'](_0x4ab5('0xc'),moment());this[_0x4ab5('0x8')]('duration',_0x58e6a7);}},'startedAt':{'type':Sequelize[_0x4ab5('0xd')],'get':function(){return moment(this[_0x4ab5('0xe')](_0x4ab5('0xa')))[_0x4ab5('0xf')](_0x4ab5('0x10'))[_0x4ab5('0x11')]();}},'closedAt':{'type':Sequelize[_0x4ab5('0xd')],'get':function(){return moment(this[_0x4ab5('0xe')](_0x4ab5('0xc')))[_0x4ab5('0xf')](_0x4ab5('0x10'))[_0x4ab5('0x11')]();}},'createdAt':{'type':Sequelize[_0x4ab5('0xd')],'get':function(){return moment(this[_0x4ab5('0xe')]('createdAt'))[_0x4ab5('0xf')]('MM-DD-YYYY\x20HH:mm')[_0x4ab5('0x11')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue'](_0x4ab5('0x12')))[_0x4ab5('0xf')](_0x4ab5('0x10'))[_0x4ab5('0x11')]();}}};