79f79e9bed4aab872a9075cbe869da90f672c118
[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 _0x28c4=['moment','path','./intSalesforceField.attributes','define','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId','util','../../config/logger','api'];(function(_0x5e26e7,_0x382559){var _0x19e66f=function(_0x1327e3){while(--_0x1327e3){_0x5e26e7['push'](_0x5e26e7['shift']());}};_0x19e66f(++_0x382559);}(_0x28c4,0x99));var _0x428c=function(_0x4bfd95,_0x1c3b3b){_0x4bfd95=_0x4bfd95-0x0;var _0x1484cd=_0x28c4[_0x4bfd95];return _0x1484cd;};'use strict';var _=require('lodash');var util=require(_0x428c('0x0'));var logger=require(_0x428c('0x1'))(_0x428c('0x2'));var moment=require(_0x428c('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x428c('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x428c('0x5'));module['exports']=function(_0x3d09ce,_0x59eb90){return _0x3d09ce[_0x428c('0x6')](_0x428c('0x7'),attributes,{'tableName':_0x428c('0x8'),'paranoid':![],'indexes':[{'name':_0x428c('0x9'),'fields':[_0x428c('0xa'),_0x428c('0xb')],'unique':!![]}],'timestamps':!![]});};