b1232d6b19d69bb06d48cb250098d0a6251b252d
[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 _0x7fbe=['setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','path','../../config/environment','exports','VIRTUAL','getDataValue','value','extname','STRING'];(function(_0x5491fd,_0x219341){var _0x581634=function(_0x536df2){while(--_0x536df2){_0x5491fd['push'](_0x5491fd['shift']());}};_0x581634(++_0x219341);}(_0x7fbe,0x1ec));var _0xe7fb=function(_0x1789bc,_0x1acf84){_0x1789bc=_0x1789bc-0x0;var _0x35efd1=_0x7fbe[_0x1789bc];return _0x35efd1;};'use strict';var Sequelize=require('sequelize');var moment=require('moment');var path=require(_0xe7fb('0x0'));var config=require(_0xe7fb('0x1'));module[_0xe7fb('0x2')]={'format':{'type':Sequelize[_0xe7fb('0x3')],'get':function(){return this[_0xe7fb('0x4')](_0xe7fb('0x5'))?path[_0xe7fb('0x6')](this[_0xe7fb('0x4')](_0xe7fb('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0xe7fb('0x7')]},'channel':{'type':Sequelize[_0xe7fb('0x7')]},'value':{'type':Sequelize[_0xe7fb('0x7')],'set':function(_0x24cd67){var _0x1f943f=_0x24cd67['replace'](/\\/g,'/');this[_0xe7fb('0x8')](_0xe7fb('0x5'),_0x1f943f);}},'rating':{'type':Sequelize[_0xe7fb('0x9')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xe7fb('0x9')],'set':function(_0x4ba197){this['setDataValue'](_0xe7fb('0xa'),moment()[_0xe7fb('0xb')](_0x4ba197,'ms'));this[_0xe7fb('0x8')](_0xe7fb('0xc'),moment());this[_0xe7fb('0x8')](_0xe7fb('0xd'),_0x4ba197);}},'startedAt':{'type':Sequelize[_0xe7fb('0xe')],'get':function(){return moment(this[_0xe7fb('0x4')](_0xe7fb('0xa')))[_0xe7fb('0xf')](_0xe7fb('0x10'))[_0xe7fb('0x11')]();}},'closedAt':{'type':Sequelize[_0xe7fb('0xe')],'get':function(){return moment(this[_0xe7fb('0x4')](_0xe7fb('0xc')))['format'](_0xe7fb('0x10'))[_0xe7fb('0x11')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0xe7fb('0x4')](_0xe7fb('0x12')))['format'](_0xe7fb('0x10'))['toString']();}},'updatedAt':{'type':Sequelize[_0xe7fb('0xe')],'get':function(){return moment(this[_0xe7fb('0x4')](_0xe7fb('0x13')))[_0xe7fb('0xf')]('MM-DD-YYYY\x20HH:mm')[_0xe7fb('0x11')]();}}};