Built motion from commit 753c950e.|2.5.42
[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 _0x6ef2=['exports','define','Dynamics365Field','int_dynamics365_fields','dynamics365_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','./intDynamics365Field.attributes'];(function(_0x1f885f,_0x43b5cd){var _0x70b3bd=function(_0x45ff79){while(--_0x45ff79){_0x1f885f['push'](_0x1f885f['shift']());}};_0x70b3bd(++_0x43b5cd);}(_0x6ef2,0x177));var _0x26ef=function(_0x350509,_0x3a8277){_0x350509=_0x350509-0x0;var _0x27ad5c=_0x6ef2[_0x350509];return _0x27ad5c;};'use strict';var _=require(_0x26ef('0x0'));var util=require(_0x26ef('0x1'));var logger=require(_0x26ef('0x2'))(_0x26ef('0x3'));var moment=require('moment');var BPromise=require(_0x26ef('0x4'));var rp=require(_0x26ef('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x26ef('0x6'));var config=require(_0x26ef('0x7'));var attributes=require(_0x26ef('0x8'));module[_0x26ef('0x9')]=function(_0x14844b,_0x21004d){return _0x14844b[_0x26ef('0xa')](_0x26ef('0xb'),attributes,{'tableName':_0x26ef('0xc'),'paranoid':![],'indexes':[{'name':_0x26ef('0xd'),'fields':[_0x26ef('0xe'),_0x26ef('0xf')],'unique':!![]}],'timestamps':!![]});};