Built motion from commit da24aabd.|2.6.20
[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 _0x91c1=['SalesforceField','salesforce_unique_index','idField','FieldId','util','../../config/logger','api','path','../../config/environment','define'];(function(_0x5eda86,_0x5b0a7c){var _0x13e061=function(_0x428366){while(--_0x428366){_0x5eda86['push'](_0x5eda86['shift']());}};_0x13e061(++_0x5b0a7c);}(_0x91c1,0xae));var _0x191c=function(_0x2f87cd,_0xcaf299){_0x2f87cd=_0x2f87cd-0x0;var _0x5d7eda=_0x91c1[_0x2f87cd];return _0x5d7eda;};'use strict';var _=require('lodash');var util=require(_0x191c('0x0'));var logger=require(_0x191c('0x1'))(_0x191c('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x191c('0x3'));var rimraf=require('rimraf');var config=require(_0x191c('0x4'));var attributes=require('./intSalesforceField.attributes');module['exports']=function(_0x1c106e,_0x55e4e1){return _0x1c106e[_0x191c('0x5')](_0x191c('0x6'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x191c('0x7'),'fields':[_0x191c('0x8'),_0x191c('0x9')],'unique':!![]}],'timestamps':!![]});};