Built motion from commit (unavailable).|2.4.18
[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 _0xd34e=['path','rimraf','./intSalesforceField.attributes','exports','define','int_salesforce_fields','salesforce_unique_index','FieldId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x1c8253,_0x1c4de2){var _0x380d59=function(_0x5bbf67){while(--_0x5bbf67){_0x1c8253['push'](_0x1c8253['shift']());}};_0x380d59(++_0x1c4de2);}(_0xd34e,0x1d6));var _0xed34=function(_0x3e2356,_0x71ae8a){_0x3e2356=_0x3e2356-0x0;var _0xf2318d=_0xd34e[_0x3e2356];return _0xf2318d;};'use strict';var _=require(_0xed34('0x0'));var util=require(_0xed34('0x1'));var logger=require(_0xed34('0x2'))(_0xed34('0x3'));var moment=require(_0xed34('0x4'));var BPromise=require(_0xed34('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xed34('0x6'));var rimraf=require(_0xed34('0x7'));var config=require('../../config/environment');var attributes=require(_0xed34('0x8'));module[_0xed34('0x9')]=function(_0x12bfca,_0x3b3822){return _0x12bfca[_0xed34('0xa')]('SalesforceField',attributes,{'tableName':_0xed34('0xb'),'paranoid':![],'indexes':[{'name':_0xed34('0xc'),'fields':['idField',_0xed34('0xd')],'unique':!![]}],'timestamps':!![]});};