9b866a380b73540c9558a2d0c9b6e0ab7ea787ac
[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 _0xb138=['extname','value','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','DATE','format','MM-DD-YYYY\x20HH:mm','toString','createdAt','updatedAt','sequelize','moment','path','../../config/environment','exports','VIRTUAL','getDataValue'];(function(_0x500419,_0x549162){var _0x241c1a=function(_0x3bea1a){while(--_0x3bea1a){_0x500419['push'](_0x500419['shift']());}};_0x241c1a(++_0x549162);}(_0xb138,0x1dd));var _0x8b13=function(_0x2a28ac,_0x378f3b){_0x2a28ac=_0x2a28ac-0x0;var _0x1069fd=_0xb138[_0x2a28ac];return _0x1069fd;};'use strict';var Sequelize=require(_0x8b13('0x0'));var moment=require(_0x8b13('0x1'));var path=require(_0x8b13('0x2'));var config=require(_0x8b13('0x3'));module[_0x8b13('0x4')]={'format':{'type':Sequelize[_0x8b13('0x5')],'get':function(){return this[_0x8b13('0x6')]('value')?path[_0x8b13('0x7')](this[_0x8b13('0x6')](_0x8b13('0x8'))):undefined;}},'interactionid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x8b13('0x9')]},'value':{'type':Sequelize[_0x8b13('0x9')],'set':function(_0x5d51b1){var _0x3fdf4d=_0x5d51b1[_0x8b13('0xa')](/\\/g,'/');this[_0x8b13('0xb')]('value',_0x3fdf4d);}},'rating':{'type':Sequelize[_0x8b13('0xc')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x8b13('0xc')],'set':function(_0x58683a){this['setDataValue'](_0x8b13('0xd'),moment()[_0x8b13('0xe')](_0x58683a,'ms'));this[_0x8b13('0xb')](_0x8b13('0xf'),moment());this[_0x8b13('0xb')]('duration',_0x58683a);}},'startedAt':{'type':Sequelize[_0x8b13('0x10')],'get':function(){return moment(this[_0x8b13('0x6')](_0x8b13('0xd')))[_0x8b13('0x11')](_0x8b13('0x12'))[_0x8b13('0x13')]();}},'closedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue'](_0x8b13('0xf')))[_0x8b13('0x11')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x8b13('0x6')](_0x8b13('0x14')))[_0x8b13('0x11')](_0x8b13('0x12'))[_0x8b13('0x13')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x8b13('0x6')](_0x8b13('0x15')))[_0x8b13('0x11')](_0x8b13('0x12'))[_0x8b13('0x13')]();}}};