Built motion from commit (unavailable).|2.5.4
[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 _0x4bc0=['isString','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','name','STRING','isObjectLike','setDataValue','formData'];(function(_0x39ae21,_0x1ffcde){var _0x47d8f2=function(_0x2d6729){while(--_0x2d6729){_0x39ae21['push'](_0x39ae21['shift']());}};_0x47d8f2(++_0x1ffcde);}(_0x4bc0,0x115));var _0x04bc=function(_0x460f40,_0x1149a4){_0x460f40=_0x460f40-0x0;var _0x3c0ac8=_0x4bc0[_0x460f40];return _0x3c0ac8;};'use strict';var Sequelize=require(_0x04bc('0x0'));var _=require(_0x04bc('0x1'));var util=require(_0x04bc('0x2'));module[_0x04bc('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x04bc('0x4')},'description':{'type':Sequelize[_0x04bc('0x5')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x2d54cc){if(_[_0x04bc('0x6')](_0x2d54cc)){this[_0x04bc('0x7')](_0x04bc('0x8'),JSON['stringify'](_0x2d54cc));}else if(_[_0x04bc('0x9')](_0x2d54cc)){this[_0x04bc('0x7')](_0x04bc('0x8'),_0x2d54cc);}else{this[_0x04bc('0x7')]('formData',util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x04bc('0xa')](_0x04bc('0x4'))||'',this[_0x04bc('0xa')](_0x04bc('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x04bc('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x04bc('0xc')],'defaultValue':![]}};