3ab764b9c032e9cbb902866a1bf0f06cc080a8d5
[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 _0xf41d=['isObjectLike','setDataValue','stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','getDataValue','description','sequelize','lodash','exports','STRING','long'];(function(_0x262681,_0x3fe79f){var _0x4ebbf9=function(_0x4b51b4){while(--_0x4b51b4){_0x262681['push'](_0x262681['shift']());}};_0x4ebbf9(++_0x3fe79f);}(_0xf41d,0xaf));var _0xdf41=function(_0x2fcc5c,_0x8cbf34){_0x2fcc5c=_0x2fcc5c-0x0;var _0x3ca488=_0xf41d[_0x2fcc5c];return _0x3ca488;};'use strict';var Sequelize=require(_0xdf41('0x0'));var _=require(_0xdf41('0x1'));var util=require('util');module[_0xdf41('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0xdf41('0x3')]},'formData':{'type':Sequelize['TEXT'](_0xdf41('0x4')),'set':function(_0xcea406){if(_[_0xdf41('0x5')](_0xcea406)){this[_0xdf41('0x6')]('formData',JSON[_0xdf41('0x7')](_0xcea406));}else if(_[_0xdf41('0x8')](_0xcea406)){this['setDataValue'](_0xdf41('0x9'),_0xcea406);}else{this[_0xdf41('0x6')](_0xdf41('0x9'),util[_0xdf41('0xa')](_0xdf41('0xb'),this['getDataValue'](_0xdf41('0xc'))||'',this[_0xdf41('0xd')](_0xdf41('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};