Built motion from commit (unavailable).|2.4.4
[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 _0x8588=['setDataValue','duration','DATE','startedAt','format','MM-DD-YYYY\x20HH:mm','toString','closedAt','updatedAt','moment','path','../../config/environment','exports','getDataValue','value','extname','STRING','INTEGER','subtract'];(function(_0x52d7b4,_0x4ee516){var _0x4fb552=function(_0x29cb2e){while(--_0x29cb2e){_0x52d7b4['push'](_0x52d7b4['shift']());}};_0x4fb552(++_0x4ee516);}(_0x8588,0x185));var _0x8858=function(_0x501ad3,_0x87e957){_0x501ad3=_0x501ad3-0x0;var _0x5dcf4c=_0x8588[_0x501ad3];return _0x5dcf4c;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x8858('0x0'));var path=require(_0x8858('0x1'));var config=require(_0x8858('0x2'));module[_0x8858('0x3')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x8858('0x4')](_0x8858('0x5'))?path[_0x8858('0x6')](this['getDataValue'](_0x8858('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0x8858('0x7')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x8858('0x7')],'set':function(_0x3117b3){var _0x3df513=_0x3117b3['replace'](/\\/g,'/');this['setDataValue']('value',_0x3df513);}},'rating':{'type':Sequelize[_0x8858('0x8')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x3ac09b){this['setDataValue']('startedAt',moment()[_0x8858('0x9')](_0x3ac09b,'ms'));this[_0x8858('0xa')]('closedAt',moment());this['setDataValue'](_0x8858('0xb'),_0x3ac09b);}},'startedAt':{'type':Sequelize[_0x8858('0xc')],'get':function(){return moment(this[_0x8858('0x4')](_0x8858('0xd')))[_0x8858('0xe')](_0x8858('0xf'))[_0x8858('0x10')]();}},'closedAt':{'type':Sequelize[_0x8858('0xc')],'get':function(){return moment(this[_0x8858('0x4')](_0x8858('0x11')))[_0x8858('0xe')](_0x8858('0xf'))[_0x8858('0x10')]();}},'createdAt':{'type':Sequelize[_0x8858('0xc')],'get':function(){return moment(this[_0x8858('0x4')]('createdAt'))[_0x8858('0xe')]('MM-DD-YYYY\x20HH:mm')[_0x8858('0x10')]();}},'updatedAt':{'type':Sequelize[_0x8858('0xc')],'get':function(){return moment(this[_0x8858('0x4')](_0x8858('0x12')))[_0x8858('0xe')](_0x8858('0xf'))[_0x8858('0x10')]();}}};