02c76d8093e44d29465bdda5cbb314ff02bab7c5
[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 _0xdfe1=['FieldId','lodash','util','api','bluebird','request-promise','path','rimraf','./intSugarcrmField.attributes','exports','define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','idField'];(function(_0x487f9e,_0x1826b5){var _0x2a1476=function(_0xf9207){while(--_0xf9207){_0x487f9e['push'](_0x487f9e['shift']());}};_0x2a1476(++_0x1826b5);}(_0xdfe1,0x1a5));var _0x1dfe=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xdfe1[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0x1dfe('0x0'));var util=require(_0x1dfe('0x1'));var logger=require('../../config/logger')(_0x1dfe('0x2'));var moment=require('moment');var BPromise=require(_0x1dfe('0x3'));var rp=require(_0x1dfe('0x4'));var fs=require('fs');var path=require(_0x1dfe('0x5'));var rimraf=require(_0x1dfe('0x6'));var config=require('../../config/environment');var attributes=require(_0x1dfe('0x7'));module[_0x1dfe('0x8')]=function(_0x507fb9,_0x5056a9){return _0x507fb9[_0x1dfe('0x9')](_0x1dfe('0xa'),attributes,{'tableName':_0x1dfe('0xb'),'paranoid':![],'indexes':[{'name':_0x1dfe('0xc'),'fields':[_0x1dfe('0xd'),_0x1dfe('0xe')],'unique':!![]}],'timestamps':!![]});};