Built motion from commit (unavailable).|2.4.21
[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 _0x81bd=['value','STRING','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','MM-DD-YYYY\x20HH:mm','format','toString','createdAt','updatedAt','sequelize','moment','path','../../config/environment','exports','VIRTUAL','getDataValue','extname'];(function(_0x491777,_0x1bb26f){var _0x3fe5a1=function(_0x5bcfac){while(--_0x5bcfac){_0x491777['push'](_0x491777['shift']());}};_0x3fe5a1(++_0x1bb26f);}(_0x81bd,0x7c));var _0xd81b=function(_0x2bf9ae,_0x270fda){_0x2bf9ae=_0x2bf9ae-0x0;var _0x23c251=_0x81bd[_0x2bf9ae];return _0x23c251;};'use strict';var Sequelize=require(_0xd81b('0x0'));var moment=require(_0xd81b('0x1'));var path=require(_0xd81b('0x2'));var config=require(_0xd81b('0x3'));module[_0xd81b('0x4')]={'format':{'type':Sequelize[_0xd81b('0x5')],'get':function(){return this[_0xd81b('0x6')]('value')?path[_0xd81b('0x7')](this[_0xd81b('0x6')](_0xd81b('0x8'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xd81b('0x9')]},'value':{'type':Sequelize[_0xd81b('0x9')],'set':function(_0x1f3f2c){var _0x562084=_0x1f3f2c['replace'](/\\/g,'/');this[_0xd81b('0xa')]('value',_0x562084);}},'rating':{'type':Sequelize[_0xd81b('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xd81b('0xb')],'set':function(_0x3420a7){this[_0xd81b('0xa')](_0xd81b('0xc'),moment()[_0xd81b('0xd')](_0x3420a7,'ms'));this[_0xd81b('0xa')](_0xd81b('0xe'),moment());this[_0xd81b('0xa')](_0xd81b('0xf'),_0x3420a7);}},'startedAt':{'type':Sequelize[_0xd81b('0x10')],'get':function(){return moment(this[_0xd81b('0x6')](_0xd81b('0xc')))['format'](_0xd81b('0x11'))['toString']();}},'closedAt':{'type':Sequelize[_0xd81b('0x10')],'get':function(){return moment(this[_0xd81b('0x6')]('closedAt'))[_0xd81b('0x12')]('MM-DD-YYYY\x20HH:mm')[_0xd81b('0x13')]();}},'createdAt':{'type':Sequelize[_0xd81b('0x10')],'get':function(){return moment(this[_0xd81b('0x6')](_0xd81b('0x14')))[_0xd81b('0x12')]('MM-DD-YYYY\x20HH:mm')[_0xd81b('0x13')]();}},'updatedAt':{'type':Sequelize[_0xd81b('0x10')],'get':function(){return moment(this['getDataValue'](_0xd81b('0x15')))[_0xd81b('0x12')](_0xd81b('0x11'))[_0xd81b('0x13')]();}}};