05fdd6d037048b402317b72cd1218fd49a7de524
[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 _0x2e47=['exports','SalesforceField','salesforce_unique_index','idField','FieldId','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x45f334,_0x4a9225){var _0x3c0088=function(_0x2d8671){while(--_0x2d8671){_0x45f334['push'](_0x45f334['shift']());}};_0x3c0088(++_0x4a9225);}(_0x2e47,0x1ef));var _0x72e4=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x2e47[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0x72e4('0x0'));var util=require(_0x72e4('0x1'));var logger=require('../../config/logger')(_0x72e4('0x2'));var moment=require(_0x72e4('0x3'));var BPromise=require(_0x72e4('0x4'));var rp=require(_0x72e4('0x5'));var fs=require('fs');var path=require(_0x72e4('0x6'));var rimraf=require(_0x72e4('0x7'));var config=require(_0x72e4('0x8'));var attributes=require('./intSalesforceField.attributes');module[_0x72e4('0x9')]=function(_0x37baa3,_0x9aad32){return _0x37baa3['define'](_0x72e4('0xa'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x72e4('0xb'),'fields':[_0x72e4('0xc'),_0x72e4('0xd')],'unique':!![]}],'timestamps':!![]});};