Built motion from commit d6d69adf.|2.6.33
[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 _0xbbdd=['DATE','getDataValue','closedAt','format','updatedAt','moment','../../config/environment','exports','extname','STRING','replace','setDataValue','value','INTEGER','startedAt','subtract','duration','MM-DD-YYYY\x20HH:mm','toString'];(function(_0x2a4143,_0x2164f0){var _0xf2950f=function(_0x3b9fe7){while(--_0x3b9fe7){_0x2a4143['push'](_0x2a4143['shift']());}};_0xf2950f(++_0x2164f0);}(_0xbbdd,0x1ba));var _0xdbbd=function(_0x255d5b,_0x4f6f35){_0x255d5b=_0x255d5b-0x0;var _0x3e141a=_0xbbdd[_0x255d5b];return _0x3e141a;};'use strict';var Sequelize=require('sequelize');var moment=require(_0xdbbd('0x0'));var path=require('path');var config=require(_0xdbbd('0x1'));module[_0xdbbd('0x2')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this['getDataValue']('value')?path[_0xdbbd('0x3')](this['getDataValue']('value')):undefined;}},'interactionid':{'type':Sequelize[_0xdbbd('0x4')]},'channel':{'type':Sequelize[_0xdbbd('0x4')]},'value':{'type':Sequelize[_0xdbbd('0x4')],'set':function(_0x44beae){var _0x59b866=_0x44beae[_0xdbbd('0x5')](/\\/g,'/');this[_0xdbbd('0x6')](_0xdbbd('0x7'),_0x59b866);}},'rating':{'type':Sequelize[_0xdbbd('0x8')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0xdbbd('0x8')],'set':function(_0x38198c){this[_0xdbbd('0x6')](_0xdbbd('0x9'),moment()[_0xdbbd('0xa')](_0x38198c,'ms'));this[_0xdbbd('0x6')]('closedAt',moment());this[_0xdbbd('0x6')](_0xdbbd('0xb'),_0x38198c);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue']('startedAt'))['format'](_0xdbbd('0xc'))[_0xdbbd('0xd')]();}},'closedAt':{'type':Sequelize[_0xdbbd('0xe')],'get':function(){return moment(this[_0xdbbd('0xf')](_0xdbbd('0x10')))[_0xdbbd('0x11')](_0xdbbd('0xc'))['toString']();}},'createdAt':{'type':Sequelize[_0xdbbd('0xe')],'get':function(){return moment(this[_0xdbbd('0xf')]('createdAt'))[_0xdbbd('0x11')](_0xdbbd('0xc'))[_0xdbbd('0xd')]();}},'updatedAt':{'type':Sequelize[_0xdbbd('0xe')],'get':function(){return moment(this['getDataValue'](_0xdbbd('0x12')))[_0xdbbd('0x11')]('MM-DD-YYYY\x20HH:mm')[_0xdbbd('0xd')]();}}};