7e4e71c39f0d334bbd682140a2890422aa8de3ac
[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 _0x59a2=['lodash','util','api','moment','bluebird','rimraf','./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','salesforce_unique_index'];(function(_0x2e224b,_0x49c352){var _0x3a7a3a=function(_0x4762ca){while(--_0x4762ca){_0x2e224b['push'](_0x2e224b['shift']());}};_0x3a7a3a(++_0x49c352);}(_0x59a2,0xcc));var _0x259a=function(_0x24bcb,_0x1eb5f4){_0x24bcb=_0x24bcb-0x0;var _0x46e7fc=_0x59a2[_0x24bcb];return _0x46e7fc;};'use strict';var _=require(_0x259a('0x0'));var util=require(_0x259a('0x1'));var logger=require('../../config/logger')(_0x259a('0x2'));var moment=require(_0x259a('0x3'));var BPromise=require(_0x259a('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x259a('0x5'));var config=require('../../config/environment');var attributes=require(_0x259a('0x6'));module[_0x259a('0x7')]=function(_0x17dbbe,_0x116690){return _0x17dbbe[_0x259a('0x8')](_0x259a('0x9'),attributes,{'tableName':_0x259a('0xa'),'paranoid':![],'indexes':[{'name':_0x259a('0xb'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};