07a04349b899ed36f747d90cee2032d463b7bed1
[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 _0xa686=['util','api','bluebird','request-promise','path','../../config/environment','./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId','lodash'];(function(_0x1cd93a,_0x4399b7){var _0x11e592=function(_0x3fc901){while(--_0x3fc901){_0x1cd93a['push'](_0x1cd93a['shift']());}};_0x11e592(++_0x4399b7);}(_0xa686,0x1a3));var _0x6a68=function(_0xd9f679,_0x563a0f){_0xd9f679=_0xd9f679-0x0;var _0x22d52a=_0xa686[_0xd9f679];return _0x22d52a;};'use strict';var _=require(_0x6a68('0x0'));var util=require(_0x6a68('0x1'));var logger=require('../../config/logger')(_0x6a68('0x2'));var moment=require('moment');var BPromise=require(_0x6a68('0x3'));var rp=require(_0x6a68('0x4'));var fs=require('fs');var path=require(_0x6a68('0x5'));var rimraf=require('rimraf');var config=require(_0x6a68('0x6'));var attributes=require(_0x6a68('0x7'));module[_0x6a68('0x8')]=function(_0x661c9a,_0x122f6c){return _0x661c9a[_0x6a68('0x9')](_0x6a68('0xa'),attributes,{'tableName':_0x6a68('0xb'),'paranoid':![],'indexes':[{'name':_0x6a68('0xc'),'fields':[_0x6a68('0xd'),_0x6a68('0xe')],'unique':!![]}],'timestamps':!![]});};