Built motion from commit 7158bc59.|2.5.42
[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 _0x03e4=['../../config/environment','exports','int_vtiger_fields','idField','FieldId','../../config/logger','api','rimraf'];(function(_0x28447c,_0x27b96e){var _0x2a9fef=function(_0x223557){while(--_0x223557){_0x28447c['push'](_0x28447c['shift']());}};_0x2a9fef(++_0x27b96e);}(_0x03e4,0x185));var _0x403e=function(_0x4cd690,_0x4797cc){_0x4cd690=_0x4cd690-0x0;var _0x4a74a9=_0x03e4[_0x4cd690];return _0x4a74a9;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x403e('0x0'))(_0x403e('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x403e('0x2'));var config=require(_0x403e('0x3'));var attributes=require('./intVtigerField.attributes');module[_0x403e('0x4')]=function(_0xaa3f37,_0x72bceb){return _0xaa3f37['define']('VtigerField',attributes,{'tableName':_0x403e('0x5'),'paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':[_0x403e('0x6'),_0x403e('0x7')],'unique':!![]}],'timestamps':!![]});};