f774e83671decf656d33f750fa8dd62c9986c812
[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 _0x7fc4=['rimraf','./intSalesforceField.attributes','exports','define','SalesforceField','salesforce_unique_index','idField','FieldId','lodash','moment','bluebird','request-promise','path'];(function(_0x152449,_0x49f41d){var _0x5b58b2=function(_0x226c30){while(--_0x226c30){_0x152449['push'](_0x152449['shift']());}};_0x5b58b2(++_0x49f41d);}(_0x7fc4,0x174));var _0x47fc=function(_0x248625,_0x5d750a){_0x248625=_0x248625-0x0;var _0x227175=_0x7fc4[_0x248625];return _0x227175;};'use strict';var _=require(_0x47fc('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x47fc('0x1'));var BPromise=require(_0x47fc('0x2'));var rp=require(_0x47fc('0x3'));var fs=require('fs');var path=require(_0x47fc('0x4'));var rimraf=require(_0x47fc('0x5'));var config=require('../../config/environment');var attributes=require(_0x47fc('0x6'));module[_0x47fc('0x7')]=function(_0x381dcb,_0x121afd){return _0x381dcb[_0x47fc('0x8')](_0x47fc('0x9'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x47fc('0xa'),'fields':[_0x47fc('0xb'),_0x47fc('0xc')],'unique':!![]}],'timestamps':!![]});};