Built motion from commit a61a4a20.|2.5.46
[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 _0xaf29=['TEXT','long','isObjectLike','setDataValue','stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','lodash','util','STRING','name'];(function(_0x3c0964,_0x48416f){var _0x44bb35=function(_0x63884c){while(--_0x63884c){_0x3c0964['push'](_0x3c0964['shift']());}};_0x44bb35(++_0x48416f);}(_0xaf29,0x65));var _0x9af2=function(_0x20c682,_0x5592cd){_0x20c682=_0x20c682-0x0;var _0x203846=_0xaf29[_0x20c682];return _0x203846;};'use strict';var Sequelize=require('sequelize');var _=require(_0x9af2('0x0'));var util=require(_0x9af2('0x1'));module['exports']={'name':{'type':Sequelize[_0x9af2('0x2')],'unique':_0x9af2('0x3')},'description':{'type':Sequelize[_0x9af2('0x2')]},'formData':{'type':Sequelize[_0x9af2('0x4')](_0x9af2('0x5')),'set':function(_0x12162d){if(_[_0x9af2('0x6')](_0x12162d)){this[_0x9af2('0x7')]('formData',JSON[_0x9af2('0x8')](_0x12162d));}else if(_[_0x9af2('0x9')](_0x12162d)){this[_0x9af2('0x7')](_0x9af2('0xa'),_0x12162d);}else{this['setDataValue'](_0x9af2('0xa'),util[_0x9af2('0xb')](_0x9af2('0xc'),this['getDataValue'](_0x9af2('0x3'))||'',this[_0x9af2('0xd')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x9af2('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x9af2('0xe')],'defaultValue':![]}};