d137759deee9e77166ac3e36aaf9b41723755906
[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 _0xec53=['request-promise','rimraf','../../config/environment','./intDynamics365Field.attributes','exports','define','Dynamics365Field','dynamics365_unique_index','idField','FieldId','util','../../config/logger','api','bluebird'];(function(_0x539aff,_0xc9751f){var _0x590622=function(_0x278d25){while(--_0x278d25){_0x539aff['push'](_0x539aff['shift']());}};_0x590622(++_0xc9751f);}(_0xec53,0xb2));var _0x3ec5=function(_0x413353,_0x15e68a){_0x413353=_0x413353-0x0;var _0x2a7fc4=_0xec53[_0x413353];return _0x2a7fc4;};'use strict';var _=require('lodash');var util=require(_0x3ec5('0x0'));var logger=require(_0x3ec5('0x1'))(_0x3ec5('0x2'));var moment=require('moment');var BPromise=require(_0x3ec5('0x3'));var rp=require(_0x3ec5('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3ec5('0x5'));var config=require(_0x3ec5('0x6'));var attributes=require(_0x3ec5('0x7'));module[_0x3ec5('0x8')]=function(_0x2feef8,_0x4b624c){return _0x2feef8[_0x3ec5('0x9')](_0x3ec5('0xa'),attributes,{'tableName':'int_dynamics365_fields','paranoid':![],'indexes':[{'name':_0x3ec5('0xb'),'fields':[_0x3ec5('0xc'),_0x3ec5('0xd')],'unique':!![]}],'timestamps':!![]});};