7bdb3eb03cf1a25befffda2a29c6476b4d32bdb9
[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 _0x5a13=['getDataValue','value','extname','STRING','replace','INTEGER','startedAt','subtract','setDataValue','duration','MM-DD-YYYY\x20HH:mm','DATE','closedAt','format','toString','createdAt','updatedAt','sequelize','moment','../../config/environment','exports','VIRTUAL'];(function(_0x17406a,_0x1e2320){var _0x1501ff=function(_0x4b075a){while(--_0x4b075a){_0x17406a['push'](_0x17406a['shift']());}};_0x1501ff(++_0x1e2320);}(_0x5a13,0x145));var _0x35a1=function(_0xd3ef21,_0x46bccc){_0xd3ef21=_0xd3ef21-0x0;var _0x4c35d5=_0x5a13[_0xd3ef21];return _0x4c35d5;};'use strict';var Sequelize=require(_0x35a1('0x0'));var moment=require(_0x35a1('0x1'));var path=require('path');var config=require(_0x35a1('0x2'));module[_0x35a1('0x3')]={'format':{'type':Sequelize[_0x35a1('0x4')],'get':function(){return this[_0x35a1('0x5')](_0x35a1('0x6'))?path[_0x35a1('0x7')](this[_0x35a1('0x5')](_0x35a1('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x35a1('0x8')]},'channel':{'type':Sequelize[_0x35a1('0x8')]},'value':{'type':Sequelize[_0x35a1('0x8')],'set':function(_0x407b26){var _0x10a34f=_0x407b26[_0x35a1('0x9')](/\\/g,'/');this['setDataValue']('value',_0x10a34f);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x35a1('0xa')],'set':function(_0x103ec8){this['setDataValue'](_0x35a1('0xb'),moment()[_0x35a1('0xc')](_0x103ec8,'ms'));this['setDataValue']('closedAt',moment());this[_0x35a1('0xd')](_0x35a1('0xe'),_0x103ec8);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue'](_0x35a1('0xb')))['format'](_0x35a1('0xf'))['toString']();}},'closedAt':{'type':Sequelize[_0x35a1('0x10')],'get':function(){return moment(this[_0x35a1('0x5')](_0x35a1('0x11')))[_0x35a1('0x12')](_0x35a1('0xf'))[_0x35a1('0x13')]();}},'createdAt':{'type':Sequelize[_0x35a1('0x10')],'get':function(){return moment(this[_0x35a1('0x5')](_0x35a1('0x14')))[_0x35a1('0x12')](_0x35a1('0xf'))[_0x35a1('0x13')]();}},'updatedAt':{'type':Sequelize[_0x35a1('0x10')],'get':function(){return moment(this[_0x35a1('0x5')](_0x35a1('0x15')))[_0x35a1('0x12')](_0x35a1('0xf'))[_0x35a1('0x13')]();}}};