03b3231e8c12a6ccbd426be5092762f0f57b051c
[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 _0x91dc=['util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','getDataValue','description','BOOLEAN','lodash'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x91dc,0x10f));var _0xc91d=function(_0x44365f,_0xe945d0){_0x44365f=_0x44365f-0x0;var _0x48ce0f=_0x91dc[_0x44365f];return _0x48ce0f;};'use strict';var Sequelize=require('sequelize');var _=require(_0xc91d('0x0'));var util=require(_0xc91d('0x1'));module[_0xc91d('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize[_0xc91d('0x3')]},'formData':{'type':Sequelize[_0xc91d('0x4')](_0xc91d('0x5')),'set':function(_0x467ba0){if(_[_0xc91d('0x6')](_0x467ba0)){this[_0xc91d('0x7')](_0xc91d('0x8'),JSON[_0xc91d('0x9')](_0x467ba0));}else if(_[_0xc91d('0xa')](_0x467ba0)){this['setDataValue']('formData',_0x467ba0);}else{this['setDataValue'](_0xc91d('0x8'),util[_0xc91d('0xb')](_0xc91d('0xc'),this['getDataValue'](_0xc91d('0xd'))||'',this[_0xc91d('0xe')](_0xc91d('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xc91d('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};