Built motion from commit da617fac.|2.6.6
[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 _0x543b=['path','exports','VIRTUAL','getDataValue','extname','value','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','format','toString','DATE','MM-DD-YYYY\x20HH:mm','updatedAt','sequelize','moment'];(function(_0x404957,_0x5192a4){var _0x4e0365=function(_0x4f6cd7){while(--_0x4f6cd7){_0x404957['push'](_0x404957['shift']());}};_0x4e0365(++_0x5192a4);}(_0x543b,0x18d));var _0xb543=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x543b[_0x2dafbe];return _0x58a45a;};'use strict';var Sequelize=require(_0xb543('0x0'));var moment=require(_0xb543('0x1'));var path=require(_0xb543('0x2'));var config=require('../../config/environment');module[_0xb543('0x3')]={'format':{'type':Sequelize[_0xb543('0x4')],'get':function(){return this[_0xb543('0x5')]('value')?path[_0xb543('0x6')](this[_0xb543('0x5')](_0xb543('0x7'))):undefined;}},'interactionid':{'type':Sequelize[_0xb543('0x8')]},'channel':{'type':Sequelize[_0xb543('0x8')]},'value':{'type':Sequelize[_0xb543('0x8')],'set':function(_0x208c95){var _0x338142=_0x208c95[_0xb543('0x9')](/\\/g,'/');this[_0xb543('0xa')](_0xb543('0x7'),_0x338142);}},'rating':{'type':Sequelize[_0xb543('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0xa94776){this['setDataValue'](_0xb543('0xc'),moment()[_0xb543('0xd')](_0xa94776,'ms'));this[_0xb543('0xa')](_0xb543('0xe'),moment());this[_0xb543('0xa')](_0xb543('0xf'),_0xa94776);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xb543('0x5')](_0xb543('0xc')))[_0xb543('0x10')]('MM-DD-YYYY\x20HH:mm')[_0xb543('0x11')]();}},'closedAt':{'type':Sequelize[_0xb543('0x12')],'get':function(){return moment(this[_0xb543('0x5')]('closedAt'))['format'](_0xb543('0x13'))[_0xb543('0x11')]();}},'createdAt':{'type':Sequelize[_0xb543('0x12')],'get':function(){return moment(this[_0xb543('0x5')]('createdAt'))[_0xb543('0x10')](_0xb543('0x13'))[_0xb543('0x11')]();}},'updatedAt':{'type':Sequelize[_0xb543('0x12')],'get':function(){return moment(this['getDataValue'](_0xb543('0x14')))['format'](_0xb543('0x13'))[_0xb543('0x11')]();}}};