2799a097f2b7285eb50f1674c9ada6630d924ba2
[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 _0x41fc=['isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','getDataValue','BOOLEAN','sequelize','util','STRING','setDataValue','formData'];(function(_0x40f154,_0x22a66d){var _0x3f900a=function(_0x4cf737){while(--_0x4cf737){_0x40f154['push'](_0x40f154['shift']());}};_0x3f900a(++_0x22a66d);}(_0x41fc,0x181));var _0xc41f=function(_0x36a260,_0x4566cf){_0x36a260=_0x36a260-0x0;var _0x261bb3=_0x41fc[_0x36a260];return _0x261bb3;};'use strict';var Sequelize=require(_0xc41f('0x0'));var _=require('lodash');var util=require(_0xc41f('0x1'));module['exports']={'name':{'type':Sequelize[_0xc41f('0x2')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x2f08bc){if(_['isObjectLike'](_0x2f08bc)){this[_0xc41f('0x3')](_0xc41f('0x4'),JSON['stringify'](_0x2f08bc));}else if(_[_0xc41f('0x5')](_0x2f08bc)){this[_0xc41f('0x3')](_0xc41f('0x4'),_0x2f08bc);}else{this[_0xc41f('0x3')]('formData',util['format'](_0xc41f('0x6'),this['getDataValue'](_0xc41f('0x7'))||'',this[_0xc41f('0x8')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xc41f('0x9')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xc41f('0x9')],'defaultValue':![]}};