bb476db2c995dcb671836e911f02ad3c11e96498
[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 _0x3f95=['weeks','days','minutes','ENUM','csv','pdf','xlsx','custom','sequelize','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','years'];(function(_0x189d4d,_0x369b2c){var _0x4f6bdc=function(_0x4d69e0){while(--_0x4d69e0){_0x189d4d['push'](_0x189d4d['shift']());}};_0x4f6bdc(++_0x369b2c);}(_0x3f95,0x182));var _0x53f9=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x3f95[_0x4565bf];return _0x5610ba;};'use strict';var Sequelize=require(_0x53f9('0x0'));module['exports']={'name':{'type':Sequelize[_0x53f9('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x53f9('0x1')]},'active':{'type':Sequelize[_0x53f9('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x53f9('0x1')],'allowNull':![],'defaultValue':_0x53f9('0x3')},'startAt':{'type':Sequelize[_0x53f9('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0x53f9('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0x53f9('0x5'),'quarters','months',_0x53f9('0x6'),_0x53f9('0x7'),'hours',_0x53f9('0x8')),'allowNull':![],'defaultValue':_0x53f9('0x7')},'output':{'type':Sequelize[_0x53f9('0x9')](_0x53f9('0xa'),_0x53f9('0xb'),_0x53f9('0xc')),'allowNull':![],'defaultValue':_0x53f9('0xa')},'type':{'type':Sequelize[_0x53f9('0x9')](_0x53f9('0xd'),'default'),'allowNull':![],'defaultValue':_0x53f9('0xd')},'sendMail':{'type':Sequelize[_0x53f9('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0x53f9('0x1')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0x53f9('0x2')],'defaultValue':!![]}};