Built motion from commit a679711e.|2.6.15
[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 _0x8f59=['name','description','BOOLEAN','sequelize','lodash','util','STRING','long','isObjectLike','setDataValue','formData','stringify','isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue'];(function(_0x20e283,_0x2b5a6e){var _0x199e10=function(_0xaccd3a){while(--_0xaccd3a){_0x20e283['push'](_0x20e283['shift']());}};_0x199e10(++_0x2b5a6e);}(_0x8f59,0xa8));var _0x98f5=function(_0x27c25f,_0x4ff5fe){_0x27c25f=_0x27c25f-0x0;var _0x2da4c4=_0x8f59[_0x27c25f];return _0x2da4c4;};'use strict';var Sequelize=require(_0x98f5('0x0'));var _=require(_0x98f5('0x1'));var util=require(_0x98f5('0x2'));module['exports']={'name':{'type':Sequelize[_0x98f5('0x3')],'unique':'name'},'description':{'type':Sequelize[_0x98f5('0x3')]},'formData':{'type':Sequelize['TEXT'](_0x98f5('0x4')),'set':function(_0x23d2b8){if(_[_0x98f5('0x5')](_0x23d2b8)){this[_0x98f5('0x6')](_0x98f5('0x7'),JSON[_0x98f5('0x8')](_0x23d2b8));}else if(_[_0x98f5('0x9')](_0x23d2b8)){this[_0x98f5('0x6')](_0x98f5('0x7'),_0x23d2b8);}else{this[_0x98f5('0x6')]('formData',util['format'](_0x98f5('0xa'),this[_0x98f5('0xb')](_0x98f5('0xc'))||'',this[_0x98f5('0xb')](_0x98f5('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x98f5('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x98f5('0xe')],'defaultValue':![]}};