910ec65ec9f6b79672cd550ed06f9da93dbb7fe4
[motion2.git] / server / api / intServicenowField / intServicenowField.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 _0x1805=['bluebird','request-promise','path','rimraf','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','util','../../config/logger','api'];(function(_0x2c1b1d,_0x38fb81){var _0x349f08=function(_0x2d0a0e){while(--_0x2d0a0e){_0x2c1b1d['push'](_0x2c1b1d['shift']());}};_0x349f08(++_0x38fb81);}(_0x1805,0x1bf));var _0x5180=function(_0x36adf4,_0x49b096){_0x36adf4=_0x36adf4-0x0;var _0x4c5f44=_0x1805[_0x36adf4];return _0x4c5f44;};'use strict';var _=require('lodash');var util=require(_0x5180('0x0'));var logger=require(_0x5180('0x1'))(_0x5180('0x2'));var moment=require('moment');var BPromise=require(_0x5180('0x3'));var rp=require(_0x5180('0x4'));var fs=require('fs');var path=require(_0x5180('0x5'));var rimraf=require(_0x5180('0x6'));var config=require(_0x5180('0x7'));var attributes=require(_0x5180('0x8'));module[_0x5180('0x9')]=function(_0x37ffd7,_0x2338b9){return _0x37ffd7[_0x5180('0xa')](_0x5180('0xb'),attributes,{'tableName':_0x5180('0xc'),'paranoid':![],'indexes':[{'name':_0x5180('0xd'),'fields':['idField',_0x5180('0xe')],'unique':!![]}],'timestamps':!![]});};