Built motion from commit 1fa89557.|2.6.10
[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 _0x4213=['subtract','closedAt','duration','DATE','startedAt','format','toString','MM-DD-YYYY\x20HH:mm','updatedAt','sequelize','moment','path','../../config/environment','exports','VIRTUAL','getDataValue','extname','value','STRING','replace','setDataValue','INTEGER'];(function(_0xa1420f,_0x550318){var _0x23c2fe=function(_0x27f4f5){while(--_0x27f4f5){_0xa1420f['push'](_0xa1420f['shift']());}};_0x23c2fe(++_0x550318);}(_0x4213,0x77));var _0x3421=function(_0x4abcc1,_0x15cef4){_0x4abcc1=_0x4abcc1-0x0;var _0x40451d=_0x4213[_0x4abcc1];return _0x40451d;};'use strict';var Sequelize=require(_0x3421('0x0'));var moment=require(_0x3421('0x1'));var path=require(_0x3421('0x2'));var config=require(_0x3421('0x3'));module[_0x3421('0x4')]={'format':{'type':Sequelize[_0x3421('0x5')],'get':function(){return this[_0x3421('0x6')]('value')?path[_0x3421('0x7')](this['getDataValue'](_0x3421('0x8'))):undefined;}},'interactionid':{'type':Sequelize[_0x3421('0x9')]},'channel':{'type':Sequelize[_0x3421('0x9')]},'value':{'type':Sequelize[_0x3421('0x9')],'set':function(_0x5469d8){var _0x50e464=_0x5469d8[_0x3421('0xa')](/\\/g,'/');this[_0x3421('0xb')](_0x3421('0x8'),_0x50e464);}},'rating':{'type':Sequelize[_0x3421('0xc')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x1f20cf){this['setDataValue']('startedAt',moment()[_0x3421('0xd')](_0x1f20cf,'ms'));this['setDataValue'](_0x3421('0xe'),moment());this[_0x3421('0xb')](_0x3421('0xf'),_0x1f20cf);}},'startedAt':{'type':Sequelize[_0x3421('0x10')],'get':function(){return moment(this[_0x3421('0x6')](_0x3421('0x11')))[_0x3421('0x12')]('MM-DD-YYYY\x20HH:mm')[_0x3421('0x13')]();}},'closedAt':{'type':Sequelize[_0x3421('0x10')],'get':function(){return moment(this[_0x3421('0x6')](_0x3421('0xe')))[_0x3421('0x12')](_0x3421('0x14'))[_0x3421('0x13')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x3421('0x6')]('createdAt'))[_0x3421('0x12')](_0x3421('0x14'))['toString']();}},'updatedAt':{'type':Sequelize[_0x3421('0x10')],'get':function(){return moment(this['getDataValue'](_0x3421('0x15')))[_0x3421('0x12')]('MM-DD-YYYY\x20HH:mm')[_0x3421('0x13')]();}}};