Built motion from commit 092f8824.|2.5.49
[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 _0x1365=['exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','months','weeks','days','hours','minutes','pdf','xlsx','csv','custom','default','TEXT'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0x1365,0x1cc));var _0x5136=function(_0x4faad9,_0x3ba3b5){_0x4faad9=_0x4faad9-0x0;var _0xd3503d=_0x1365[_0x4faad9];return _0xd3503d;};'use strict';var Sequelize=require('sequelize');module[_0x5136('0x0')]={'name':{'type':Sequelize[_0x5136('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x5136('0x1')]},'active':{'type':Sequelize[_0x5136('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5136('0x3')},'startAt':{'type':Sequelize[_0x5136('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0x5136('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x5136('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x5136('0x6')](_0x5136('0x7'),_0x5136('0x8'),_0x5136('0x9'),_0x5136('0xa'),_0x5136('0xb'),_0x5136('0xc'),_0x5136('0xd')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x5136('0x6')]('csv',_0x5136('0xe'),_0x5136('0xf')),'allowNull':![],'defaultValue':_0x5136('0x10')},'type':{'type':Sequelize[_0x5136('0x6')](_0x5136('0x11'),_0x5136('0x12')),'allowNull':![],'defaultValue':_0x5136('0x11')},'sendMail':{'type':Sequelize[_0x5136('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0x5136('0x1')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0x5136('0x13')]},'sendIfEmpty':{'type':Sequelize[_0x5136('0x2')],'defaultValue':!![]}};