1a5bfbfae59fec874170ac60e198781eeee722d4
[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 _0x7d9f=['weeks','hours','minutes','pdf','xlsx','custom','default','TEXT','sequelize','exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','months'];(function(_0x326d0e,_0x59a3c9){var _0x58198d=function(_0x24e4df){while(--_0x24e4df){_0x326d0e['push'](_0x326d0e['shift']());}};_0x58198d(++_0x59a3c9);}(_0x7d9f,0x15c));var _0xf7d9=function(_0x1df5cd,_0x3dc641){_0x1df5cd=_0x1df5cd-0x0;var _0xf6df9b=_0x7d9f[_0x1df5cd];return _0xf6df9b;};'use strict';var Sequelize=require(_0xf7d9('0x0'));module[_0xf7d9('0x1')]={'name':{'type':Sequelize[_0xf7d9('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0xf7d9('0x2')]},'active':{'type':Sequelize[_0xf7d9('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xf7d9('0x4')},'startAt':{'type':Sequelize[_0xf7d9('0x5')],'allowNull':![]},'endAt':{'type':Sequelize[_0xf7d9('0x5')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xf7d9('0x6')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xf7d9('0x7')]('years','quarters',_0xf7d9('0x8'),_0xf7d9('0x9'),'days',_0xf7d9('0xa'),_0xf7d9('0xb')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0xf7d9('0x7')]('csv',_0xf7d9('0xc'),_0xf7d9('0xd')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize['ENUM'](_0xf7d9('0xe'),_0xf7d9('0xf')),'allowNull':![],'defaultValue':_0xf7d9('0xe')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize[_0xf7d9('0x10')]},'bcc':{'type':Sequelize[_0xf7d9('0x10')]},'sendIfEmpty':{'type':Sequelize[_0xf7d9('0x3')],'defaultValue':!![]}};