Built motion from commit f7863d46.|2.5.41
[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 _0x60dd=['getDataValue','description','util','exports','STRING','name','TEXT','long','isObjectLike','setDataValue','formData','stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x2ccd22,_0x15b226){var _0x2d219a=function(_0xad97a4){while(--_0xad97a4){_0x2ccd22['push'](_0x2ccd22['shift']());}};_0x2d219a(++_0x15b226);}(_0x60dd,0x72));var _0xd60d=function(_0x43dbcd,_0x464327){_0x43dbcd=_0x43dbcd-0x0;var _0x1cc8f3=_0x60dd[_0x43dbcd];return _0x1cc8f3;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');var util=require(_0xd60d('0x0'));module[_0xd60d('0x1')]={'name':{'type':Sequelize[_0xd60d('0x2')],'unique':_0xd60d('0x3')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xd60d('0x4')](_0xd60d('0x5')),'set':function(_0x49c0aa){if(_[_0xd60d('0x6')](_0x49c0aa)){this[_0xd60d('0x7')](_0xd60d('0x8'),JSON[_0xd60d('0x9')](_0x49c0aa));}else if(_['isString'](_0x49c0aa)){this['setDataValue']('formData',_0x49c0aa);}else{this[_0xd60d('0x7')]('formData',util[_0xd60d('0xa')](_0xd60d('0xb'),this[_0xd60d('0xc')](_0xd60d('0x3'))||'',this[_0xd60d('0xc')](_0xd60d('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};