adfd7fa76b890cfe7fd2f1d401292f8ba658b55f
[motion2.git] / server / api / cmCustomField / cmCustomField.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 _0x8dfa=['ENUM','voice','sequelize','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','select','parse','values','isArray','stringify','BOOLEAN'];(function(_0x193ee5,_0x53ac79){var _0x21efd2=function(_0x5e255d){while(--_0x5e255d){_0x193ee5['push'](_0x193ee5['shift']());}};_0x21efd2(++_0x53ac79);}(_0x8dfa,0x178));var _0xa8df=function(_0x3d80ae,_0x115102){_0x3d80ae=_0x3d80ae-0x0;var _0x5be6cc=_0x8dfa[_0x3d80ae];return _0x5be6cc;};'use strict';var Sequelize=require(_0xa8df('0x0'));var _=require('lodash');module['exports']={'name':{'type':Sequelize[_0xa8df('0x1')],'get':function(_0xa757d5){return this[_0xa8df('0x2')](_0xa8df('0x3'));}},'alias':{'type':Sequelize[_0xa8df('0x4')],'allowNull':![],'set':function(_0x5e9075){this[_0xa8df('0x5')](_0xa8df('0x3'),_0x5e9075?_0x5e9075:this[_0xa8df('0x2')](_0xa8df('0x6')));}},'type':{'type':Sequelize[_0xa8df('0x4')],'allowNull':![]},'values':{'type':Sequelize[_0xa8df('0x7')](_0xa8df('0x8')),'get':function(){if(this[_0xa8df('0x2')]('type')===_0xa8df('0x9')){return JSON[_0xa8df('0xa')](this[_0xa8df('0x2')](_0xa8df('0xb')));}else{return this[_0xa8df('0x2')](_0xa8df('0xb'));}},'set':function(_0x48be9c){if(Array[_0xa8df('0xc')](_0x48be9c)){this[_0xa8df('0x5')](_0xa8df('0xb'),JSON[_0xa8df('0xd')](_0x48be9c));}else{this['setDataValue'](_0xa8df('0xb'),_0x48be9c);}}},'required':{'type':Sequelize[_0xa8df('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xa8df('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xa8df('0xf')](_0xa8df('0x10'))}};