Built motion from commit (unavailable).|2.5.14
[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 _0xd7ff=['sequelize','STRING','name','isObjectLike','stringify','setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN'];(function(_0x2b7764,_0x2606f1){var _0x848dcb=function(_0x1ae85b){while(--_0x1ae85b){_0x2b7764['push'](_0x2b7764['shift']());}};_0x848dcb(++_0x2606f1);}(_0xd7ff,0x1b0));var _0xfd7f=function(_0x3cb788,_0x414fc8){_0x3cb788=_0x3cb788-0x0;var _0x391a9d=_0xd7ff[_0x3cb788];return _0x391a9d;};'use strict';var Sequelize=require(_0xfd7f('0x0'));var _=require('lodash');var util=require('util');module['exports']={'name':{'type':Sequelize[_0xfd7f('0x1')],'unique':_0xfd7f('0x2')},'description':{'type':Sequelize[_0xfd7f('0x1')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x1f7929){if(_[_0xfd7f('0x3')](_0x1f7929)){this['setDataValue']('formData',JSON[_0xfd7f('0x4')](_0x1f7929));}else if(_['isString'](_0x1f7929)){this[_0xfd7f('0x5')](_0xfd7f('0x6'),_0x1f7929);}else{this[_0xfd7f('0x5')](_0xfd7f('0x6'),util[_0xfd7f('0x7')](_0xfd7f('0x8'),this[_0xfd7f('0x9')](_0xfd7f('0x2'))||'',this[_0xfd7f('0x9')](_0xfd7f('0xa'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xfd7f('0xb')],'defaultValue':![]}};