a7048c6bbceb1fe2549df64aea95e01b4f7b7ef8
[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 _0x7b58=['lodash','util','exports','name','STRING','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize'];(function(_0x16700a,_0x1e7012){var _0x19c7ce=function(_0x190f98){while(--_0x190f98){_0x16700a['push'](_0x16700a['shift']());}};_0x19c7ce(++_0x1e7012);}(_0x7b58,0xb3));var _0x87b5=function(_0x162f4b,_0x31b569){_0x162f4b=_0x162f4b-0x0;var _0x57b00b=_0x7b58[_0x162f4b];return _0x57b00b;};'use strict';var Sequelize=require(_0x87b5('0x0'));var _=require(_0x87b5('0x1'));var util=require(_0x87b5('0x2'));module[_0x87b5('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x87b5('0x4')},'description':{'type':Sequelize[_0x87b5('0x5')]},'formData':{'type':Sequelize[_0x87b5('0x6')](_0x87b5('0x7')),'set':function(_0x5dbcfc){if(_[_0x87b5('0x8')](_0x5dbcfc)){this[_0x87b5('0x9')](_0x87b5('0xa'),JSON[_0x87b5('0xb')](_0x5dbcfc));}else if(_[_0x87b5('0xc')](_0x5dbcfc)){this[_0x87b5('0x9')]('formData',_0x5dbcfc);}else{this[_0x87b5('0x9')](_0x87b5('0xa'),util[_0x87b5('0xd')](_0x87b5('0xe'),this[_0x87b5('0xf')](_0x87b5('0x4'))||'',this['getDataValue'](_0x87b5('0x10'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x87b5('0x11')],'defaultValue':![]}};