Built motion from commit 19a84241.|2.5.34
[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 _0x9563=['MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','moment','../../config/environment','exports','VIRTUAL','getDataValue','STRING','replace','setDataValue','value','INTEGER','startedAt','subtract','closedAt','duration','DATE','format'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x9563,0x1e7));var _0x3956=function(_0x1fe788,_0x473c79){_0x1fe788=_0x1fe788-0x0;var _0x5e8cac=_0x9563[_0x1fe788];return _0x5e8cac;};'use strict';var Sequelize=require(_0x3956('0x0'));var moment=require(_0x3956('0x1'));var path=require('path');var config=require(_0x3956('0x2'));module[_0x3956('0x3')]={'format':{'type':Sequelize[_0x3956('0x4')],'get':function(){return this[_0x3956('0x5')]('value')?path['extname'](this[_0x3956('0x5')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x3956('0x6')]},'channel':{'type':Sequelize[_0x3956('0x6')]},'value':{'type':Sequelize[_0x3956('0x6')],'set':function(_0xba3e4b){var _0x47bdbc=_0xba3e4b[_0x3956('0x7')](/\\/g,'/');this[_0x3956('0x8')](_0x3956('0x9'),_0x47bdbc);}},'rating':{'type':Sequelize[_0x3956('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x3956('0xa')],'set':function(_0x4dd27f){this['setDataValue'](_0x3956('0xb'),moment()[_0x3956('0xc')](_0x4dd27f,'ms'));this[_0x3956('0x8')](_0x3956('0xd'),moment());this['setDataValue'](_0x3956('0xe'),_0x4dd27f);}},'startedAt':{'type':Sequelize[_0x3956('0xf')],'get':function(){return moment(this[_0x3956('0x5')](_0x3956('0xb')))[_0x3956('0x10')](_0x3956('0x11'))[_0x3956('0x12')]();}},'closedAt':{'type':Sequelize[_0x3956('0xf')],'get':function(){return moment(this[_0x3956('0x5')]('closedAt'))['format']('MM-DD-YYYY\x20HH:mm')[_0x3956('0x12')]();}},'createdAt':{'type':Sequelize[_0x3956('0xf')],'get':function(){return moment(this['getDataValue'](_0x3956('0x13')))[_0x3956('0x10')](_0x3956('0x11'))[_0x3956('0x12')]();}},'updatedAt':{'type':Sequelize[_0x3956('0xf')],'get':function(){return moment(this[_0x3956('0x5')](_0x3956('0x14')))[_0x3956('0x10')](_0x3956('0x11'))[_0x3956('0x12')]();}}};