87d6e465aee5e7dd019991b12b1bfb2c05020646
[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 _0xac34=['getDataValue','description','BOOLEAN','sequelize','util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x491b42,_0x2afdae){var _0x3a1f2a=function(_0x2d8eac){while(--_0x2d8eac){_0x491b42['push'](_0x491b42['shift']());}};_0x3a1f2a(++_0x2afdae);}(_0xac34,0x153));var _0x4ac3=function(_0x5b2e80,_0x421736){_0x5b2e80=_0x5b2e80-0x0;var _0x479473=_0xac34[_0x5b2e80];return _0x479473;};'use strict';var Sequelize=require(_0x4ac3('0x0'));var _=require('lodash');var util=require(_0x4ac3('0x1'));module[_0x4ac3('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0x4ac3('0x3')]},'formData':{'type':Sequelize[_0x4ac3('0x4')](_0x4ac3('0x5')),'set':function(_0x379a03){if(_[_0x4ac3('0x6')](_0x379a03)){this[_0x4ac3('0x7')](_0x4ac3('0x8'),JSON[_0x4ac3('0x9')](_0x379a03));}else if(_[_0x4ac3('0xa')](_0x379a03)){this[_0x4ac3('0x7')](_0x4ac3('0x8'),_0x379a03);}else{this[_0x4ac3('0x7')](_0x4ac3('0x8'),util[_0x4ac3('0xb')](_0x4ac3('0xc'),this[_0x4ac3('0xd')]('name')||'',this[_0x4ac3('0xd')](_0x4ac3('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x4ac3('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x4ac3('0xf')],'defaultValue':![]}};