1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe191=['request-promise','path','rimraf','../../config/environment','./intDynamics365Field.attributes','exports','define','Dynamics365Field','int_dynamics365_fields','idField','FieldId','lodash','../../config/logger','api'];(function(_0x1202a6,_0x29b04e){var _0x31dc2a=function(_0x9f5c31){while(--_0x9f5c31){_0x1202a6['push'](_0x1202a6['shift']());}};_0x31dc2a(++_0x29b04e);}(_0xe191,0x169));var _0x1e19=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe191[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x1e19('0x0'));var util=require('util');var logger=require(_0x1e19('0x1'))(_0x1e19('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x1e19('0x3'));var fs=require('fs');var path=require(_0x1e19('0x4'));var rimraf=require(_0x1e19('0x5'));var config=require(_0x1e19('0x6'));var attributes=require(_0x1e19('0x7'));module[_0x1e19('0x8')]=function(_0x31308f,_0x3a8758){return _0x31308f[_0x1e19('0x9')](_0x1e19('0xa'),attributes,{'tableName':_0x1e19('0xb'),'paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x1e19('0xc'),_0x1e19('0xd')],'unique':!![]}],'timestamps':!![]});};