7781602d80f466faee27c1d5d39c76944805973e
[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 _0x9208=['name','long','setDataValue','stringify','isString','formData','getDataValue','description','BOOLEAN','sequelize','lodash','exports','STRING'];(function(_0x28a392,_0x5dd781){var _0x563386=function(_0x19fb5e){while(--_0x19fb5e){_0x28a392['push'](_0x28a392['shift']());}};_0x563386(++_0x5dd781);}(_0x9208,0xe6));var _0x8920=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x9208[_0x20a584];return _0x4b41a8;};'use strict';var Sequelize=require(_0x8920('0x0'));var _=require(_0x8920('0x1'));var util=require('util');module[_0x8920('0x2')]={'name':{'type':Sequelize[_0x8920('0x3')],'unique':_0x8920('0x4')},'description':{'type':Sequelize[_0x8920('0x3')]},'formData':{'type':Sequelize['TEXT'](_0x8920('0x5')),'set':function(_0x3038ca){if(_['isObjectLike'](_0x3038ca)){this[_0x8920('0x6')]('formData',JSON[_0x8920('0x7')](_0x3038ca));}else if(_[_0x8920('0x8')](_0x3038ca)){this['setDataValue'](_0x8920('0x9'),_0x3038ca);}else{this['setDataValue'](_0x8920('0x9'),util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x8920('0xa')]('name')||'',this['getDataValue'](_0x8920('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x8920('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8920('0xc')],'defaultValue':![]}};