1884feea7dad3492bc9aaf4e2e4f2c457edf9663
[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 _0xd5f8=['./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3c00d5,_0x45c3ca){var _0x2d5f13=function(_0x59ac8d){while(--_0x59ac8d){_0x3c00d5['push'](_0x3c00d5['shift']());}};_0x2d5f13(++_0x45c3ca);}(_0xd5f8,0x1d3));var _0x8d5f=function(_0x4422cf,_0xadcb4e){_0x4422cf=_0x4422cf-0x0;var _0xfbe20a=_0xd5f8[_0x4422cf];return _0xfbe20a;};'use strict';var _=require(_0x8d5f('0x0'));var util=require('util');var logger=require(_0x8d5f('0x1'))(_0x8d5f('0x2'));var moment=require(_0x8d5f('0x3'));var BPromise=require(_0x8d5f('0x4'));var rp=require(_0x8d5f('0x5'));var fs=require('fs');var path=require(_0x8d5f('0x6'));var rimraf=require(_0x8d5f('0x7'));var config=require(_0x8d5f('0x8'));var attributes=require(_0x8d5f('0x9'));module[_0x8d5f('0xa')]=function(_0x2e1829,_0x5f58f2){return _0x2e1829[_0x8d5f('0xb')](_0x8d5f('0xc'),attributes,{'tableName':_0x8d5f('0xd'),'paranoid':![],'indexes':[{'name':_0x8d5f('0xe'),'fields':[_0x8d5f('0xf'),_0x8d5f('0x10')],'unique':!![]}],'timestamps':!![]});};