Built motion from commit (unavailable).|2.5.30
[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 _0xb2f7=['define','Dynamics365Field','int_dynamics365_fields','idField','FieldId','lodash','api','moment','bluebird','request-promise','path','rimraf','./intDynamics365Field.attributes','exports'];(function(_0x4f1da5,_0x4ced17){var _0xe972a8=function(_0x278ba3){while(--_0x278ba3){_0x4f1da5['push'](_0x4f1da5['shift']());}};_0xe972a8(++_0x4ced17);}(_0xb2f7,0x163));var _0x7b2f=function(_0x411add,_0x1aed38){_0x411add=_0x411add-0x0;var _0x238242=_0xb2f7[_0x411add];return _0x238242;};'use strict';var _=require(_0x7b2f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x7b2f('0x1'));var moment=require(_0x7b2f('0x2'));var BPromise=require(_0x7b2f('0x3'));var rp=require(_0x7b2f('0x4'));var fs=require('fs');var path=require(_0x7b2f('0x5'));var rimraf=require(_0x7b2f('0x6'));var config=require('../../config/environment');var attributes=require(_0x7b2f('0x7'));module[_0x7b2f('0x8')]=function(_0x339247,_0x15d945){return _0x339247[_0x7b2f('0x9')](_0x7b2f('0xa'),attributes,{'tableName':_0x7b2f('0xb'),'paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x7b2f('0xc'),_0x7b2f('0xd')],'unique':!![]}],'timestamps':!![]});};