a18187de589f5ef83afd9abeed66680a2926342d
[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 _0x35e5=['api','moment','bluebird','rimraf','../../config/environment','./intDynamics365Field.attributes','exports','define','Dynamics365Field','idField','FieldId','lodash','util'];(function(_0x4a5f6c,_0x4f532e){var _0x281ffd=function(_0x4c68e3){while(--_0x4c68e3){_0x4a5f6c['push'](_0x4a5f6c['shift']());}};_0x281ffd(++_0x4f532e);}(_0x35e5,0x73));var _0x535e=function(_0x50d496,_0x40fff2){_0x50d496=_0x50d496-0x0;var _0x116a12=_0x35e5[_0x50d496];return _0x116a12;};'use strict';var _=require(_0x535e('0x0'));var util=require(_0x535e('0x1'));var logger=require('../../config/logger')(_0x535e('0x2'));var moment=require(_0x535e('0x3'));var BPromise=require(_0x535e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x535e('0x5'));var config=require(_0x535e('0x6'));var attributes=require(_0x535e('0x7'));module[_0x535e('0x8')]=function(_0x46de7f,_0x5efe80){return _0x46de7f[_0x535e('0x9')](_0x535e('0xa'),attributes,{'tableName':'int_dynamics365_fields','paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x535e('0xb'),_0x535e('0xc')],'unique':!![]}],'timestamps':!![]});};