Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.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 _0x8cfa=['sugarcrm_unique_index','idField','FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','define','SugarcrmField','int_sugarcrm_fields'];(function(_0x55daf1,_0x569895){var _0x599c8d=function(_0x1bd3ee){while(--_0x1bd3ee){_0x55daf1['push'](_0x55daf1['shift']());}};_0x599c8d(++_0x569895);}(_0x8cfa,0x92));var _0xa8cf=function(_0x18ee80,_0x2adf1c){_0x18ee80=_0x18ee80-0x0;var _0x2f60c2=_0x8cfa[_0x18ee80];return _0x2f60c2;};'use strict';var _=require(_0xa8cf('0x0'));var util=require(_0xa8cf('0x1'));var logger=require(_0xa8cf('0x2'))('api');var moment=require(_0xa8cf('0x3'));var BPromise=require(_0xa8cf('0x4'));var rp=require(_0xa8cf('0x5'));var fs=require('fs');var path=require(_0xa8cf('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intSugarcrmField.attributes');module['exports']=function(_0x37f05b,_0x1f0fa9){return _0x37f05b[_0xa8cf('0x7')](_0xa8cf('0x8'),attributes,{'tableName':_0xa8cf('0x9'),'paranoid':![],'indexes':[{'name':_0xa8cf('0xa'),'fields':[_0xa8cf('0xb'),_0xa8cf('0xc')],'unique':!![]}],'timestamps':!![]});};