2311576aa9168aba06237e22d869d416bc0028f2
[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 _0xda60=['minutes','csv','xlsx','custom','default','BOOLEAN','TEXT','exports','STRING','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','quarters','months','weeks'];(function(_0x7126d,_0x56d4b6){var _0x1b83e2=function(_0x30287a){while(--_0x30287a){_0x7126d['push'](_0x7126d['shift']());}};_0x1b83e2(++_0x56d4b6);}(_0xda60,0x157));var _0x0da6=function(_0x2a318a,_0x3f8006){_0x2a318a=_0x2a318a-0x0;var _0x346cf3=_0xda60[_0x2a318a];return _0x346cf3;};'use strict';var Sequelize=require('sequelize');module[_0x0da6('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x0da6('0x1')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x0da6('0x1')],'allowNull':![],'defaultValue':_0x0da6('0x2')},'startAt':{'type':Sequelize[_0x0da6('0x3')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x0da6('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x0da6('0x5')]('years',_0x0da6('0x6'),_0x0da6('0x7'),_0x0da6('0x8'),'days','hours',_0x0da6('0x9')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x0da6('0x5')](_0x0da6('0xa'),'pdf',_0x0da6('0xb')),'allowNull':![],'defaultValue':_0x0da6('0xa')},'type':{'type':Sequelize['ENUM'](_0x0da6('0xc'),_0x0da6('0xd')),'allowNull':![],'defaultValue':_0x0da6('0xc')},'sendMail':{'type':Sequelize[_0x0da6('0xe')],'defaultValue':![]},'email':{'type':Sequelize[_0x0da6('0x1')]},'cc':{'type':Sequelize[_0x0da6('0xf')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0x0da6('0xe')],'defaultValue':!![]}};