Built motion from commit 19a84241.|2.5.34
[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 _0xea1a=['bluebird','request-promise','path','rimraf','../../config/environment','VtigerField','int_vtiger_fields','vtiger_unique_index','idField','FieldId','util','../../config/logger','api','moment'];(function(_0x35825e,_0x657421){var _0x4f4d90=function(_0x160265){while(--_0x160265){_0x35825e['push'](_0x35825e['shift']());}};_0x4f4d90(++_0x657421);}(_0xea1a,0x88));var _0xaea1=function(_0x3d3303,_0x578d3b){_0x3d3303=_0x3d3303-0x0;var _0x1b5f29=_0xea1a[_0x3d3303];return _0x1b5f29;};'use strict';var _=require('lodash');var util=require(_0xaea1('0x0'));var logger=require(_0xaea1('0x1'))(_0xaea1('0x2'));var moment=require(_0xaea1('0x3'));var BPromise=require(_0xaea1('0x4'));var rp=require(_0xaea1('0x5'));var fs=require('fs');var path=require(_0xaea1('0x6'));var rimraf=require(_0xaea1('0x7'));var config=require(_0xaea1('0x8'));var attributes=require('./intVtigerField.attributes');module['exports']=function(_0x1ab639,_0x366cca){return _0x1ab639['define'](_0xaea1('0x9'),attributes,{'tableName':_0xaea1('0xa'),'paranoid':![],'indexes':[{'name':_0xaea1('0xb'),'fields':[_0xaea1('0xc'),_0xaea1('0xd')],'unique':!![]}],'timestamps':!![]});};