Built motion from commit 6db1674d.|2.6.23
[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 _0xc6b1=['salesforce_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','exports','SalesforceField'];(function(_0x5635a3,_0x5064ae){var _0x128d1a=function(_0x43dbeb){while(--_0x43dbeb){_0x5635a3['push'](_0x5635a3['shift']());}};_0x128d1a(++_0x5064ae);}(_0xc6b1,0x65));var _0x1c6b=function(_0x50367e,_0x4e0850){_0x50367e=_0x50367e-0x0;var _0x5c65ed=_0xc6b1[_0x50367e];return _0x5c65ed;};'use strict';var _=require(_0x1c6b('0x0'));var util=require(_0x1c6b('0x1'));var logger=require(_0x1c6b('0x2'))(_0x1c6b('0x3'));var moment=require(_0x1c6b('0x4'));var BPromise=require(_0x1c6b('0x5'));var rp=require(_0x1c6b('0x6'));var fs=require('fs');var path=require(_0x1c6b('0x7'));var rimraf=require('rimraf');var config=require(_0x1c6b('0x8'));var attributes=require('./intSalesforceField.attributes');module[_0x1c6b('0x9')]=function(_0x401628,_0xe33c47){return _0x401628['define'](_0x1c6b('0xa'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x1c6b('0xb'),'fields':[_0x1c6b('0xc'),_0x1c6b('0xd')],'unique':!![]}],'timestamps':!![]});};