facb9ff5b1f5b3713ee3c344d918cd528ea0279a
[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 _0xca2a=['name','TEXT','long','isObjectLike','setDataValue','stringify','isString','formData','format','getDataValue','description','BOOLEAN','lodash','util','STRING'];(function(_0x4079e1,_0xeba708){var _0x14c475=function(_0x5ab4f2){while(--_0x5ab4f2){_0x4079e1['push'](_0x4079e1['shift']());}};_0x14c475(++_0xeba708);}(_0xca2a,0x1ce));var _0xaca2=function(_0x1ba263,_0x40c06b){_0x1ba263=_0x1ba263-0x0;var _0x3ac43a=_0xca2a[_0x1ba263];return _0x3ac43a;};'use strict';var Sequelize=require('sequelize');var _=require(_0xaca2('0x0'));var util=require(_0xaca2('0x1'));module['exports']={'name':{'type':Sequelize[_0xaca2('0x2')],'unique':_0xaca2('0x3')},'description':{'type':Sequelize[_0xaca2('0x2')]},'formData':{'type':Sequelize[_0xaca2('0x4')](_0xaca2('0x5')),'set':function(_0x21d88c){if(_[_0xaca2('0x6')](_0x21d88c)){this[_0xaca2('0x7')]('formData',JSON[_0xaca2('0x8')](_0x21d88c));}else if(_[_0xaca2('0x9')](_0x21d88c)){this[_0xaca2('0x7')](_0xaca2('0xa'),_0x21d88c);}else{this[_0xaca2('0x7')](_0xaca2('0xa'),util[_0xaca2('0xb')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xaca2('0xc')](_0xaca2('0x3'))||'',this['getDataValue'](_0xaca2('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xaca2('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xaca2('0xe')],'defaultValue':![]}};