Built motion from commit (unavailable).|2.5.17
[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 _0x2d17=['createdAt','updatedAt','sequelize','moment','../../config/environment','exports','getDataValue','value','STRING','replace','setDataValue','INTEGER','subtract','closedAt','duration','DATE','startedAt','format','MM-DD-YYYY\x20HH:mm','toString'];(function(_0x32610f,_0x3bdce7){var _0x2a707f=function(_0x1a0332){while(--_0x1a0332){_0x32610f['push'](_0x32610f['shift']());}};_0x2a707f(++_0x3bdce7);}(_0x2d17,0x17e));var _0x72d1=function(_0x65bfee,_0x2e3331){_0x65bfee=_0x65bfee-0x0;var _0x3a6658=_0x2d17[_0x65bfee];return _0x3a6658;};'use strict';var Sequelize=require(_0x72d1('0x0'));var moment=require(_0x72d1('0x1'));var path=require('path');var config=require(_0x72d1('0x2'));module[_0x72d1('0x3')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x72d1('0x4')](_0x72d1('0x5'))?path['extname'](this[_0x72d1('0x4')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x72d1('0x6')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x72d1('0x6')],'set':function(_0x239d1f){var _0x5b40a9=_0x239d1f[_0x72d1('0x7')](/\\/g,'/');this[_0x72d1('0x8')](_0x72d1('0x5'),_0x5b40a9);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x72d1('0x9')],'set':function(_0x288362){this[_0x72d1('0x8')]('startedAt',moment()[_0x72d1('0xa')](_0x288362,'ms'));this[_0x72d1('0x8')](_0x72d1('0xb'),moment());this[_0x72d1('0x8')](_0x72d1('0xc'),_0x288362);}},'startedAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this[_0x72d1('0x4')](_0x72d1('0xe')))[_0x72d1('0xf')](_0x72d1('0x10'))['toString']();}},'closedAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this[_0x72d1('0x4')](_0x72d1('0xb')))[_0x72d1('0xf')](_0x72d1('0x10'))[_0x72d1('0x11')]();}},'createdAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this[_0x72d1('0x4')](_0x72d1('0x12')))[_0x72d1('0xf')](_0x72d1('0x10'))[_0x72d1('0x11')]();}},'updatedAt':{'type':Sequelize[_0x72d1('0xd')],'get':function(){return moment(this['getDataValue'](_0x72d1('0x13')))['format'](_0x72d1('0x10'))[_0x72d1('0x11')]();}}};