67da638d5bcec3f1e2f19e8e51d0888b61b9897a
[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 _0xc479=['description','BOOLEAN','sequelize','util','exports','STRING','name','long','isObjectLike','setDataValue','formData','stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue'];(function(_0x1db6ac,_0x491794){var _0x321be1=function(_0xc90d1a){while(--_0xc90d1a){_0x1db6ac['push'](_0x1db6ac['shift']());}};_0x321be1(++_0x491794);}(_0xc479,0x89));var _0x9c47=function(_0x2715b5,_0xdc645f){_0x2715b5=_0x2715b5-0x0;var _0x114369=_0xc479[_0x2715b5];return _0x114369;};'use strict';var Sequelize=require(_0x9c47('0x0'));var _=require('lodash');var util=require(_0x9c47('0x1'));module[_0x9c47('0x2')]={'name':{'type':Sequelize[_0x9c47('0x3')],'unique':_0x9c47('0x4')},'description':{'type':Sequelize[_0x9c47('0x3')]},'formData':{'type':Sequelize['TEXT'](_0x9c47('0x5')),'set':function(_0x4dbeca){if(_[_0x9c47('0x6')](_0x4dbeca)){this[_0x9c47('0x7')](_0x9c47('0x8'),JSON[_0x9c47('0x9')](_0x4dbeca));}else if(_['isString'](_0x4dbeca)){this[_0x9c47('0x7')](_0x9c47('0x8'),_0x4dbeca);}else{this[_0x9c47('0x7')](_0x9c47('0x8'),util[_0x9c47('0xa')](_0x9c47('0xb'),this[_0x9c47('0xc')](_0x9c47('0x4'))||'',this['getDataValue'](_0x9c47('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x9c47('0xe')],'defaultValue':![]}};