ae623eca323d60c4282be1bef22bc329c25ffafc
[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 _0xea78=['TEXT','formData','stringify','isString','setDataValue','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','lodash','exports','name','STRING'];(function(_0x10259d,_0x1c3f7e){var _0x48c78e=function(_0x35669f){while(--_0x35669f){_0x10259d['push'](_0x10259d['shift']());}};_0x48c78e(++_0x1c3f7e);}(_0xea78,0xd8));var _0x8ea7=function(_0x872b02,_0x4f4458){_0x872b02=_0x872b02-0x0;var _0x1a6b24=_0xea78[_0x872b02];return _0x1a6b24;};'use strict';var Sequelize=require(_0x8ea7('0x0'));var _=require(_0x8ea7('0x1'));var util=require('util');module[_0x8ea7('0x2')]={'name':{'type':Sequelize['STRING'],'unique':_0x8ea7('0x3')},'description':{'type':Sequelize[_0x8ea7('0x4')]},'formData':{'type':Sequelize[_0x8ea7('0x5')]('long'),'set':function(_0x2d6ff4){if(_['isObjectLike'](_0x2d6ff4)){this['setDataValue'](_0x8ea7('0x6'),JSON[_0x8ea7('0x7')](_0x2d6ff4));}else if(_[_0x8ea7('0x8')](_0x2d6ff4)){this[_0x8ea7('0x9')](_0x8ea7('0x6'),_0x2d6ff4);}else{this[_0x8ea7('0x9')](_0x8ea7('0x6'),util['format'](_0x8ea7('0xa'),this['getDataValue'](_0x8ea7('0x3'))||'',this[_0x8ea7('0xb')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8ea7('0xc')],'defaultValue':![]}};