Built motion from commit (unavailable).|2.5.2
[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 _0x47c6=['request-promise','path','../../config/environment','./intSugarcrmField.attributes','sugarcrm_unique_index','idField','FieldId','util','../../config/logger','api','bluebird'];(function(_0x4f2ede,_0x57a3bb){var _0x42a175=function(_0x56deb5){while(--_0x56deb5){_0x4f2ede['push'](_0x4f2ede['shift']());}};_0x42a175(++_0x57a3bb);}(_0x47c6,0x1a9));var _0x647c=function(_0x3af770,_0x1a957a){_0x3af770=_0x3af770-0x0;var _0x42c9a9=_0x47c6[_0x3af770];return _0x42c9a9;};'use strict';var _=require('lodash');var util=require(_0x647c('0x0'));var logger=require(_0x647c('0x1'))(_0x647c('0x2'));var moment=require('moment');var BPromise=require(_0x647c('0x3'));var rp=require(_0x647c('0x4'));var fs=require('fs');var path=require(_0x647c('0x5'));var rimraf=require('rimraf');var config=require(_0x647c('0x6'));var attributes=require(_0x647c('0x7'));module['exports']=function(_0x3eecea,_0x2d4a77){return _0x3eecea['define']('SugarcrmField',attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':_0x647c('0x8'),'fields':[_0x647c('0x9'),_0x647c('0xa')],'unique':!![]}],'timestamps':!![]});};