da07d7dd74cb663ecc6fa9ac54d7969cc5ad1504
[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 _0x9206=['DATE','INTEGER','quarters','weeks','days','hours','minutes','csv','pdf','xlsx','ENUM','custom','default','TEXT','sequelize','exports','STRING','BOOLEAN'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9206,0x176));var _0x6920=function(_0x23d4bd,_0x5b8c65){_0x23d4bd=_0x23d4bd-0x0;var _0x11b810=_0x9206[_0x23d4bd];return _0x11b810;};'use strict';var Sequelize=require(_0x6920('0x0'));module[_0x6920('0x1')]={'name':{'type':Sequelize[_0x6920('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x6920('0x2')]},'active':{'type':Sequelize[_0x6920('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x6920('0x2')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize[_0x6920('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x6920('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM']('years',_0x6920('0x6'),'months',_0x6920('0x7'),_0x6920('0x8'),_0x6920('0x9'),_0x6920('0xa')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize['ENUM'](_0x6920('0xb'),_0x6920('0xc'),_0x6920('0xd')),'allowNull':![],'defaultValue':_0x6920('0xb')},'type':{'type':Sequelize[_0x6920('0xe')](_0x6920('0xf'),_0x6920('0x10')),'allowNull':![],'defaultValue':_0x6920('0xf')},'sendMail':{'type':Sequelize[_0x6920('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x6920('0x2')]},'cc':{'type':Sequelize[_0x6920('0x11')]},'bcc':{'type':Sequelize[_0x6920('0x11')]},'sendIfEmpty':{'type':Sequelize[_0x6920('0x3')],'defaultValue':!![]}};