Built motion from commit (unavailable).|2.5.18
[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 _0xc09f=['idField','FieldId','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index'];(function(_0x22dfb0,_0xea421e){var _0x766d8d=function(_0x44fbeb){while(--_0x44fbeb){_0x22dfb0['push'](_0x22dfb0['shift']());}};_0x766d8d(++_0xea421e);}(_0xc09f,0x16a));var _0xfc09=function(_0x17b0d4,_0x377add){_0x17b0d4=_0x17b0d4-0x0;var _0x2d02c7=_0xc09f[_0x17b0d4];return _0x2d02c7;};'use strict';var _=require(_0xfc09('0x0'));var util=require(_0xfc09('0x1'));var logger=require('../../config/logger')(_0xfc09('0x2'));var moment=require(_0xfc09('0x3'));var BPromise=require(_0xfc09('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xfc09('0x5'));var rimraf=require(_0xfc09('0x6'));var config=require(_0xfc09('0x7'));var attributes=require('./intSugarcrmField.attributes');module[_0xfc09('0x8')]=function(_0x208f8e,_0x5e54c4){return _0x208f8e[_0xfc09('0x9')](_0xfc09('0xa'),attributes,{'tableName':_0xfc09('0xb'),'paranoid':![],'indexes':[{'name':_0xfc09('0xc'),'fields':[_0xfc09('0xd'),_0xfc09('0xe')],'unique':!![]}],'timestamps':!![]});};