Built motion from commit 19a84241.|2.5.34
[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 _0xa678=['years','months','weeks','days','hours','minutes','pdf','csv','default','custom','TEXT','sequelize','exports','STRING','BOOLEAN','INTEGER','ENUM'];(function(_0x4248f3,_0x2ab024){var _0x3598bc=function(_0x22e5de){while(--_0x22e5de){_0x4248f3['push'](_0x4248f3['shift']());}};_0x3598bc(++_0x2ab024);}(_0xa678,0xa4));var _0x8a67=function(_0x24371c,_0x5cafac){_0x24371c=_0x24371c-0x0;var _0x28b558=_0xa678[_0x24371c];return _0x28b558;};'use strict';var Sequelize=require(_0x8a67('0x0'));module[_0x8a67('0x1')]={'name':{'type':Sequelize[_0x8a67('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x8a67('0x2')]},'active':{'type':Sequelize[_0x8a67('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x8a67('0x2')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x8a67('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x8a67('0x5')](_0x8a67('0x6'),'quarters',_0x8a67('0x7'),_0x8a67('0x8'),_0x8a67('0x9'),_0x8a67('0xa'),_0x8a67('0xb')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x8a67('0x5')]('csv',_0x8a67('0xc'),'xlsx'),'allowNull':![],'defaultValue':_0x8a67('0xd')},'type':{'type':Sequelize[_0x8a67('0x5')]('custom',_0x8a67('0xe')),'allowNull':![],'defaultValue':_0x8a67('0xf')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize[_0x8a67('0x10')]},'bcc':{'type':Sequelize[_0x8a67('0x10')]},'sendIfEmpty':{'type':Sequelize[_0x8a67('0x3')],'defaultValue':!![]}};