Built motion from commit d1eab355.|2.6.28
[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 _0x4e2d=['request-promise','path','../../config/environment','./intVtigerField.attributes','define','VtigerField','int_vtiger_fields','vtiger_unique_index','FieldId','lodash','util','../../config/logger','api'];(function(_0x3dafa8,_0x9481fc){var _0x139451=function(_0x33570d){while(--_0x33570d){_0x3dafa8['push'](_0x3dafa8['shift']());}};_0x139451(++_0x9481fc);}(_0x4e2d,0xbf));var _0xd4e2=function(_0x1134c8,_0x11d543){_0x1134c8=_0x1134c8-0x0;var _0x5355f5=_0x4e2d[_0x1134c8];return _0x5355f5;};'use strict';var _=require(_0xd4e2('0x0'));var util=require(_0xd4e2('0x1'));var logger=require(_0xd4e2('0x2'))(_0xd4e2('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xd4e2('0x4'));var fs=require('fs');var path=require(_0xd4e2('0x5'));var rimraf=require('rimraf');var config=require(_0xd4e2('0x6'));var attributes=require(_0xd4e2('0x7'));module['exports']=function(_0x50d72a,_0xedfe31){return _0x50d72a[_0xd4e2('0x8')](_0xd4e2('0x9'),attributes,{'tableName':_0xd4e2('0xa'),'paranoid':![],'indexes':[{'name':_0xd4e2('0xb'),'fields':['idField',_0xd4e2('0xc')],'unique':!![]}],'timestamps':!![]});};