Built motion from commit 994c64e1.|2.6.1
[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 _0x236e=['hours','ENUM','csv','pdf','xlsx','custom','default','BOOLEAN','TEXT','sequelize','exports','STRING','DATE','INTEGER','years','quarters','weeks','days'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x236e,0x1cb));var _0xe236=function(_0x31e29a,_0x349c9b){_0x31e29a=_0x31e29a-0x0;var _0x32d892=_0x236e[_0x31e29a];return _0x32d892;};'use strict';var Sequelize=require(_0xe236('0x0'));module[_0xe236('0x1')]={'name':{'type':Sequelize[_0xe236('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0xe236('0x3')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xe236('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0xe236('0x5'),_0xe236('0x6'),'months',_0xe236('0x7'),_0xe236('0x8'),_0xe236('0x9'),'minutes'),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0xe236('0xa')](_0xe236('0xb'),_0xe236('0xc'),_0xe236('0xd')),'allowNull':![],'defaultValue':_0xe236('0xb')},'type':{'type':Sequelize[_0xe236('0xa')](_0xe236('0xe'),_0xe236('0xf')),'allowNull':![],'defaultValue':_0xe236('0xe')},'sendMail':{'type':Sequelize[_0xe236('0x10')],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize[_0xe236('0x11')]},'bcc':{'type':Sequelize[_0xe236('0x11')]},'sendIfEmpty':{'type':Sequelize[_0xe236('0x10')],'defaultValue':!![]}};