7da425ee99db30bff12bea4f70106bbdd1201d34
[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 _0xa076=['{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','util','exports','name','STRING','TEXT','long','setDataValue','formData','isString','format'];(function(_0x5df72b,_0x1acf00){var _0x189935=function(_0x5dcada){while(--_0x5dcada){_0x5df72b['push'](_0x5df72b['shift']());}};_0x189935(++_0x1acf00);}(_0xa076,0x19a));var _0x6a07=function(_0x52a4f2,_0x4925a4){_0x52a4f2=_0x52a4f2-0x0;var _0x5e7b15=_0xa076[_0x52a4f2];return _0x5e7b15;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');var util=require(_0x6a07('0x0'));module[_0x6a07('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0x6a07('0x2')},'description':{'type':Sequelize[_0x6a07('0x3')]},'formData':{'type':Sequelize[_0x6a07('0x4')](_0x6a07('0x5')),'set':function(_0x45cccc){if(_['isObjectLike'](_0x45cccc)){this[_0x6a07('0x6')](_0x6a07('0x7'),JSON['stringify'](_0x45cccc));}else if(_[_0x6a07('0x8')](_0x45cccc)){this[_0x6a07('0x6')]('formData',_0x45cccc);}else{this[_0x6a07('0x6')]('formData',util[_0x6a07('0x9')](_0x6a07('0xa'),this[_0x6a07('0xb')](_0x6a07('0x2'))||'',this['getDataValue'](_0x6a07('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x6a07('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};