5c37764c5cde57225c4e4172d02b9654f824635c
[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 _0xf548=['isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','STRING','TEXT','isObjectLike','setDataValue','formData','stringify'];(function(_0x50e0b4,_0x1057f7){var _0x2fa8b0=function(_0x3766bc){while(--_0x3766bc){_0x50e0b4['push'](_0x50e0b4['shift']());}};_0x2fa8b0(++_0x1057f7);}(_0xf548,0x17d));var _0x8f54=function(_0x119280,_0x439c3e){_0x119280=_0x119280-0x0;var _0x481797=_0xf548[_0x119280];return _0x481797;};'use strict';var Sequelize=require(_0x8f54('0x0'));var _=require(_0x8f54('0x1'));var util=require(_0x8f54('0x2'));module['exports']={'name':{'type':Sequelize[_0x8f54('0x3')],'unique':'name'},'description':{'type':Sequelize[_0x8f54('0x3')]},'formData':{'type':Sequelize[_0x8f54('0x4')]('long'),'set':function(_0x386d70){if(_[_0x8f54('0x5')](_0x386d70)){this[_0x8f54('0x6')](_0x8f54('0x7'),JSON[_0x8f54('0x8')](_0x386d70));}else if(_[_0x8f54('0x9')](_0x386d70)){this['setDataValue']('formData',_0x386d70);}else{this['setDataValue']('formData',util['format'](_0x8f54('0xa'),this[_0x8f54('0xb')](_0x8f54('0xc'))||'',this[_0x8f54('0xb')](_0x8f54('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8f54('0xe')],'defaultValue':![]}};