38448ed9b890a561d301eb7db7a13e0db88436ed
[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 _0x16fd=['TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description','lodash','util','STRING','name'];(function(_0x21d0e6,_0x5a7aa6){var _0x1cc2d1=function(_0x25ded8){while(--_0x25ded8){_0x21d0e6['push'](_0x21d0e6['shift']());}};_0x1cc2d1(++_0x5a7aa6);}(_0x16fd,0x114));var _0xd16f=function(_0x92c450,_0x41f1e3){_0x92c450=_0x92c450-0x0;var _0x2a9599=_0x16fd[_0x92c450];return _0x2a9599;};'use strict';var Sequelize=require('sequelize');var _=require(_0xd16f('0x0'));var util=require(_0xd16f('0x1'));module['exports']={'name':{'type':Sequelize[_0xd16f('0x2')],'unique':_0xd16f('0x3')},'description':{'type':Sequelize[_0xd16f('0x2')]},'formData':{'type':Sequelize[_0xd16f('0x4')](_0xd16f('0x5')),'set':function(_0x227935){if(_[_0xd16f('0x6')](_0x227935)){this[_0xd16f('0x7')](_0xd16f('0x8'),JSON[_0xd16f('0x9')](_0x227935));}else if(_[_0xd16f('0xa')](_0x227935)){this[_0xd16f('0x7')](_0xd16f('0x8'),_0x227935);}else{this[_0xd16f('0x7')](_0xd16f('0x8'),util[_0xd16f('0xb')](_0xd16f('0xc'),this['getDataValue']('name')||'',this['getDataValue'](_0xd16f('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};