Built motion from commit a61a4a20.|2.5.46
[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 _0x9a18=['STRING','INTEGER','setDataValue','startedAt','subtract','closedAt','duration','DATE','format','toString','createdAt','MM-DD-YYYY\x20HH:mm','updatedAt','sequelize','path','../../config/environment','exports','VIRTUAL','getDataValue','extname','value'];(function(_0x46f100,_0x48f14b){var _0x641b4f=function(_0x17bf78){while(--_0x17bf78){_0x46f100['push'](_0x46f100['shift']());}};_0x641b4f(++_0x48f14b);}(_0x9a18,0x187));var _0x89a1=function(_0x466d6a,_0x4a0609){_0x466d6a=_0x466d6a-0x0;var _0x50721c=_0x9a18[_0x466d6a];return _0x50721c;};'use strict';var Sequelize=require(_0x89a1('0x0'));var moment=require('moment');var path=require(_0x89a1('0x1'));var config=require(_0x89a1('0x2'));module[_0x89a1('0x3')]={'format':{'type':Sequelize[_0x89a1('0x4')],'get':function(){return this[_0x89a1('0x5')]('value')?path[_0x89a1('0x6')](this[_0x89a1('0x5')](_0x89a1('0x7'))):undefined;}},'interactionid':{'type':Sequelize[_0x89a1('0x8')]},'channel':{'type':Sequelize[_0x89a1('0x8')]},'value':{'type':Sequelize[_0x89a1('0x8')],'set':function(_0x3ec780){var _0xcde361=_0x3ec780['replace'](/\\/g,'/');this['setDataValue'](_0x89a1('0x7'),_0xcde361);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x89a1('0x9')],'set':function(_0x541951){this[_0x89a1('0xa')](_0x89a1('0xb'),moment()[_0x89a1('0xc')](_0x541951,'ms'));this[_0x89a1('0xa')](_0x89a1('0xd'),moment());this[_0x89a1('0xa')](_0x89a1('0xe'),_0x541951);}},'startedAt':{'type':Sequelize[_0x89a1('0xf')],'get':function(){return moment(this[_0x89a1('0x5')](_0x89a1('0xb')))[_0x89a1('0x10')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'closedAt':{'type':Sequelize[_0x89a1('0xf')],'get':function(){return moment(this[_0x89a1('0x5')](_0x89a1('0xd')))[_0x89a1('0x10')]('MM-DD-YYYY\x20HH:mm')[_0x89a1('0x11')]();}},'createdAt':{'type':Sequelize[_0x89a1('0xf')],'get':function(){return moment(this['getDataValue'](_0x89a1('0x12')))[_0x89a1('0x10')](_0x89a1('0x13'))[_0x89a1('0x11')]();}},'updatedAt':{'type':Sequelize[_0x89a1('0xf')],'get':function(){return moment(this[_0x89a1('0x5')](_0x89a1('0x14')))[_0x89a1('0x10')]('MM-DD-YYYY\x20HH:mm')[_0x89a1('0x11')]();}}};