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