Built motion from commit e8d9bd62.|2.6.25
[motion2.git] / server / api / schedule / schedule.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 _0x3427=['days','minutes','csv','pdf','xlsx','TEXT','exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','ENUM','years','quarters','months'];(function(_0x416604,_0x20d62b){var _0x53c28a=function(_0x4c248b){while(--_0x4c248b){_0x416604['push'](_0x416604['shift']());}};_0x53c28a(++_0x20d62b);}(_0x3427,0xf6));var _0x7342=function(_0x37bffe,_0x5f0bb8){_0x37bffe=_0x37bffe-0x0;var _0x3f3a47=_0x3427[_0x37bffe];return _0x3f3a47;};'use strict';var Sequelize=require('sequelize');module[_0x7342('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x7342('0x1')]},'active':{'type':Sequelize[_0x7342('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x7342('0x1')],'allowNull':![],'defaultValue':_0x7342('0x3')},'startAt':{'type':Sequelize[_0x7342('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0x7342('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x7342('0x5')](_0x7342('0x6'),_0x7342('0x7'),_0x7342('0x8'),'weeks',_0x7342('0x9'),'hours',_0x7342('0xa')),'allowNull':![],'defaultValue':_0x7342('0x9')},'output':{'type':Sequelize[_0x7342('0x5')](_0x7342('0xb'),_0x7342('0xc'),_0x7342('0xd')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize[_0x7342('0x5')]('custom','default'),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0x7342('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0x7342('0x1')]},'cc':{'type':Sequelize[_0x7342('0xe')]},'bcc':{'type':Sequelize[_0x7342('0xe')]},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};