7cdefcaee38962f65d50e523472fc5d0de83bf50
[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 _0x2d6a=['path','rimraf','../../config/environment','./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','salesforce_unique_index','FieldId','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x231b2e,_0x2a33f9){var _0x3feb2a=function(_0x5aa472){while(--_0x5aa472){_0x231b2e['push'](_0x231b2e['shift']());}};_0x3feb2a(++_0x2a33f9);}(_0x2d6a,0x16a));var _0xa2d6=function(_0x34dab0,_0x1910fc){_0x34dab0=_0x34dab0-0x0;var _0x47945f=_0x2d6a[_0x34dab0];return _0x47945f;};'use strict';var _=require(_0xa2d6('0x0'));var util=require(_0xa2d6('0x1'));var logger=require(_0xa2d6('0x2'))(_0xa2d6('0x3'));var moment=require(_0xa2d6('0x4'));var BPromise=require('bluebird');var rp=require(_0xa2d6('0x5'));var fs=require('fs');var path=require(_0xa2d6('0x6'));var rimraf=require(_0xa2d6('0x7'));var config=require(_0xa2d6('0x8'));var attributes=require(_0xa2d6('0x9'));module[_0xa2d6('0xa')]=function(_0xc7e48f,_0x1b1814){return _0xc7e48f[_0xa2d6('0xb')](_0xa2d6('0xc'),attributes,{'tableName':_0xa2d6('0xd'),'paranoid':![],'indexes':[{'name':_0xa2d6('0xe'),'fields':['idField',_0xa2d6('0xf')],'unique':!![]}],'timestamps':!![]});};