Built motion from commit 616d3211.|2.6.4
[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 _0x1556=['lodash','util','api','moment','rimraf','./intSugarcrmField.attributes','define','SugarcrmField','sugarcrm_unique_index','idField'];(function(_0xda464c,_0x26e47d){var _0x19e222=function(_0x1ec605){while(--_0x1ec605){_0xda464c['push'](_0xda464c['shift']());}};_0x19e222(++_0x26e47d);}(_0x1556,0x186));var _0x6155=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x1556[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0x6155('0x0'));var util=require(_0x6155('0x1'));var logger=require('../../config/logger')(_0x6155('0x2'));var moment=require(_0x6155('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x6155('0x4'));var config=require('../../config/environment');var attributes=require(_0x6155('0x5'));module['exports']=function(_0x15c59f,_0x25ca87){return _0x15c59f[_0x6155('0x6')](_0x6155('0x7'),attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':_0x6155('0x8'),'fields':[_0x6155('0x9'),'FieldId'],'unique':!![]}],'timestamps':!![]});};