Built motion from commit 377f727e.|2.6.28
[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 _0x5242=['STRING','replace','setDataValue','INTEGER','subtract','closedAt','duration','DATE','MM-DD-YYYY\x20HH:mm','toString','format','createdAt','updatedAt','sequelize','moment','path','../../config/environment','exports','getDataValue','value','extname'];(function(_0x41e8c4,_0x30d9ff){var _0x54ffbe=function(_0x4131af){while(--_0x4131af){_0x41e8c4['push'](_0x41e8c4['shift']());}};_0x54ffbe(++_0x30d9ff);}(_0x5242,0x148));var _0x2524=function(_0x3d5f06,_0x38d5cc){_0x3d5f06=_0x3d5f06-0x0;var _0x2be4d9=_0x5242[_0x3d5f06];return _0x2be4d9;};'use strict';var Sequelize=require(_0x2524('0x0'));var moment=require(_0x2524('0x1'));var path=require(_0x2524('0x2'));var config=require(_0x2524('0x3'));module[_0x2524('0x4')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x2524('0x5')](_0x2524('0x6'))?path[_0x2524('0x7')](this[_0x2524('0x5')](_0x2524('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x2524('0x8')]},'channel':{'type':Sequelize[_0x2524('0x8')]},'value':{'type':Sequelize['STRING'],'set':function(_0x2b070c){var _0x1eca6b=_0x2b070c[_0x2524('0x9')](/\\/g,'/');this[_0x2524('0xa')]('value',_0x1eca6b);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x2524('0xb')],'set':function(_0x2ecd8f){this[_0x2524('0xa')]('startedAt',moment()[_0x2524('0xc')](_0x2ecd8f,'ms'));this[_0x2524('0xa')](_0x2524('0xd'),moment());this[_0x2524('0xa')](_0x2524('0xe'),_0x2ecd8f);}},'startedAt':{'type':Sequelize[_0x2524('0xf')],'get':function(){return moment(this[_0x2524('0x5')]('startedAt'))['format'](_0x2524('0x10'))[_0x2524('0x11')]();}},'closedAt':{'type':Sequelize[_0x2524('0xf')],'get':function(){return moment(this[_0x2524('0x5')](_0x2524('0xd')))[_0x2524('0x12')](_0x2524('0x10'))[_0x2524('0x11')]();}},'createdAt':{'type':Sequelize[_0x2524('0xf')],'get':function(){return moment(this[_0x2524('0x5')](_0x2524('0x13')))[_0x2524('0x12')](_0x2524('0x10'))[_0x2524('0x11')]();}},'updatedAt':{'type':Sequelize[_0x2524('0xf')],'get':function(){return moment(this[_0x2524('0x5')](_0x2524('0x14')))[_0x2524('0x12')](_0x2524('0x10'))['toString']();}}};