Built motion from commit 97153652.|2.6.26
[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 _0xc692=['setDataValue','INTEGER','startedAt','duration','DATE','format','toString','closedAt','MM-DD-YYYY\x20HH:mm','createdAt','updatedAt','sequelize','moment','path','VIRTUAL','getDataValue','value','extname','STRING','replace'];(function(_0x3bcf9e,_0x148a5d){var _0x1bb37c=function(_0xcaf5da){while(--_0xcaf5da){_0x3bcf9e['push'](_0x3bcf9e['shift']());}};_0x1bb37c(++_0x148a5d);}(_0xc692,0x15f));var _0x2c69=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0xc692[_0x160c73];return _0xd9302;};'use strict';var Sequelize=require(_0x2c69('0x0'));var moment=require(_0x2c69('0x1'));var path=require(_0x2c69('0x2'));var config=require('../../config/environment');module['exports']={'format':{'type':Sequelize[_0x2c69('0x3')],'get':function(){return this[_0x2c69('0x4')](_0x2c69('0x5'))?path[_0x2c69('0x6')](this[_0x2c69('0x4')](_0x2c69('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0x2c69('0x7')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x2c69('0x7')],'set':function(_0x4da70c){var _0x5c1260=_0x4da70c[_0x2c69('0x8')](/\\/g,'/');this[_0x2c69('0x9')](_0x2c69('0x5'),_0x5c1260);}},'rating':{'type':Sequelize[_0x2c69('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x2c69('0xa')],'set':function(_0x131313){this['setDataValue'](_0x2c69('0xb'),moment()['subtract'](_0x131313,'ms'));this[_0x2c69('0x9')]('closedAt',moment());this[_0x2c69('0x9')](_0x2c69('0xc'),_0x131313);}},'startedAt':{'type':Sequelize[_0x2c69('0xd')],'get':function(){return moment(this[_0x2c69('0x4')](_0x2c69('0xb')))[_0x2c69('0xe')]('MM-DD-YYYY\x20HH:mm')[_0x2c69('0xf')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x2c69('0x4')](_0x2c69('0x10')))[_0x2c69('0xe')](_0x2c69('0x11'))[_0x2c69('0xf')]();}},'createdAt':{'type':Sequelize[_0x2c69('0xd')],'get':function(){return moment(this['getDataValue'](_0x2c69('0x12')))['format']('MM-DD-YYYY\x20HH:mm')[_0x2c69('0xf')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x2c69('0x4')](_0x2c69('0x13')))['format']('MM-DD-YYYY\x20HH:mm')[_0x2c69('0xf')]();}}};