Built motion from commit e02f907f.|2.6.14
[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 _0x7d8a=['exports','VIRTUAL','getDataValue','value','extname','STRING','replace','setDataValue','INTEGER','startedAt','duration','format','MM-DD-YYYY\x20HH:mm','toString','closedAt','DATE','createdAt','updatedAt','sequelize','moment','path','../../config/environment'];(function(_0x383627,_0x5be16e){var _0x2c16a0=function(_0x569b72){while(--_0x569b72){_0x383627['push'](_0x383627['shift']());}};_0x2c16a0(++_0x5be16e);}(_0x7d8a,0x1ca));var _0xa7d8=function(_0x50a0c2,_0x4befab){_0x50a0c2=_0x50a0c2-0x0;var _0x5ebadd=_0x7d8a[_0x50a0c2];return _0x5ebadd;};'use strict';var Sequelize=require(_0xa7d8('0x0'));var moment=require(_0xa7d8('0x1'));var path=require(_0xa7d8('0x2'));var config=require(_0xa7d8('0x3'));module[_0xa7d8('0x4')]={'format':{'type':Sequelize[_0xa7d8('0x5')],'get':function(){return this[_0xa7d8('0x6')](_0xa7d8('0x7'))?path[_0xa7d8('0x8')](this[_0xa7d8('0x6')](_0xa7d8('0x7'))):undefined;}},'interactionid':{'type':Sequelize[_0xa7d8('0x9')]},'channel':{'type':Sequelize[_0xa7d8('0x9')]},'value':{'type':Sequelize[_0xa7d8('0x9')],'set':function(_0x55bb66){var _0x410b09=_0x55bb66[_0xa7d8('0xa')](/\\/g,'/');this[_0xa7d8('0xb')](_0xa7d8('0x7'),_0x410b09);}},'rating':{'type':Sequelize[_0xa7d8('0xc')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x40f419){this['setDataValue'](_0xa7d8('0xd'),moment()['subtract'](_0x40f419,'ms'));this[_0xa7d8('0xb')]('closedAt',moment());this[_0xa7d8('0xb')](_0xa7d8('0xe'),_0x40f419);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xa7d8('0x6')]('startedAt'))[_0xa7d8('0xf')](_0xa7d8('0x10'))[_0xa7d8('0x11')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xa7d8('0x6')](_0xa7d8('0x12')))['format']('MM-DD-YYYY\x20HH:mm')['toString']();}},'createdAt':{'type':Sequelize[_0xa7d8('0x13')],'get':function(){return moment(this[_0xa7d8('0x6')](_0xa7d8('0x14')))[_0xa7d8('0xf')](_0xa7d8('0x10'))[_0xa7d8('0x11')]();}},'updatedAt':{'type':Sequelize[_0xa7d8('0x13')],'get':function(){return moment(this[_0xa7d8('0x6')](_0xa7d8('0x15')))[_0xa7d8('0xf')](_0xa7d8('0x10'))[_0xa7d8('0x11')]();}}};