14f63ada4aaf3b728ac21b20b6dceefd147c2cde
[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 _0x9af8=['STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','months','weeks','days','hours','minutes','csv','pdf','xlsx','custom','default','TEXT','sequelize','exports'];(function(_0x4d780d,_0x28657f){var _0x24e5fe=function(_0x44e2e8){while(--_0x44e2e8){_0x4d780d['push'](_0x4d780d['shift']());}};_0x24e5fe(++_0x28657f);}(_0x9af8,0x14e));var _0x89af=function(_0x479eba,_0x4c1779){_0x479eba=_0x479eba-0x0;var _0x32667e=_0x9af8[_0x479eba];return _0x32667e;};'use strict';var Sequelize=require(_0x89af('0x0'));module[_0x89af('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x89af('0x2')]},'active':{'type':Sequelize[_0x89af('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x89af('0x4')},'startAt':{'type':Sequelize[_0x89af('0x5')],'allowNull':![]},'endAt':{'type':Sequelize[_0x89af('0x5')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x89af('0x6')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x89af('0x7')](_0x89af('0x8'),_0x89af('0x9'),_0x89af('0xa'),_0x89af('0xb'),_0x89af('0xc'),_0x89af('0xd'),_0x89af('0xe')),'allowNull':![],'defaultValue':_0x89af('0xc')},'output':{'type':Sequelize[_0x89af('0x7')](_0x89af('0xf'),_0x89af('0x10'),_0x89af('0x11')),'allowNull':![],'defaultValue':_0x89af('0xf')},'type':{'type':Sequelize['ENUM'](_0x89af('0x12'),_0x89af('0x13')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0x89af('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x89af('0x2')]},'cc':{'type':Sequelize[_0x89af('0x14')]},'bcc':{'type':Sequelize[_0x89af('0x14')]},'sendIfEmpty':{'type':Sequelize[_0x89af('0x3')],'defaultValue':!![]}};