aaae4fa1180f5574e73d98cc94fceff98e15e2ae
[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 _0x3f2e=['startedAt','subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','path','../../config/environment','exports','VIRTUAL','getDataValue','value','extname','STRING','setDataValue','INTEGER'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x3f2e,0x9d));var _0xe3f2=function(_0x3d5db9,_0x2dbe0a){_0x3d5db9=_0x3d5db9-0x0;var _0x3c114c=_0x3f2e[_0x3d5db9];return _0x3c114c;};'use strict';var Sequelize=require(_0xe3f2('0x0'));var moment=require('moment');var path=require(_0xe3f2('0x1'));var config=require(_0xe3f2('0x2'));module[_0xe3f2('0x3')]={'format':{'type':Sequelize[_0xe3f2('0x4')],'get':function(){return this[_0xe3f2('0x5')](_0xe3f2('0x6'))?path[_0xe3f2('0x7')](this['getDataValue'](_0xe3f2('0x6'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xe3f2('0x8')]},'value':{'type':Sequelize[_0xe3f2('0x8')],'set':function(_0x4fc4d9){var _0x48aafe=_0x4fc4d9['replace'](/\\/g,'/');this[_0xe3f2('0x9')](_0xe3f2('0x6'),_0x48aafe);}},'rating':{'type':Sequelize[_0xe3f2('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xe3f2('0xa')],'set':function(_0x577609){this['setDataValue'](_0xe3f2('0xb'),moment()[_0xe3f2('0xc')](_0x577609,'ms'));this[_0xe3f2('0x9')](_0xe3f2('0xd'),moment());this[_0xe3f2('0x9')](_0xe3f2('0xe'),_0x577609);}},'startedAt':{'type':Sequelize[_0xe3f2('0xf')],'get':function(){return moment(this[_0xe3f2('0x5')](_0xe3f2('0xb')))[_0xe3f2('0x10')](_0xe3f2('0x11'))[_0xe3f2('0x12')]();}},'closedAt':{'type':Sequelize[_0xe3f2('0xf')],'get':function(){return moment(this['getDataValue'](_0xe3f2('0xd')))[_0xe3f2('0x10')](_0xe3f2('0x11'))['toString']();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue'](_0xe3f2('0x13')))['format'](_0xe3f2('0x11'))[_0xe3f2('0x12')]();}},'updatedAt':{'type':Sequelize[_0xe3f2('0xf')],'get':function(){return moment(this['getDataValue'](_0xe3f2('0x14')))[_0xe3f2('0x10')](_0xe3f2('0x11'))[_0xe3f2('0x12')]();}}};