Built motion from commit b0a9a629.|2.6.33
[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 _0xcabb=['define','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./intSalesforceField.attributes','exports'];(function(_0xe886fa,_0x5a2f45){var _0xf40f=function(_0x29ab47){while(--_0x29ab47){_0xe886fa['push'](_0xe886fa['shift']());}};_0xf40f(++_0x5a2f45);}(_0xcabb,0x17d));var _0xbcab=function(_0x501ff9,_0x3c0677){_0x501ff9=_0x501ff9-0x0;var _0x129fa7=_0xcabb[_0x501ff9];return _0x129fa7;};'use strict';var _=require('lodash');var util=require(_0xbcab('0x0'));var logger=require(_0xbcab('0x1'))('api');var moment=require(_0xbcab('0x2'));var BPromise=require(_0xbcab('0x3'));var rp=require(_0xbcab('0x4'));var fs=require('fs');var path=require(_0xbcab('0x5'));var rimraf=require('rimraf');var config=require(_0xbcab('0x6'));var attributes=require(_0xbcab('0x7'));module[_0xbcab('0x8')]=function(_0x4e81d3,_0xd120b3){return _0x4e81d3[_0xbcab('0x9')](_0xbcab('0xa'),attributes,{'tableName':_0xbcab('0xb'),'paranoid':![],'indexes':[{'name':_0xbcab('0xc'),'fields':[_0xbcab('0xd'),_0xbcab('0xe')],'unique':!![]}],'timestamps':!![]});};