Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.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 _0x8e61=['exports','define','Dynamics365Field','int_dynamics365_fields','dynamics365_unique_index','FieldId','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x35f9d4,_0x5dea15){var _0xfbbb29=function(_0x32a7bb){while(--_0x32a7bb){_0x35f9d4['push'](_0x35f9d4['shift']());}};_0xfbbb29(++_0x5dea15);}(_0x8e61,0x131));var _0x18e6=function(_0x33032e,_0x31411a){_0x33032e=_0x33032e-0x0;var _0x13316b=_0x8e61[_0x33032e];return _0x13316b;};'use strict';var _=require(_0x18e6('0x0'));var util=require('util');var logger=require(_0x18e6('0x1'))(_0x18e6('0x2'));var moment=require(_0x18e6('0x3'));var BPromise=require(_0x18e6('0x4'));var rp=require(_0x18e6('0x5'));var fs=require('fs');var path=require(_0x18e6('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intDynamics365Field.attributes');module[_0x18e6('0x7')]=function(_0x5f17ce,_0x932e44){return _0x5f17ce[_0x18e6('0x8')](_0x18e6('0x9'),attributes,{'tableName':_0x18e6('0xa'),'paranoid':![],'indexes':[{'name':_0x18e6('0xb'),'fields':['idField',_0x18e6('0xc')],'unique':!![]}],'timestamps':!![]});};