63d46a8584616343a3c4b2dbe9225f089c2d375c
[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 _0x8a5c=['VIRTUAL','getDataValue','value','extname','STRING','replace','INTEGER','setDataValue','startedAt','subtract','closedAt','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','sequelize','moment','path','../../config/environment','exports'];(function(_0x99db94,_0x2bbed2){var _0x1c521b=function(_0x4d196d){while(--_0x4d196d){_0x99db94['push'](_0x99db94['shift']());}};_0x1c521b(++_0x2bbed2);}(_0x8a5c,0x136));var _0xc8a5=function(_0x4e520d,_0x56bab1){_0x4e520d=_0x4e520d-0x0;var _0x514112=_0x8a5c[_0x4e520d];return _0x514112;};'use strict';var Sequelize=require(_0xc8a5('0x0'));var moment=require(_0xc8a5('0x1'));var path=require(_0xc8a5('0x2'));var config=require(_0xc8a5('0x3'));module[_0xc8a5('0x4')]={'format':{'type':Sequelize[_0xc8a5('0x5')],'get':function(){return this[_0xc8a5('0x6')](_0xc8a5('0x7'))?path[_0xc8a5('0x8')](this['getDataValue'](_0xc8a5('0x7'))):undefined;}},'interactionid':{'type':Sequelize[_0xc8a5('0x9')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xc8a5('0x9')],'set':function(_0xcee97e){var _0xd6de78=_0xcee97e[_0xc8a5('0xa')](/\\/g,'/');this['setDataValue'](_0xc8a5('0x7'),_0xd6de78);}},'rating':{'type':Sequelize[_0xc8a5('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xc8a5('0xb')],'set':function(_0x2c1fe9){this[_0xc8a5('0xc')](_0xc8a5('0xd'),moment()[_0xc8a5('0xe')](_0x2c1fe9,'ms'));this[_0xc8a5('0xc')](_0xc8a5('0xf'),moment());this['setDataValue']('duration',_0x2c1fe9);}},'startedAt':{'type':Sequelize[_0xc8a5('0x10')],'get':function(){return moment(this['getDataValue'](_0xc8a5('0xd')))[_0xc8a5('0x11')](_0xc8a5('0x12'))[_0xc8a5('0x13')]();}},'closedAt':{'type':Sequelize[_0xc8a5('0x10')],'get':function(){return moment(this['getDataValue'](_0xc8a5('0xf')))[_0xc8a5('0x11')]('MM-DD-YYYY\x20HH:mm')[_0xc8a5('0x13')]();}},'createdAt':{'type':Sequelize[_0xc8a5('0x10')],'get':function(){return moment(this[_0xc8a5('0x6')](_0xc8a5('0x14')))[_0xc8a5('0x11')](_0xc8a5('0x12'))['toString']();}},'updatedAt':{'type':Sequelize[_0xc8a5('0x10')],'get':function(){return moment(this[_0xc8a5('0x6')]('updatedAt'))[_0xc8a5('0x11')](_0xc8a5('0x12'))['toString']();}}};