Built motion from commit 00bf23f6.|2.6.16
[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 _0x1e1d=['rimraf','./intSalesforceField.attributes','SalesforceField','int_salesforce_fields','salesforce_unique_index','FieldId','lodash','util','../../config/logger','api','moment','bluebird','path'];(function(_0x208a7c,_0x266eda){var _0x2744e3=function(_0x50eae6){while(--_0x50eae6){_0x208a7c['push'](_0x208a7c['shift']());}};_0x2744e3(++_0x266eda);}(_0x1e1d,0x165));var _0xd1e1=function(_0x4b2863,_0x494899){_0x4b2863=_0x4b2863-0x0;var _0x567d67=_0x1e1d[_0x4b2863];return _0x567d67;};'use strict';var _=require(_0xd1e1('0x0'));var util=require(_0xd1e1('0x1'));var logger=require(_0xd1e1('0x2'))(_0xd1e1('0x3'));var moment=require(_0xd1e1('0x4'));var BPromise=require(_0xd1e1('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd1e1('0x6'));var rimraf=require(_0xd1e1('0x7'));var config=require('../../config/environment');var attributes=require(_0xd1e1('0x8'));module['exports']=function(_0x41249d,_0x52ec31){return _0x41249d['define'](_0xd1e1('0x9'),attributes,{'tableName':_0xd1e1('0xa'),'paranoid':![],'indexes':[{'name':_0xd1e1('0xb'),'fields':['idField',_0xd1e1('0xc')],'unique':!![]}],'timestamps':!![]});};