1e53e34610b9c23636834002667dbc649a9a9e8f
[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 _0x9cf9=['../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','VtigerField','int_vtiger_fields','vtiger_unique_index','idField','FieldId','lodash','util'];(function(_0x1e8d5a,_0x12229a){var _0x5ebdb8=function(_0x403f36){while(--_0x403f36){_0x1e8d5a['push'](_0x1e8d5a['shift']());}};_0x5ebdb8(++_0x12229a);}(_0x9cf9,0x14e));var _0x99cf=function(_0x5526b8,_0x353f11){_0x5526b8=_0x5526b8-0x0;var _0x2e202d=_0x9cf9[_0x5526b8];return _0x2e202d;};'use strict';var _=require(_0x99cf('0x0'));var util=require(_0x99cf('0x1'));var logger=require(_0x99cf('0x2'))(_0x99cf('0x3'));var moment=require(_0x99cf('0x4'));var BPromise=require(_0x99cf('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x99cf('0x6'));var rimraf=require(_0x99cf('0x7'));var config=require(_0x99cf('0x8'));var attributes=require('./intVtigerField.attributes');module[_0x99cf('0x9')]=function(_0x156ca1,_0x1c6c9e){return _0x156ca1[_0x99cf('0xa')](_0x99cf('0xb'),attributes,{'tableName':_0x99cf('0xc'),'paranoid':![],'indexes':[{'name':_0x99cf('0xd'),'fields':[_0x99cf('0xe'),_0x99cf('0xf')],'unique':!![]}],'timestamps':!![]});};