17c36ddc576c3ac67ea574469fc955127247b6bb
[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 _0xa5e8=['format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','STRING','name','TEXT','isObjectLike','formData','stringify','isString','setDataValue'];(function(_0xc4d1c6,_0x4b6ee9){var _0xfd4b3b=function(_0x111b7a){while(--_0x111b7a){_0xc4d1c6['push'](_0xc4d1c6['shift']());}};_0xfd4b3b(++_0x4b6ee9);}(_0xa5e8,0x1e1));var _0x8a5e=function(_0x13fc2a,_0x505a7d){_0x13fc2a=_0x13fc2a-0x0;var _0x3fb4d6=_0xa5e8[_0x13fc2a];return _0x3fb4d6;};'use strict';var Sequelize=require(_0x8a5e('0x0'));var _=require(_0x8a5e('0x1'));var util=require(_0x8a5e('0x2'));module[_0x8a5e('0x3')]={'name':{'type':Sequelize[_0x8a5e('0x4')],'unique':_0x8a5e('0x5')},'description':{'type':Sequelize[_0x8a5e('0x4')]},'formData':{'type':Sequelize[_0x8a5e('0x6')]('long'),'set':function(_0x2108e9){if(_[_0x8a5e('0x7')](_0x2108e9)){this['setDataValue'](_0x8a5e('0x8'),JSON[_0x8a5e('0x9')](_0x2108e9));}else if(_[_0x8a5e('0xa')](_0x2108e9)){this[_0x8a5e('0xb')](_0x8a5e('0x8'),_0x2108e9);}else{this['setDataValue']('formData',util[_0x8a5e('0xc')](_0x8a5e('0xd'),this[_0x8a5e('0xe')](_0x8a5e('0x5'))||'',this[_0x8a5e('0xe')](_0x8a5e('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x8a5e('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8a5e('0x10')],'defaultValue':![]}};