Built motion from commit b0a9a629.|2.6.33
[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 _0xe716=['weeks','days','hours','minutes','ENUM','csv','pdf','custom','TEXT','sequelize','STRING','BOOLEAN','DATE','years','quarters'];(function(_0xcd0918,_0x56bdf9){var _0x250704=function(_0x56788e){while(--_0x56788e){_0xcd0918['push'](_0xcd0918['shift']());}};_0x250704(++_0x56bdf9);}(_0xe716,0x18f));var _0x6e71=function(_0x34b42e,_0x5c5533){_0x34b42e=_0x34b42e-0x0;var _0x2b69b7=_0xe716[_0x34b42e];return _0x2b69b7;};'use strict';var Sequelize=require(_0x6e71('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x6e71('0x1')]},'active':{'type':Sequelize[_0x6e71('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x6e71('0x1')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0x6e71('0x3')],'allowNull':![]},'endAt':{'type':Sequelize[_0x6e71('0x3')],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0x6e71('0x4'),_0x6e71('0x5'),'months',_0x6e71('0x6'),_0x6e71('0x7'),_0x6e71('0x8'),_0x6e71('0x9')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x6e71('0xa')](_0x6e71('0xb'),_0x6e71('0xc'),'xlsx'),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize[_0x6e71('0xa')]('custom','default'),'allowNull':![],'defaultValue':_0x6e71('0xd')},'sendMail':{'type':Sequelize[_0x6e71('0x2')],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0x6e71('0xe')]},'sendIfEmpty':{'type':Sequelize[_0x6e71('0x2')],'defaultValue':!![]}};