Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / intVtigerField / intVtigerField.model.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 _0xe979=['vtiger_unique_index','idField','util','request-promise','path','./intVtigerField.attributes','define','VtigerField','int_vtiger_fields'];(function(_0x1edf2f,_0x4c8248){var _0x1fa04a=function(_0x33f3c2){while(--_0x33f3c2){_0x1edf2f['push'](_0x1edf2f['shift']());}};_0x1fa04a(++_0x4c8248);}(_0xe979,0xe3));var _0x9e97=function(_0x4f70a0,_0x4423d1){_0x4f70a0=_0x4f70a0-0x0;var _0x2b6fea=_0xe979[_0x4f70a0];return _0x2b6fea;};'use strict';var _=require('lodash');var util=require(_0x9e97('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x9e97('0x1'));var fs=require('fs');var path=require(_0x9e97('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x9e97('0x3'));module['exports']=function(_0x496096,_0x350e1e){return _0x496096[_0x9e97('0x4')](_0x9e97('0x5'),attributes,{'tableName':_0x9e97('0x6'),'paranoid':![],'indexes':[{'name':_0x9e97('0x7'),'fields':[_0x9e97('0x8'),'FieldId'],'unique':!![]}],'timestamps':!![]});};