Built motion from commit 753c950e.|2.5.42
[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 _0x3aca=['stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','sequelize','lodash','util','exports','STRING','name','TEXT','long','setDataValue'];(function(_0x28ddbc,_0x5a4535){var _0x14a00b=function(_0x2f1ad7){while(--_0x2f1ad7){_0x28ddbc['push'](_0x28ddbc['shift']());}};_0x14a00b(++_0x5a4535);}(_0x3aca,0x141));var _0xa3ac=function(_0xbeb808,_0x881ddf){_0xbeb808=_0xbeb808-0x0;var _0x5d6909=_0x3aca[_0xbeb808];return _0x5d6909;};'use strict';var Sequelize=require(_0xa3ac('0x0'));var _=require(_0xa3ac('0x1'));var util=require(_0xa3ac('0x2'));module[_0xa3ac('0x3')]={'name':{'type':Sequelize[_0xa3ac('0x4')],'unique':_0xa3ac('0x5')},'description':{'type':Sequelize[_0xa3ac('0x4')]},'formData':{'type':Sequelize[_0xa3ac('0x6')](_0xa3ac('0x7')),'set':function(_0x2b3888){if(_['isObjectLike'](_0x2b3888)){this[_0xa3ac('0x8')]('formData',JSON[_0xa3ac('0x9')](_0x2b3888));}else if(_[_0xa3ac('0xa')](_0x2b3888)){this[_0xa3ac('0x8')](_0xa3ac('0xb'),_0x2b3888);}else{this[_0xa3ac('0x8')](_0xa3ac('0xb'),util[_0xa3ac('0xc')](_0xa3ac('0xd'),this[_0xa3ac('0xe')](_0xa3ac('0x5'))||'',this[_0xa3ac('0xe')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};