Built motion from commit 52c8a02d.|2.6.29
[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 _0x4178=['STRING','DATE','INTEGER','ENUM','months','weeks','days','hours','minutes','csv','pdf','xlsx','default','custom','BOOLEAN','TEXT','sequelize','exports'];(function(_0x9f7b55,_0x488b39){var _0x69e47b=function(_0x4d70f2){while(--_0x4d70f2){_0x9f7b55['push'](_0x9f7b55['shift']());}};_0x69e47b(++_0x488b39);}(_0x4178,0xe8));var _0x8417=function(_0x16b9ed,_0x56517a){_0x16b9ed=_0x16b9ed-0x0;var _0x66b1f8=_0x4178[_0x16b9ed];return _0x66b1f8;};'use strict';var Sequelize=require(_0x8417('0x0'));module[_0x8417('0x1')]={'name':{'type':Sequelize[_0x8417('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x8417('0x2')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x8417('0x2')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0x8417('0x3')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x8417('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x8417('0x5')]('years','quarters',_0x8417('0x6'),_0x8417('0x7'),_0x8417('0x8'),_0x8417('0x9'),_0x8417('0xa')),'allowNull':![],'defaultValue':_0x8417('0x8')},'output':{'type':Sequelize[_0x8417('0x5')](_0x8417('0xb'),_0x8417('0xc'),_0x8417('0xd')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize[_0x8417('0x5')]('custom',_0x8417('0xe')),'allowNull':![],'defaultValue':_0x8417('0xf')},'sendMail':{'type':Sequelize[_0x8417('0x10')],'defaultValue':![]},'email':{'type':Sequelize[_0x8417('0x2')]},'cc':{'type':Sequelize[_0x8417('0x11')]},'bcc':{'type':Sequelize[_0x8417('0x11')]},'sendIfEmpty':{'type':Sequelize[_0x8417('0x10')],'defaultValue':!![]}};