Built motion from commit 85328c08.|2.5.50
[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 _0xc6ce=['isObjectLike','setDataValue','formData','stringify','isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','STRING','name','TEXT','long'];(function(_0x6369c0,_0xddda65){var _0x439f90=function(_0x334a5c){while(--_0x334a5c){_0x6369c0['push'](_0x6369c0['shift']());}};_0x439f90(++_0xddda65);}(_0xc6ce,0x15d));var _0xec6c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc6ce[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0xec6c('0x0'));var _=require(_0xec6c('0x1'));var util=require(_0xec6c('0x2'));module[_0xec6c('0x3')]={'name':{'type':Sequelize[_0xec6c('0x4')],'unique':_0xec6c('0x5')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xec6c('0x6')](_0xec6c('0x7')),'set':function(_0x3c115b){if(_[_0xec6c('0x8')](_0x3c115b)){this[_0xec6c('0x9')](_0xec6c('0xa'),JSON[_0xec6c('0xb')](_0x3c115b));}else if(_[_0xec6c('0xc')](_0x3c115b)){this['setDataValue']('formData',_0x3c115b);}else{this[_0xec6c('0x9')](_0xec6c('0xa'),util['format'](_0xec6c('0xd'),this['getDataValue']('name')||'',this[_0xec6c('0xe')](_0xec6c('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xec6c('0x10')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xec6c('0x10')],'defaultValue':![]}};