Built motion from commit 3d6333b4.|2.6.31
[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 _0xa2b4=['lodash','util','api','moment','bluebird','path','rimraf','./intSalesforceField.attributes','exports','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId'];(function(_0x289e64,_0x5adb3c){var _0x30246c=function(_0x1bf7f6){while(--_0x1bf7f6){_0x289e64['push'](_0x289e64['shift']());}};_0x30246c(++_0x5adb3c);}(_0xa2b4,0x1c0));var _0x4a2b=function(_0x3b517c,_0x533b4e){_0x3b517c=_0x3b517c-0x0;var _0x5cc760=_0xa2b4[_0x3b517c];return _0x5cc760;};'use strict';var _=require(_0x4a2b('0x0'));var util=require(_0x4a2b('0x1'));var logger=require('../../config/logger')(_0x4a2b('0x2'));var moment=require(_0x4a2b('0x3'));var BPromise=require(_0x4a2b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4a2b('0x5'));var rimraf=require(_0x4a2b('0x6'));var config=require('../../config/environment');var attributes=require(_0x4a2b('0x7'));module[_0x4a2b('0x8')]=function(_0x2ac40e,_0x9706df){return _0x2ac40e['define'](_0x4a2b('0x9'),attributes,{'tableName':_0x4a2b('0xa'),'paranoid':![],'indexes':[{'name':_0x4a2b('0xb'),'fields':[_0x4a2b('0xc'),_0x4a2b('0xd')],'unique':!![]}],'timestamps':!![]});};