d49a116d90a421e7626721f35f99b3fdcd8f1fe1
[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 _0xd6d6=['STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','moment','path','../../config/environment','VIRTUAL','getDataValue','value','extname'];(function(_0x187137,_0x25e2d8){var _0x58e935=function(_0x1edb0b){while(--_0x1edb0b){_0x187137['push'](_0x187137['shift']());}};_0x58e935(++_0x25e2d8);}(_0xd6d6,0xbe));var _0x6d6d=function(_0x14d036,_0x473443){_0x14d036=_0x14d036-0x0;var _0xad7e03=_0xd6d6[_0x14d036];return _0xad7e03;};'use strict';var Sequelize=require(_0x6d6d('0x0'));var moment=require(_0x6d6d('0x1'));var path=require(_0x6d6d('0x2'));var config=require(_0x6d6d('0x3'));module['exports']={'format':{'type':Sequelize[_0x6d6d('0x4')],'get':function(){return this[_0x6d6d('0x5')](_0x6d6d('0x6'))?path[_0x6d6d('0x7')](this[_0x6d6d('0x5')](_0x6d6d('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x6d6d('0x8')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x6d6d('0x8')],'set':function(_0x1bf731){var _0x44f83d=_0x1bf731[_0x6d6d('0x9')](/\\/g,'/');this[_0x6d6d('0xa')](_0x6d6d('0x6'),_0x44f83d);}},'rating':{'type':Sequelize[_0x6d6d('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x51dd38){this[_0x6d6d('0xa')](_0x6d6d('0xc'),moment()[_0x6d6d('0xd')](_0x51dd38,'ms'));this[_0x6d6d('0xa')](_0x6d6d('0xe'),moment());this['setDataValue'](_0x6d6d('0xf'),_0x51dd38);}},'startedAt':{'type':Sequelize[_0x6d6d('0x10')],'get':function(){return moment(this['getDataValue']('startedAt'))[_0x6d6d('0x11')](_0x6d6d('0x12'))[_0x6d6d('0x13')]();}},'closedAt':{'type':Sequelize[_0x6d6d('0x10')],'get':function(){return moment(this[_0x6d6d('0x5')](_0x6d6d('0xe')))[_0x6d6d('0x11')](_0x6d6d('0x12'))['toString']();}},'createdAt':{'type':Sequelize[_0x6d6d('0x10')],'get':function(){return moment(this[_0x6d6d('0x5')](_0x6d6d('0x14')))[_0x6d6d('0x11')](_0x6d6d('0x12'))['toString']();}},'updatedAt':{'type':Sequelize[_0x6d6d('0x10')],'get':function(){return moment(this['getDataValue'](_0x6d6d('0x15')))[_0x6d6d('0x11')](_0x6d6d('0x12'))['toString']();}}};