70ddcb7b4052b8c675bbfb8aff1bbdc888fd82cc
[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 _0x6bac=['sequelize','STRING','BOOLEAN','INTEGER','ENUM','quarters','months','weeks','days','hours','minutes','csv','default','custom','TEXT'];(function(_0x4bb48b,_0x25894f){var _0x3d4f32=function(_0x1e9d4a){while(--_0x1e9d4a){_0x4bb48b['push'](_0x4bb48b['shift']());}};_0x3d4f32(++_0x25894f);}(_0x6bac,0xa5));var _0xc6ba=function(_0xa585ec,_0x1b698b){_0xa585ec=_0xa585ec-0x0;var _0xac8c07=_0x6bac[_0xa585ec];return _0xac8c07;};'use strict';var Sequelize=require(_0xc6ba('0x0'));module['exports']={'name':{'type':Sequelize[_0xc6ba('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0xc6ba('0x1')]},'active':{'type':Sequelize[_0xc6ba('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0xc6ba('0x1')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xc6ba('0x3')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xc6ba('0x4')]('years',_0xc6ba('0x5'),_0xc6ba('0x6'),_0xc6ba('0x7'),_0xc6ba('0x8'),_0xc6ba('0x9'),_0xc6ba('0xa')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize['ENUM'](_0xc6ba('0xb'),'pdf','xlsx'),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize['ENUM']('custom',_0xc6ba('0xc')),'allowNull':![],'defaultValue':_0xc6ba('0xd')},'sendMail':{'type':Sequelize[_0xc6ba('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0xc6ba('0x1')]},'cc':{'type':Sequelize[_0xc6ba('0xe')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};