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 _0x892d=['format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','lodash','util','STRING','TEXT','long','setDataValue','formData','stringify','isString'];(function(_0x1ce64b,_0x39f8c3){var _0x10cf3d=function(_0x372a7b){while(--_0x372a7b){_0x1ce64b['push'](_0x1ce64b['shift']());}};_0x10cf3d(++_0x39f8c3);}(_0x892d,0x16d));var _0xd892=function(_0x2fdaa5,_0x4c8149){_0x2fdaa5=_0x2fdaa5-0x0;var _0x34a511=_0x892d[_0x2fdaa5];return _0x34a511;};'use strict';var Sequelize=require(_0xd892('0x0'));var _=require(_0xd892('0x1'));var util=require(_0xd892('0x2'));module['exports']={'name':{'type':Sequelize[_0xd892('0x3')],'unique':'name'},'description':{'type':Sequelize[_0xd892('0x3')]},'formData':{'type':Sequelize[_0xd892('0x4')](_0xd892('0x5')),'set':function(_0x593b3b){if(_['isObjectLike'](_0x593b3b)){this[_0xd892('0x6')](_0xd892('0x7'),JSON[_0xd892('0x8')](_0x593b3b));}else if(_[_0xd892('0x9')](_0x593b3b)){this[_0xd892('0x6')](_0xd892('0x7'),_0x593b3b);}else{this['setDataValue'](_0xd892('0x7'),util[_0xd892('0xa')](_0xd892('0xb'),this['getDataValue']('name')||'',this[_0xd892('0xc')](_0xd892('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xd892('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xd892('0xe')],'defaultValue':![]}};