85c4944579bcb277ef4115c71e97a10166850457
[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 _0x5f51=['STRING','name','long','isObjectLike','formData','isString','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','exports'];(function(_0x1c1518,_0x247a29){var _0x88f76f=function(_0x206576){while(--_0x206576){_0x1c1518['push'](_0x1c1518['shift']());}};_0x88f76f(++_0x247a29);}(_0x5f51,0x1ab));var _0x15f5=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x5f51[_0x1facfa];return _0x9ec701;};'use strict';var Sequelize=require(_0x15f5('0x0'));var _=require('lodash');var util=require('util');module[_0x15f5('0x1')]={'name':{'type':Sequelize[_0x15f5('0x2')],'unique':_0x15f5('0x3')},'description':{'type':Sequelize[_0x15f5('0x2')]},'formData':{'type':Sequelize['TEXT'](_0x15f5('0x4')),'set':function(_0x542670){if(_[_0x15f5('0x5')](_0x542670)){this['setDataValue'](_0x15f5('0x6'),JSON['stringify'](_0x542670));}else if(_[_0x15f5('0x7')](_0x542670)){this[_0x15f5('0x8')](_0x15f5('0x6'),_0x542670);}else{this['setDataValue']('formData',util[_0x15f5('0x9')](_0x15f5('0xa'),this[_0x15f5('0xb')](_0x15f5('0x3'))||'',this[_0x15f5('0xb')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x15f5('0xc')],'defaultValue':![]}};