9d3af5ae541011126d7eec99e517e961a80d642c
[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 _0x3ebe=['weeks','days','hours','minutes','ENUM','csv','xlsx','custom','default','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','years','quarters','months'];(function(_0x381161,_0x35c308){var _0x17582e=function(_0x3d5507){while(--_0x3d5507){_0x381161['push'](_0x381161['shift']());}};_0x17582e(++_0x35c308);}(_0x3ebe,0xdb));var _0xe3eb=function(_0x41df1f,_0x59d105){_0x41df1f=_0x41df1f-0x0;var _0x33c706=_0x3ebe[_0x41df1f];return _0x33c706;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xe3eb('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0xe3eb('0x0')]},'active':{'type':Sequelize[_0xe3eb('0x1')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xe3eb('0x2')},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0xe3eb('0x3'),_0xe3eb('0x4'),_0xe3eb('0x5'),_0xe3eb('0x6'),_0xe3eb('0x7'),_0xe3eb('0x8'),_0xe3eb('0x9')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0xe3eb('0xa')](_0xe3eb('0xb'),'pdf',_0xe3eb('0xc')),'allowNull':![],'defaultValue':_0xe3eb('0xb')},'type':{'type':Sequelize[_0xe3eb('0xa')](_0xe3eb('0xd'),_0xe3eb('0xe')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0xe3eb('0x1')],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0xe3eb('0x1')],'defaultValue':!![]}};