802b1d11169bf795f5a2183a9e78c3514de90fce
[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 _0x7ce1=['getDataValue','BOOLEAN','sequelize','lodash','util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format'];(function(_0x591925,_0x12ced1){var _0x52ab95=function(_0x44cff7){while(--_0x44cff7){_0x591925['push'](_0x591925['shift']());}};_0x52ab95(++_0x12ced1);}(_0x7ce1,0xa7));var _0x17ce=function(_0x37ae26,_0x2ecd70){_0x37ae26=_0x37ae26-0x0;var _0x1b1902=_0x7ce1[_0x37ae26];return _0x1b1902;};'use strict';var Sequelize=require(_0x17ce('0x0'));var _=require(_0x17ce('0x1'));var util=require(_0x17ce('0x2'));module[_0x17ce('0x3')]={'name':{'type':Sequelize[_0x17ce('0x4')],'unique':'name'},'description':{'type':Sequelize[_0x17ce('0x4')]},'formData':{'type':Sequelize[_0x17ce('0x5')](_0x17ce('0x6')),'set':function(_0x14a326){if(_[_0x17ce('0x7')](_0x14a326)){this[_0x17ce('0x8')](_0x17ce('0x9'),JSON[_0x17ce('0xa')](_0x14a326));}else if(_[_0x17ce('0xb')](_0x14a326)){this[_0x17ce('0x8')](_0x17ce('0x9'),_0x14a326);}else{this[_0x17ce('0x8')](_0x17ce('0x9'),util[_0x17ce('0xc')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x17ce('0xd')]('name')||'',this['getDataValue']('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x17ce('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};