Built motion from commit ddca4d0d.|2.5.47
[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 _0x5879=['TEXT','sequelize','exports','STRING','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','months','weeks','days','hours','csv','pdf','xlsx','default','custom','BOOLEAN'];(function(_0x1aab89,_0x1bef75){var _0x403ae0=function(_0xb6353a){while(--_0xb6353a){_0x1aab89['push'](_0x1aab89['shift']());}};_0x403ae0(++_0x1bef75);}(_0x5879,0xbf));var _0x9587=function(_0x54122c,_0x10967f){_0x54122c=_0x54122c-0x0;var _0x13396b=_0x5879[_0x54122c];return _0x13396b;};'use strict';var Sequelize=require(_0x9587('0x0'));module[_0x9587('0x1')]={'name':{'type':Sequelize[_0x9587('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x9587('0x2')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x9587('0x2')],'allowNull':![],'defaultValue':_0x9587('0x3')},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize[_0x9587('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x9587('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x9587('0x6')](_0x9587('0x7'),'quarters',_0x9587('0x8'),_0x9587('0x9'),_0x9587('0xa'),_0x9587('0xb'),'minutes'),'allowNull':![],'defaultValue':_0x9587('0xa')},'output':{'type':Sequelize[_0x9587('0x6')](_0x9587('0xc'),_0x9587('0xd'),_0x9587('0xe')),'allowNull':![],'defaultValue':_0x9587('0xc')},'type':{'type':Sequelize['ENUM']('custom',_0x9587('0xf')),'allowNull':![],'defaultValue':_0x9587('0x10')},'sendMail':{'type':Sequelize[_0x9587('0x11')],'defaultValue':![]},'email':{'type':Sequelize[_0x9587('0x2')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0x9587('0x12')]},'sendIfEmpty':{'type':Sequelize[_0x9587('0x11')],'defaultValue':!![]}};