Built motion from commit 56b8093a.|2.6.29
[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 _0xf314=['exports','define','sugarcrm_unique_index','idField','lodash','util','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x589589,_0x484d80){var _0x1ae411=function(_0x193408){while(--_0x193408){_0x589589['push'](_0x589589['shift']());}};_0x1ae411(++_0x484d80);}(_0xf314,0xb8));var _0x4f31=function(_0x4e9628,_0x250573){_0x4e9628=_0x4e9628-0x0;var _0x27bc8c=_0xf314[_0x4e9628];return _0x27bc8c;};'use strict';var _=require(_0x4f31('0x0'));var util=require(_0x4f31('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x4f31('0x2'));var rp=require(_0x4f31('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4f31('0x4'));var config=require(_0x4f31('0x5'));var attributes=require('./intSugarcrmField.attributes');module[_0x4f31('0x6')]=function(_0xf645e8,_0x14a9b6){return _0xf645e8[_0x4f31('0x7')]('SugarcrmField',attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':_0x4f31('0x8'),'fields':[_0x4f31('0x9'),'FieldId'],'unique':!![]}],'timestamps':!![]});};