4400fa75f735582cfeb6b7ae0f576a45b1e3429a
[motion2.git] / server / api / cmContact / cmContact.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 _0x3d62=['DATE','NOW','exports','STRING','TEXT','INTEGER','UNSIGNED'];(function(_0x18a4b6,_0x105565){var _0x5a972c=function(_0x1f2d37){while(--_0x1f2d37){_0x18a4b6['push'](_0x18a4b6['shift']());}};_0x5a972c(++_0x105565);}(_0x3d62,0x128));var _0x23d6=function(_0x4c9885,_0x3a60d3){_0x4c9885=_0x4c9885-0x0;var _0x1f5e5d=_0x3d62[_0x4c9885];return _0x1f5e5d;};'use strict';var _=require('lodash');var Sequelize=require('sequelize');module[_0x23d6('0x0')]={'firstName':{'type':Sequelize[_0x23d6('0x1')],'allowNull':![]},'lastName':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x23d6('0x1')]},'postalCode':{'type':Sequelize[_0x23d6('0x1')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x23d6('0x1')]},'dateOfBirth':{'type':Sequelize[_0x23d6('0x1')]},'description':{'type':Sequelize[_0x23d6('0x2')]},'phone':{'type':Sequelize[_0x23d6('0x1')]},'mobile':{'type':Sequelize[_0x23d6('0x1')]},'fax':{'type':Sequelize[_0x23d6('0x1')]},'email':{'type':Sequelize['STRING']},'url':{'type':Sequelize['STRING']},'facebook':{'type':Sequelize[_0x23d6('0x1')]},'fb_data':{'type':Sequelize['STRING']},'twitter':{'type':Sequelize['STRING']},'skype':{'type':Sequelize[_0x23d6('0x1')]},'teams':{'type':Sequelize[_0x23d6('0x1')]},'viber':{'type':Sequelize[_0x23d6('0x1')]},'line':{'type':Sequelize[_0x23d6('0x1')]},'wechat':{'type':Sequelize['STRING']},'telegram':{'type':Sequelize[_0x23d6('0x1')]},'UserId':{'type':Sequelize[_0x23d6('0x3')]},'priority':{'type':Sequelize[_0x23d6('0x3')](0x2)[_0x23d6('0x4')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x23d6('0x5')],'defaultValue':Sequelize[_0x23d6('0x6')]}};