Built motion from commit 3d3e98f2.|2.6.29
[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 _0x27bf=['DATE','INTEGER','ENUM','years','quarters','weeks','days','xlsx','csv','custom','default','STRING','TEXT','exports','BOOLEAN'];(function(_0x4db56c,_0x20b972){var _0x3dfff8=function(_0x2d1e25){while(--_0x2d1e25){_0x4db56c['push'](_0x4db56c['shift']());}};_0x3dfff8(++_0x20b972);}(_0x27bf,0x11b));var _0xf27b=function(_0x3504f9,_0x49964d){_0x3504f9=_0x3504f9-0x0;var _0x2024e1=_0x27bf[_0x3504f9];return _0x2024e1;};'use strict';var Sequelize=require('sequelize');module[_0xf27b('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0xf27b('0x1')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0xf27b('0x2')],'allowNull':![]},'endAt':{'type':Sequelize[_0xf27b('0x2')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xf27b('0x3')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xf27b('0x4')](_0xf27b('0x5'),_0xf27b('0x6'),'months',_0xf27b('0x7'),_0xf27b('0x8'),'hours','minutes'),'allowNull':![],'defaultValue':_0xf27b('0x8')},'output':{'type':Sequelize[_0xf27b('0x4')]('csv','pdf',_0xf27b('0x9')),'allowNull':![],'defaultValue':_0xf27b('0xa')},'type':{'type':Sequelize[_0xf27b('0x4')](_0xf27b('0xb'),_0xf27b('0xc')),'allowNull':![],'defaultValue':_0xf27b('0xb')},'sendMail':{'type':Sequelize[_0xf27b('0x1')],'defaultValue':![]},'email':{'type':Sequelize[_0xf27b('0xd')]},'cc':{'type':Sequelize[_0xf27b('0xe')]},'bcc':{'type':Sequelize[_0xf27b('0xe')]},'sendIfEmpty':{'type':Sequelize[_0xf27b('0x1')],'defaultValue':!![]}};