5beff5344c0b13b7171be2ac9affbb947546b5ca
[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 _0xfb2e=['stringify','isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','description','BOOLEAN','sequelize','lodash','exports','STRING','TEXT','long','setDataValue','formData'];(function(_0x4b1032,_0x36952e){var _0x5a1d55=function(_0x282e9b){while(--_0x282e9b){_0x4b1032['push'](_0x4b1032['shift']());}};_0x5a1d55(++_0x36952e);}(_0xfb2e,0x19c));var _0xefb2=function(_0x2763f2,_0x416af8){_0x2763f2=_0x2763f2-0x0;var _0x3ef471=_0xfb2e[_0x2763f2];return _0x3ef471;};'use strict';var Sequelize=require(_0xefb2('0x0'));var _=require(_0xefb2('0x1'));var util=require('util');module[_0xefb2('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0xefb2('0x3')]},'formData':{'type':Sequelize[_0xefb2('0x4')](_0xefb2('0x5')),'set':function(_0x456366){if(_['isObjectLike'](_0x456366)){this[_0xefb2('0x6')](_0xefb2('0x7'),JSON[_0xefb2('0x8')](_0x456366));}else if(_[_0xefb2('0x9')](_0x456366)){this[_0xefb2('0x6')](_0xefb2('0x7'),_0x456366);}else{this[_0xefb2('0x6')](_0xefb2('0x7'),util['format'](_0xefb2('0xa'),this['getDataValue'](_0xefb2('0xb'))||'',this['getDataValue'](_0xefb2('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xefb2('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xefb2('0xd')],'defaultValue':![]}};