Built motion from commit 19a84241.|2.5.34
[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 _0x857f=['api','bluebird','request-promise','path','rimraf','../../config/environment','./intSalesforceField.attributes','exports','define','salesforce_unique_index','FieldId','lodash','util'];(function(_0x1fd343,_0x66748e){var _0x4f1c78=function(_0x58d722){while(--_0x58d722){_0x1fd343['push'](_0x1fd343['shift']());}};_0x4f1c78(++_0x66748e);}(_0x857f,0x177));var _0xf857=function(_0x948e6c,_0x21ba9c){_0x948e6c=_0x948e6c-0x0;var _0x1302c5=_0x857f[_0x948e6c];return _0x1302c5;};'use strict';var _=require(_0xf857('0x0'));var util=require(_0xf857('0x1'));var logger=require('../../config/logger')(_0xf857('0x2'));var moment=require('moment');var BPromise=require(_0xf857('0x3'));var rp=require(_0xf857('0x4'));var fs=require('fs');var path=require(_0xf857('0x5'));var rimraf=require(_0xf857('0x6'));var config=require(_0xf857('0x7'));var attributes=require(_0xf857('0x8'));module[_0xf857('0x9')]=function(_0x25772e,_0x4890d8){return _0x25772e[_0xf857('0xa')]('SalesforceField',attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0xf857('0xb'),'fields':['idField',_0xf857('0xc')],'unique':!![]}],'timestamps':!![]});};