Built motion from commit (unavailable).|2.5.14
[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 _0xee14=['extname','STRING','replace','setDataValue','INTEGER','subtract','closedAt','DATE','startedAt','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','path','../../config/environment','exports','VIRTUAL','getDataValue','value'];(function(_0x21db8e,_0x519187){var _0x3d635b=function(_0x2d1755){while(--_0x2d1755){_0x21db8e['push'](_0x21db8e['shift']());}};_0x3d635b(++_0x519187);}(_0xee14,0x13a));var _0x4ee1=function(_0x13b3a7,_0x39cfa9){_0x13b3a7=_0x13b3a7-0x0;var _0x3acdee=_0xee14[_0x13b3a7];return _0x3acdee;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');var path=require(_0x4ee1('0x0'));var config=require(_0x4ee1('0x1'));module[_0x4ee1('0x2')]={'format':{'type':Sequelize[_0x4ee1('0x3')],'get':function(){return this[_0x4ee1('0x4')](_0x4ee1('0x5'))?path[_0x4ee1('0x6')](this[_0x4ee1('0x4')](_0x4ee1('0x5'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x4ee1('0x7')]},'value':{'type':Sequelize['STRING'],'set':function(_0x327c18){var _0x3a45a3=_0x327c18[_0x4ee1('0x8')](/\\/g,'/');this[_0x4ee1('0x9')](_0x4ee1('0x5'),_0x3a45a3);}},'rating':{'type':Sequelize[_0x4ee1('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x33dbe6){this[_0x4ee1('0x9')]('startedAt',moment()[_0x4ee1('0xb')](_0x33dbe6,'ms'));this[_0x4ee1('0x9')](_0x4ee1('0xc'),moment());this[_0x4ee1('0x9')]('duration',_0x33dbe6);}},'startedAt':{'type':Sequelize[_0x4ee1('0xd')],'get':function(){return moment(this[_0x4ee1('0x4')](_0x4ee1('0xe')))[_0x4ee1('0xf')](_0x4ee1('0x10'))[_0x4ee1('0x11')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x4ee1('0x4')](_0x4ee1('0xc')))[_0x4ee1('0xf')](_0x4ee1('0x10'))[_0x4ee1('0x11')]();}},'createdAt':{'type':Sequelize[_0x4ee1('0xd')],'get':function(){return moment(this[_0x4ee1('0x4')](_0x4ee1('0x12')))[_0x4ee1('0xf')]('MM-DD-YYYY\x20HH:mm')[_0x4ee1('0x11')]();}},'updatedAt':{'type':Sequelize[_0x4ee1('0xd')],'get':function(){return moment(this[_0x4ee1('0x4')](_0x4ee1('0x13')))[_0x4ee1('0xf')](_0x4ee1('0x10'))[_0x4ee1('0x11')]();}}};