Built motion from commit 9d1906d1.|2.5.40
[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 _0x09d2=['format','MM-DD-YYYY\x20HH:mm','toString','updatedAt','sequelize','moment','path','../../config/environment','exports','VIRTUAL','getDataValue','value','extname','STRING','INTEGER','setDataValue','subtract','closedAt','duration','DATE','startedAt'];(function(_0x27c10b,_0x18e7b8){var _0x40305b=function(_0x106ee6){while(--_0x106ee6){_0x27c10b['push'](_0x27c10b['shift']());}};_0x40305b(++_0x18e7b8);}(_0x09d2,0x1d2));var _0x209d=function(_0x2d42e7,_0x5992d1){_0x2d42e7=_0x2d42e7-0x0;var _0x3de4e6=_0x09d2[_0x2d42e7];return _0x3de4e6;};'use strict';var Sequelize=require(_0x209d('0x0'));var moment=require(_0x209d('0x1'));var path=require(_0x209d('0x2'));var config=require(_0x209d('0x3'));module[_0x209d('0x4')]={'format':{'type':Sequelize[_0x209d('0x5')],'get':function(){return this[_0x209d('0x6')](_0x209d('0x7'))?path[_0x209d('0x8')](this[_0x209d('0x6')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x209d('0x9')]},'channel':{'type':Sequelize[_0x209d('0x9')]},'value':{'type':Sequelize[_0x209d('0x9')],'set':function(_0x204ab9){var _0xc141e6=_0x204ab9['replace'](/\\/g,'/');this['setDataValue'](_0x209d('0x7'),_0xc141e6);}},'rating':{'type':Sequelize[_0x209d('0xa')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x209d('0xa')],'set':function(_0x48c52d){this[_0x209d('0xb')]('startedAt',moment()[_0x209d('0xc')](_0x48c52d,'ms'));this[_0x209d('0xb')](_0x209d('0xd'),moment());this[_0x209d('0xb')](_0x209d('0xe'),_0x48c52d);}},'startedAt':{'type':Sequelize[_0x209d('0xf')],'get':function(){return moment(this[_0x209d('0x6')](_0x209d('0x10')))[_0x209d('0x11')](_0x209d('0x12'))[_0x209d('0x13')]();}},'closedAt':{'type':Sequelize[_0x209d('0xf')],'get':function(){return moment(this['getDataValue'](_0x209d('0xd')))[_0x209d('0x11')](_0x209d('0x12'))['toString']();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){return moment(this[_0x209d('0x6')]('createdAt'))['format'](_0x209d('0x12'))[_0x209d('0x13')]();}},'updatedAt':{'type':Sequelize[_0x209d('0xf')],'get':function(){return moment(this['getDataValue'](_0x209d('0x14')))[_0x209d('0x11')](_0x209d('0x12'))[_0x209d('0x13')]();}}};