dd7d2fa9c5954a85c78fd9b8abd6e9eef4d80ac7
[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 _0x8145=['lodash','util','exports','STRING','name','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize'];(function(_0x36da61,_0x1f2051){var _0x3333fd=function(_0x43cbf3){while(--_0x43cbf3){_0x36da61['push'](_0x36da61['shift']());}};_0x3333fd(++_0x1f2051);}(_0x8145,0x19d));var _0x5814=function(_0x33ceeb,_0x58b863){_0x33ceeb=_0x33ceeb-0x0;var _0x5b6556=_0x8145[_0x33ceeb];return _0x5b6556;};'use strict';var Sequelize=require(_0x5814('0x0'));var _=require(_0x5814('0x1'));var util=require(_0x5814('0x2'));module[_0x5814('0x3')]={'name':{'type':Sequelize[_0x5814('0x4')],'unique':_0x5814('0x5')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x5814('0x6')](_0x5814('0x7')),'set':function(_0xea42aa){if(_[_0x5814('0x8')](_0xea42aa)){this[_0x5814('0x9')](_0x5814('0xa'),JSON[_0x5814('0xb')](_0xea42aa));}else if(_[_0x5814('0xc')](_0xea42aa)){this[_0x5814('0x9')](_0x5814('0xa'),_0xea42aa);}else{this['setDataValue']('formData',util[_0x5814('0xd')](_0x5814('0xe'),this['getDataValue'](_0x5814('0x5'))||'',this[_0x5814('0xf')](_0x5814('0x10'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x5814('0x11')],'defaultValue':![]}};