7c8cb389a3e55a693ebf3f311227fbeced61b583
[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 _0x47c5=['INTEGER','startedAt','subtract','closedAt','duration','DATE','format','toString','getDataValue','MM-DD-YYYY\x20HH:mm','createdAt','updatedAt','sequelize','moment','path','../../config/environment','exports','VIRTUAL','value','extname','STRING','replace','setDataValue'];(function(_0x628eee,_0x3f3fba){var _0x447718=function(_0x38112b){while(--_0x38112b){_0x628eee['push'](_0x628eee['shift']());}};_0x447718(++_0x3f3fba);}(_0x47c5,0x165));var _0x547c=function(_0x590454,_0x30c9cf){_0x590454=_0x590454-0x0;var _0x21cb88=_0x47c5[_0x590454];return _0x21cb88;};'use strict';var Sequelize=require(_0x547c('0x0'));var moment=require(_0x547c('0x1'));var path=require(_0x547c('0x2'));var config=require(_0x547c('0x3'));module[_0x547c('0x4')]={'format':{'type':Sequelize[_0x547c('0x5')],'get':function(){return this['getDataValue'](_0x547c('0x6'))?path[_0x547c('0x7')](this['getDataValue'](_0x547c('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x547c('0x8')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x547c('0x8')],'set':function(_0x439f25){var _0x381f2e=_0x439f25[_0x547c('0x9')](/\\/g,'/');this[_0x547c('0xa')](_0x547c('0x6'),_0x381f2e);}},'rating':{'type':Sequelize[_0x547c('0xb')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x547c('0xb')],'set':function(_0x10dec9){this[_0x547c('0xa')](_0x547c('0xc'),moment()[_0x547c('0xd')](_0x10dec9,'ms'));this[_0x547c('0xa')](_0x547c('0xe'),moment());this[_0x547c('0xa')](_0x547c('0xf'),_0x10dec9);}},'startedAt':{'type':Sequelize[_0x547c('0x10')],'get':function(){return moment(this['getDataValue'](_0x547c('0xc')))[_0x547c('0x11')]('MM-DD-YYYY\x20HH:mm')[_0x547c('0x12')]();}},'closedAt':{'type':Sequelize[_0x547c('0x10')],'get':function(){return moment(this[_0x547c('0x13')](_0x547c('0xe')))[_0x547c('0x11')](_0x547c('0x14'))[_0x547c('0x12')]();}},'createdAt':{'type':Sequelize[_0x547c('0x10')],'get':function(){return moment(this[_0x547c('0x13')](_0x547c('0x15')))[_0x547c('0x11')](_0x547c('0x14'))[_0x547c('0x12')]();}},'updatedAt':{'type':Sequelize[_0x547c('0x10')],'get':function(){return moment(this[_0x547c('0x13')](_0x547c('0x16')))[_0x547c('0x11')](_0x547c('0x14'))['toString']();}}};