3dc876509f7e92b41286f7c103662ef44c0fae3b
[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 _0x1dbd=['setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','lodash','util','STRING','name','long','isObjectLike'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1dbd,0xaf));var _0xd1db=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1dbd[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0xd1db('0x0'));var _=require(_0xd1db('0x1'));var util=require(_0xd1db('0x2'));module['exports']={'name':{'type':Sequelize[_0xd1db('0x3')],'unique':_0xd1db('0x4')},'description':{'type':Sequelize[_0xd1db('0x3')]},'formData':{'type':Sequelize['TEXT'](_0xd1db('0x5')),'set':function(_0x416d62){if(_[_0xd1db('0x6')](_0x416d62)){this[_0xd1db('0x7')](_0xd1db('0x8'),JSON['stringify'](_0x416d62));}else if(_['isString'](_0x416d62)){this[_0xd1db('0x7')](_0xd1db('0x8'),_0x416d62);}else{this['setDataValue'](_0xd1db('0x8'),util[_0xd1db('0x9')](_0xd1db('0xa'),this[_0xd1db('0xb')](_0xd1db('0x4'))||'',this['getDataValue'](_0xd1db('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xd1db('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xd1db('0xd')],'defaultValue':![]}};