1cce8eb7566a2c9b29bfc1ffa27f2d2c41e37064
[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 _0x983f=['STRING','BOOLEAN','DATE','INTEGER','ENUM','years','quarters','months','weeks','days','csv','pdf','xlsx','custom','TEXT'];(function(_0x2e1ac8,_0x4bb931){var _0x342e6a=function(_0x3cc9ac){while(--_0x3cc9ac){_0x2e1ac8['push'](_0x2e1ac8['shift']());}};_0x342e6a(++_0x4bb931);}(_0x983f,0x96));var _0xf983=function(_0x3534ac,_0x57c708){_0x3534ac=_0x3534ac-0x0;var _0x443e7e=_0x983f[_0x3534ac];return _0x443e7e;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xf983('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0xf983('0x0')]},'active':{'type':Sequelize[_0xf983('0x1')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0xf983('0x0')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0xf983('0x2')],'allowNull':![]},'endAt':{'type':Sequelize[_0xf983('0x2')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xf983('0x3')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xf983('0x4')](_0xf983('0x5'),_0xf983('0x6'),_0xf983('0x7'),_0xf983('0x8'),_0xf983('0x9'),'hours','minutes'),'allowNull':![],'defaultValue':_0xf983('0x9')},'output':{'type':Sequelize[_0xf983('0x4')](_0xf983('0xa'),_0xf983('0xb'),_0xf983('0xc')),'allowNull':![],'defaultValue':_0xf983('0xa')},'type':{'type':Sequelize[_0xf983('0x4')](_0xf983('0xd'),'default'),'allowNull':![],'defaultValue':_0xf983('0xd')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0xf983('0x0')]},'cc':{'type':Sequelize[_0xf983('0xe')]},'bcc':{'type':Sequelize[_0xf983('0xe')]},'sendIfEmpty':{'type':Sequelize[_0xf983('0x1')],'defaultValue':!![]}};