89b7f8acf5d3d3402e0340f8ff1f627577d19634
[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 _0xcd31=['TEXT','long','isObjectLike','setDataValue','formData','stringify','getDataValue','BOOLEAN','lodash','util','exports','STRING','name'];(function(_0x12e531,_0x32947e){var _0x584062=function(_0x18f1a9){while(--_0x18f1a9){_0x12e531['push'](_0x12e531['shift']());}};_0x584062(++_0x32947e);}(_0xcd31,0xb1));var _0x1cd3=function(_0x417f21,_0x3b5820){_0x417f21=_0x417f21-0x0;var _0x2e990c=_0xcd31[_0x417f21];return _0x2e990c;};'use strict';var Sequelize=require('sequelize');var _=require(_0x1cd3('0x0'));var util=require(_0x1cd3('0x1'));module[_0x1cd3('0x2')]={'name':{'type':Sequelize[_0x1cd3('0x3')],'unique':_0x1cd3('0x4')},'description':{'type':Sequelize[_0x1cd3('0x3')]},'formData':{'type':Sequelize[_0x1cd3('0x5')](_0x1cd3('0x6')),'set':function(_0x24dfad){if(_[_0x1cd3('0x7')](_0x24dfad)){this[_0x1cd3('0x8')](_0x1cd3('0x9'),JSON[_0x1cd3('0xa')](_0x24dfad));}else if(_['isString'](_0x24dfad)){this[_0x1cd3('0x8')]('formData',_0x24dfad);}else{this['setDataValue'](_0x1cd3('0x9'),util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x1cd3('0xb')](_0x1cd3('0x4'))||'',this['getDataValue']('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x1cd3('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x1cd3('0xc')],'defaultValue':![]}};