13c4eef6f2809eb06a4625b1cc2f64576574d0ba
[motion2.git] / server / api / jscriptyProject / jscriptyProject.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 _0x3c61=['getDataValue','description','BOOLEAN','sequelize','util','exports','STRING','name','TEXT','long','isObjectLike','setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x1e6659,_0x1f860c){var _0x4d16e4=function(_0x21c05a){while(--_0x21c05a){_0x1e6659['push'](_0x1e6659['shift']());}};_0x4d16e4(++_0x1f860c);}(_0x3c61,0x15c));var _0x13c6=function(_0x1de321,_0x255db6){_0x1de321=_0x1de321-0x0;var _0x210e4f=_0x3c61[_0x1de321];return _0x210e4f;};'use strict';var Sequelize=require(_0x13c6('0x0'));var _=require('lodash');var util=require(_0x13c6('0x1'));module[_0x13c6('0x2')]={'name':{'type':Sequelize[_0x13c6('0x3')],'unique':_0x13c6('0x4')},'description':{'type':Sequelize[_0x13c6('0x3')]},'formData':{'type':Sequelize[_0x13c6('0x5')](_0x13c6('0x6')),'set':function(_0x40c620){if(_[_0x13c6('0x7')](_0x40c620)){this[_0x13c6('0x8')]('formData',JSON['stringify'](_0x40c620));}else if(_['isString'](_0x40c620)){this[_0x13c6('0x8')]('formData',_0x40c620);}else{this['setDataValue'](_0x13c6('0x9'),util[_0x13c6('0xa')](_0x13c6('0xb'),this[_0x13c6('0xc')](_0x13c6('0x4'))||'',this[_0x13c6('0xc')](_0x13c6('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x13c6('0xe')],'defaultValue':![]}};