245bae685fd3ed933e58fffc2c83dfc27c67d6ab
[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 _0x2f6c=['setDataValue','formData','stringify','isString','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','STRING','name','long'];(function(_0x3da904,_0x50d883){var _0x2fe771=function(_0x578f7e){while(--_0x578f7e){_0x3da904['push'](_0x3da904['shift']());}};_0x2fe771(++_0x50d883);}(_0x2f6c,0x103));var _0xc2f6=function(_0x2998db,_0x3424f1){_0x2998db=_0x2998db-0x0;var _0x115fea=_0x2f6c[_0x2998db];return _0x115fea;};'use strict';var Sequelize=require(_0xc2f6('0x0'));var _=require(_0xc2f6('0x1'));var util=require(_0xc2f6('0x2'));module[_0xc2f6('0x3')]={'name':{'type':Sequelize[_0xc2f6('0x4')],'unique':_0xc2f6('0x5')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT'](_0xc2f6('0x6')),'set':function(_0x315dc7){if(_['isObjectLike'](_0x315dc7)){this[_0xc2f6('0x7')](_0xc2f6('0x8'),JSON[_0xc2f6('0x9')](_0x315dc7));}else if(_[_0xc2f6('0xa')](_0x315dc7)){this[_0xc2f6('0x7')](_0xc2f6('0x8'),_0x315dc7);}else{this[_0xc2f6('0x7')](_0xc2f6('0x8'),util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xc2f6('0xb')]('name')||'',this[_0xc2f6('0xb')](_0xc2f6('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xc2f6('0xd')],'defaultValue':![]}};