Built motion from commit f57cc866.|2.6.31
[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 _0x9972=['../../config/logger','moment','bluebird','request-promise','path','ServicenowField','int_servicenow_fields','FieldId','lodash','util'];(function(_0x525158,_0x125f09){var _0x1825d3=function(_0x48c5f5){while(--_0x48c5f5){_0x525158['push'](_0x525158['shift']());}};_0x1825d3(++_0x125f09);}(_0x9972,0x17a));var _0x2997=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x9972[_0x122ef9];return _0x42fba0;};'use strict';var _=require(_0x2997('0x0'));var util=require(_0x2997('0x1'));var logger=require(_0x2997('0x2'))('api');var moment=require(_0x2997('0x3'));var BPromise=require(_0x2997('0x4'));var rp=require(_0x2997('0x5'));var fs=require('fs');var path=require(_0x2997('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module['exports']=function(_0x2271b8,_0x1b9512){return _0x2271b8['define'](_0x2997('0x7'),attributes,{'tableName':_0x2997('0x8'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':['idField',_0x2997('0x9')],'unique':!![]}],'timestamps':!![]});};