c1af63507d21b65a9f0416bf69e07ee588db35f2
[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 _0x317f=['BOOLEAN','sequelize','util','exports','STRING','name','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description'];(function(_0x18f830,_0x3b7361){var _0x5df489=function(_0x1cf389){while(--_0x1cf389){_0x18f830['push'](_0x18f830['shift']());}};_0x5df489(++_0x3b7361);}(_0x317f,0x1a1));var _0xf317=function(_0x2e40bc,_0x30a94d){_0x2e40bc=_0x2e40bc-0x0;var _0x32b73e=_0x317f[_0x2e40bc];return _0x32b73e;};'use strict';var Sequelize=require(_0xf317('0x0'));var _=require('lodash');var util=require(_0xf317('0x1'));module[_0xf317('0x2')]={'name':{'type':Sequelize[_0xf317('0x3')],'unique':_0xf317('0x4')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xf317('0x5')](_0xf317('0x6')),'set':function(_0x13af84){if(_[_0xf317('0x7')](_0x13af84)){this[_0xf317('0x8')](_0xf317('0x9'),JSON[_0xf317('0xa')](_0x13af84));}else if(_[_0xf317('0xb')](_0x13af84)){this[_0xf317('0x8')](_0xf317('0x9'),_0x13af84);}else{this[_0xf317('0x8')](_0xf317('0x9'),util[_0xf317('0xc')](_0xf317('0xd'),this['getDataValue']('name')||'',this['getDataValue'](_0xf317('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xf317('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xf317('0xf')],'defaultValue':![]}};