6e66809fb4023d36f5791b4b4aeb7e7317a8f4ca
[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 _0x3c80=['isObjectLike','formData','stringify','isString','setDataValue','format','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','exports','STRING','TEXT','long'];(function(_0x26f702,_0x3919bf){var _0x11417d=function(_0x1aa3e8){while(--_0x1aa3e8){_0x26f702['push'](_0x26f702['shift']());}};_0x11417d(++_0x3919bf);}(_0x3c80,0x1d5));var _0x03c8=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x3c80[_0x397e5f];return _0x5302b8;};'use strict';var Sequelize=require(_0x03c8('0x0'));var _=require(_0x03c8('0x1'));var util=require(_0x03c8('0x2'));module[_0x03c8('0x3')]={'name':{'type':Sequelize[_0x03c8('0x4')],'unique':'name'},'description':{'type':Sequelize[_0x03c8('0x4')]},'formData':{'type':Sequelize[_0x03c8('0x5')](_0x03c8('0x6')),'set':function(_0x2db786){if(_[_0x03c8('0x7')](_0x2db786)){this['setDataValue'](_0x03c8('0x8'),JSON[_0x03c8('0x9')](_0x2db786));}else if(_[_0x03c8('0xa')](_0x2db786)){this['setDataValue']('formData',_0x2db786);}else{this[_0x03c8('0xb')](_0x03c8('0x8'),util[_0x03c8('0xc')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x03c8('0xd')](_0x03c8('0xe'))||'',this[_0x03c8('0xd')](_0x03c8('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x03c8('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};