0b22cf82ecfbd97dc597a67d6f2d68c1e33cdb83
[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 _0x620b=['setDataValue','formData','stringify','isString','format','BOOLEAN','lodash','util','STRING','TEXT'];(function(_0x47fb14,_0x182dcb){var _0x3e7cc5=function(_0x3c1c76){while(--_0x3c1c76){_0x47fb14['push'](_0x47fb14['shift']());}};_0x3e7cc5(++_0x182dcb);}(_0x620b,0x1dc));var _0xb620=function(_0x20ccf8,_0x130b88){_0x20ccf8=_0x20ccf8-0x0;var _0x13950a=_0x620b[_0x20ccf8];return _0x13950a;};'use strict';var Sequelize=require('sequelize');var _=require(_0xb620('0x0'));var util=require(_0xb620('0x1'));module['exports']={'name':{'type':Sequelize[_0xb620('0x2')],'unique':'name'},'description':{'type':Sequelize[_0xb620('0x2')]},'formData':{'type':Sequelize[_0xb620('0x3')]('long'),'set':function(_0x37bbaa){if(_['isObjectLike'](_0x37bbaa)){this[_0xb620('0x4')](_0xb620('0x5'),JSON[_0xb620('0x6')](_0x37bbaa));}else if(_[_0xb620('0x7')](_0x37bbaa)){this[_0xb620('0x4')](_0xb620('0x5'),_0x37bbaa);}else{this['setDataValue'](_0xb620('0x5'),util[_0xb620('0x8')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this['getDataValue']('name')||'',this['getDataValue']('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xb620('0x9')],'defaultValue':![]}};