Built motion from commit 497d3d92.|2.5.43
[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 _0x7fc7=['./intSalesforceField.attributes','int_salesforce_fields','salesforce_unique_index','idField','FieldId','lodash','util','api','moment','bluebird','rimraf'];(function(_0x4154a6,_0x2c0b8e){var _0x3b2786=function(_0x2f5936){while(--_0x2f5936){_0x4154a6['push'](_0x4154a6['shift']());}};_0x3b2786(++_0x2c0b8e);}(_0x7fc7,0x1f4));var _0x77fc=function(_0x5a25d0,_0x1a2a6b){_0x5a25d0=_0x5a25d0-0x0;var _0x308551=_0x7fc7[_0x5a25d0];return _0x308551;};'use strict';var _=require(_0x77fc('0x0'));var util=require(_0x77fc('0x1'));var logger=require('../../config/logger')(_0x77fc('0x2'));var moment=require(_0x77fc('0x3'));var BPromise=require(_0x77fc('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x77fc('0x5'));var config=require('../../config/environment');var attributes=require(_0x77fc('0x6'));module['exports']=function(_0x5651d7,_0x5338f0){return _0x5651d7['define']('SalesforceField',attributes,{'tableName':_0x77fc('0x7'),'paranoid':![],'indexes':[{'name':_0x77fc('0x8'),'fields':[_0x77fc('0x9'),_0x77fc('0xa')],'unique':!![]}],'timestamps':!![]});};