aeba7f94e2a56a8ce9f60bacdea6bb98ce1779e9
[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 _0xe886=['define','VtigerField','int_vtiger_fields','vtiger_unique_index','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./intVtigerField.attributes'];(function(_0x5e9f06,_0x3dd75c){var _0x4c9dd5=function(_0x5dc2e1){while(--_0x5dc2e1){_0x5e9f06['push'](_0x5e9f06['shift']());}};_0x4c9dd5(++_0x3dd75c);}(_0xe886,0x1ee));var _0x6e88=function(_0x7affc1,_0x17c238){_0x7affc1=_0x7affc1-0x0;var _0x5f4941=_0xe886[_0x7affc1];return _0x5f4941;};'use strict';var _=require(_0x6e88('0x0'));var util=require(_0x6e88('0x1'));var logger=require(_0x6e88('0x2'))(_0x6e88('0x3'));var moment=require('moment');var BPromise=require(_0x6e88('0x4'));var rp=require(_0x6e88('0x5'));var fs=require('fs');var path=require(_0x6e88('0x6'));var rimraf=require(_0x6e88('0x7'));var config=require(_0x6e88('0x8'));var attributes=require(_0x6e88('0x9'));module['exports']=function(_0x5087eb,_0x5b3392){return _0x5087eb[_0x6e88('0xa')](_0x6e88('0xb'),attributes,{'tableName':_0x6e88('0xc'),'paranoid':![],'indexes':[{'name':_0x6e88('0xd'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};