Built motion from commit (unavailable).|2.5.27
[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 _0xeec6=['value','extname','STRING','replace','setDataValue','INTEGER','closedAt','format','MM-DD-YYYY\x20HH:mm','toString','DATE','createdAt','updatedAt','sequelize','moment','path','../../config/environment','VIRTUAL','getDataValue'];(function(_0xbb9dbf,_0x5dafa4){var _0x30223c=function(_0xaa9ca){while(--_0xaa9ca){_0xbb9dbf['push'](_0xbb9dbf['shift']());}};_0x30223c(++_0x5dafa4);}(_0xeec6,0x1c2));var _0x6eec=function(_0x35ef6b,_0x202c42){_0x35ef6b=_0x35ef6b-0x0;var _0x3ad145=_0xeec6[_0x35ef6b];return _0x3ad145;};'use strict';var Sequelize=require(_0x6eec('0x0'));var moment=require(_0x6eec('0x1'));var path=require(_0x6eec('0x2'));var config=require(_0x6eec('0x3'));module['exports']={'format':{'type':Sequelize[_0x6eec('0x4')],'get':function(){return this[_0x6eec('0x5')](_0x6eec('0x6'))?path[_0x6eec('0x7')](this[_0x6eec('0x5')](_0x6eec('0x6'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x6eec('0x8')]},'value':{'type':Sequelize[_0x6eec('0x8')],'set':function(_0x48064a){var _0x5a5e47=_0x48064a[_0x6eec('0x9')](/\\/g,'/');this[_0x6eec('0xa')](_0x6eec('0x6'),_0x5a5e47);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x6eec('0xb')],'set':function(_0x3aca38){this[_0x6eec('0xa')]('startedAt',moment()['subtract'](_0x3aca38,'ms'));this['setDataValue'](_0x6eec('0xc'),moment());this[_0x6eec('0xa')]('duration',_0x3aca38);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x6eec('0x5')]('startedAt'))[_0x6eec('0xd')](_0x6eec('0xe'))[_0x6eec('0xf')]();}},'closedAt':{'type':Sequelize[_0x6eec('0x10')],'get':function(){return moment(this[_0x6eec('0x5')]('closedAt'))[_0x6eec('0xd')](_0x6eec('0xe'))[_0x6eec('0xf')]();}},'createdAt':{'type':Sequelize[_0x6eec('0x10')],'get':function(){return moment(this[_0x6eec('0x5')](_0x6eec('0x11')))[_0x6eec('0xd')](_0x6eec('0xe'))[_0x6eec('0xf')]();}},'updatedAt':{'type':Sequelize[_0x6eec('0x10')],'get':function(){return moment(this['getDataValue'](_0x6eec('0x12')))['format'](_0x6eec('0xe'))[_0x6eec('0xf')]();}}};