971289af0cbe81b59e9cec6b4e4b945dd05f6e03
[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 _0xa5fa=['name','description','BOOLEAN','sequelize','lodash','util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue'];(function(_0x16144d,_0x2b6a25){var _0x14cc94=function(_0x53a79b){while(--_0x53a79b){_0x16144d['push'](_0x16144d['shift']());}};_0x14cc94(++_0x2b6a25);}(_0xa5fa,0x1a1));var _0xaa5f=function(_0x4ea44b,_0x546b89){_0x4ea44b=_0x4ea44b-0x0;var _0x418cc9=_0xa5fa[_0x4ea44b];return _0x418cc9;};'use strict';var Sequelize=require(_0xaa5f('0x0'));var _=require(_0xaa5f('0x1'));var util=require(_0xaa5f('0x2'));module[_0xaa5f('0x3')]={'name':{'type':Sequelize[_0xaa5f('0x4')],'unique':'name'},'description':{'type':Sequelize[_0xaa5f('0x4')]},'formData':{'type':Sequelize[_0xaa5f('0x5')](_0xaa5f('0x6')),'set':function(_0xa53e1e){if(_[_0xaa5f('0x7')](_0xa53e1e)){this[_0xaa5f('0x8')](_0xaa5f('0x9'),JSON[_0xaa5f('0xa')](_0xa53e1e));}else if(_[_0xaa5f('0xb')](_0xa53e1e)){this[_0xaa5f('0x8')]('formData',_0xa53e1e);}else{this['setDataValue'](_0xaa5f('0x9'),util[_0xaa5f('0xc')](_0xaa5f('0xd'),this[_0xaa5f('0xe')](_0xaa5f('0xf'))||'',this['getDataValue'](_0xaa5f('0x10'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xaa5f('0x11')],'defaultValue':![]}};