1bc287846f83a452cdcedace0d1c5bcbbe00b423
[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 _0xb8ff=['../../config/logger','moment','request-promise','path','rimraf','../../config/environment','SalesforceField','salesforce_unique_index','idField','FieldId'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xb8ff,0x64));var _0xfb8f=function(_0x3cba8e,_0x2377a8){_0x3cba8e=_0x3cba8e-0x0;var _0x25e9cd=_0xb8ff[_0x3cba8e];return _0x25e9cd;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xfb8f('0x0'))('api');var moment=require(_0xfb8f('0x1'));var BPromise=require('bluebird');var rp=require(_0xfb8f('0x2'));var fs=require('fs');var path=require(_0xfb8f('0x3'));var rimraf=require(_0xfb8f('0x4'));var config=require(_0xfb8f('0x5'));var attributes=require('./intSalesforceField.attributes');module['exports']=function(_0x52b068,_0x348b08){return _0x52b068['define'](_0xfb8f('0x6'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0xfb8f('0x7'),'fields':[_0xfb8f('0x8'),_0xfb8f('0x9')],'unique':!![]}],'timestamps':!![]});};