Built motion from commit (unavailable).|2.4.4
[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 _0x4b1d=['duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','closedAt','createdAt','updatedAt','sequelize','moment','path','exports','VIRTUAL','getDataValue','value','extname','STRING','replace','setDataValue','INTEGER','startedAt','subtract'];(function(_0x1e8a7c,_0x206d63){var _0xf7c91b=function(_0x50747d){while(--_0x50747d){_0x1e8a7c['push'](_0x1e8a7c['shift']());}};_0xf7c91b(++_0x206d63);}(_0x4b1d,0x110));var _0xd4b1=function(_0x382e68,_0x308b9b){_0x382e68=_0x382e68-0x0;var _0x5ad66e=_0x4b1d[_0x382e68];return _0x5ad66e;};'use strict';var Sequelize=require(_0xd4b1('0x0'));var moment=require(_0xd4b1('0x1'));var path=require(_0xd4b1('0x2'));var config=require('../../config/environment');module[_0xd4b1('0x3')]={'format':{'type':Sequelize[_0xd4b1('0x4')],'get':function(){return this[_0xd4b1('0x5')](_0xd4b1('0x6'))?path[_0xd4b1('0x7')](this[_0xd4b1('0x5')](_0xd4b1('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0xd4b1('0x8')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0xd4b1('0x8')],'set':function(_0x2a868f){var _0x319835=_0x2a868f[_0xd4b1('0x9')](/\\/g,'/');this[_0xd4b1('0xa')]('value',_0x319835);}},'rating':{'type':Sequelize[_0xd4b1('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xd4b1('0xb')],'set':function(_0x49bbcc){this['setDataValue'](_0xd4b1('0xc'),moment()[_0xd4b1('0xd')](_0x49bbcc,'ms'));this[_0xd4b1('0xa')]('closedAt',moment());this[_0xd4b1('0xa')](_0xd4b1('0xe'),_0x49bbcc);}},'startedAt':{'type':Sequelize[_0xd4b1('0xf')],'get':function(){return moment(this[_0xd4b1('0x5')]('startedAt'))[_0xd4b1('0x10')](_0xd4b1('0x11'))[_0xd4b1('0x12')]();}},'closedAt':{'type':Sequelize[_0xd4b1('0xf')],'get':function(){return moment(this[_0xd4b1('0x5')](_0xd4b1('0x13')))[_0xd4b1('0x10')]('MM-DD-YYYY\x20HH:mm')[_0xd4b1('0x12')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xd4b1('0x5')](_0xd4b1('0x14')))['format'](_0xd4b1('0x11'))['toString']();}},'updatedAt':{'type':Sequelize[_0xd4b1('0xf')],'get':function(){return moment(this[_0xd4b1('0x5')](_0xd4b1('0x15')))[_0xd4b1('0x10')](_0xd4b1('0x11'))[_0xd4b1('0x12')]();}}};