Built motion from commit d5e4af8c.|2.6.23
[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 _0x1678=['updatedAt','sequelize','moment','path','../../config/environment','exports','value','extname','getDataValue','STRING','replace','setDataValue','INTEGER','startedAt','subtract','closedAt','duration','DATE','format','toString','MM-DD-YYYY\x20HH:mm'];(function(_0x4b7b62,_0x4920a9){var _0x2280df=function(_0x21e1f8){while(--_0x21e1f8){_0x4b7b62['push'](_0x4b7b62['shift']());}};_0x2280df(++_0x4920a9);}(_0x1678,0x17b));var _0x8167=function(_0x12a529,_0x1cf160){_0x12a529=_0x12a529-0x0;var _0x50c9fb=_0x1678[_0x12a529];return _0x50c9fb;};'use strict';var Sequelize=require(_0x8167('0x0'));var moment=require(_0x8167('0x1'));var path=require(_0x8167('0x2'));var config=require(_0x8167('0x3'));module[_0x8167('0x4')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this['getDataValue'](_0x8167('0x5'))?path[_0x8167('0x6')](this[_0x8167('0x7')](_0x8167('0x5'))):undefined;}},'interactionid':{'type':Sequelize[_0x8167('0x8')]},'channel':{'type':Sequelize[_0x8167('0x8')]},'value':{'type':Sequelize[_0x8167('0x8')],'set':function(_0x4ce075){var _0x34768e=_0x4ce075[_0x8167('0x9')](/\\/g,'/');this[_0x8167('0xa')]('value',_0x34768e);}},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x8167('0xb')],'set':function(_0x381a87){this['setDataValue'](_0x8167('0xc'),moment()[_0x8167('0xd')](_0x381a87,'ms'));this[_0x8167('0xa')](_0x8167('0xe'),moment());this[_0x8167('0xa')](_0x8167('0xf'),_0x381a87);}},'startedAt':{'type':Sequelize[_0x8167('0x10')],'get':function(){return moment(this['getDataValue']('startedAt'))[_0x8167('0x11')]('MM-DD-YYYY\x20HH:mm')[_0x8167('0x12')]();}},'closedAt':{'type':Sequelize[_0x8167('0x10')],'get':function(){return moment(this[_0x8167('0x7')](_0x8167('0xe')))[_0x8167('0x11')]('MM-DD-YYYY\x20HH:mm')[_0x8167('0x12')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this['getDataValue']('createdAt'))['format'](_0x8167('0x13'))[_0x8167('0x12')]();}},'updatedAt':{'type':Sequelize[_0x8167('0x10')],'get':function(){return moment(this[_0x8167('0x7')](_0x8167('0x14')))[_0x8167('0x11')](_0x8167('0x13'))[_0x8167('0x12')]();}}};