Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / intSalesforceField / intSalesforceField.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 _0xe4f2=['../../config/logger','api','rimraf','SalesforceField','int_salesforce_fields','salesforce_unique_index','FieldId','lodash','util'];(function(_0x2b10c6,_0x185590){var _0x3789d2=function(_0x272987){while(--_0x272987){_0x2b10c6['push'](_0x2b10c6['shift']());}};_0x3789d2(++_0x185590);}(_0xe4f2,0x1c0));var _0x2e4f=function(_0x12254f,_0x100cfe){_0x12254f=_0x12254f-0x0;var _0x3a4fa2=_0xe4f2[_0x12254f];return _0x3a4fa2;};'use strict';var _=require(_0x2e4f('0x0'));var util=require(_0x2e4f('0x1'));var logger=require(_0x2e4f('0x2'))(_0x2e4f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2e4f('0x4'));var config=require('../../config/environment');var attributes=require('./intSalesforceField.attributes');module['exports']=function(_0x32b40c,_0x4f439d){return _0x32b40c['define'](_0x2e4f('0x5'),attributes,{'tableName':_0x2e4f('0x6'),'paranoid':![],'indexes':[{'name':_0x2e4f('0x7'),'fields':['idField',_0x2e4f('0x8')],'unique':!![]}],'timestamps':!![]});};