3fd76cd5acacb27de5e8aac210f2eb7c5860e470
[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 _0x3eaf=['BOOLEAN','lodash','util','exports','STRING','name','TEXT','long','isObjectLike','formData','stringify','isString','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description'];(function(_0x4bb09b,_0x4523df){var _0x5e1a9a=function(_0x98351a){while(--_0x98351a){_0x4bb09b['push'](_0x4bb09b['shift']());}};_0x5e1a9a(++_0x4523df);}(_0x3eaf,0x141));var _0xf3ea=function(_0x193fb2,_0x158c51){_0x193fb2=_0x193fb2-0x0;var _0x347a30=_0x3eaf[_0x193fb2];return _0x347a30;};'use strict';var Sequelize=require('sequelize');var _=require(_0xf3ea('0x0'));var util=require(_0xf3ea('0x1'));module[_0xf3ea('0x2')]={'name':{'type':Sequelize[_0xf3ea('0x3')],'unique':_0xf3ea('0x4')},'description':{'type':Sequelize[_0xf3ea('0x3')]},'formData':{'type':Sequelize[_0xf3ea('0x5')](_0xf3ea('0x6')),'set':function(_0x24c96b){if(_[_0xf3ea('0x7')](_0x24c96b)){this['setDataValue'](_0xf3ea('0x8'),JSON[_0xf3ea('0x9')](_0x24c96b));}else if(_[_0xf3ea('0xa')](_0x24c96b)){this[_0xf3ea('0xb')](_0xf3ea('0x8'),_0x24c96b);}else{this[_0xf3ea('0xb')](_0xf3ea('0x8'),util[_0xf3ea('0xc')](_0xf3ea('0xd'),this['getDataValue']('name')||'',this['getDataValue'](_0xf3ea('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xf3ea('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};