5264ef327f21a28370c23216f94680574a9e05d8
[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 _0x8338=['define','ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./intServicenowField.attributes','exports'];(function(_0x187c00,_0x12e588){var _0xf1162f=function(_0x4eac41){while(--_0x4eac41){_0x187c00['push'](_0x187c00['shift']());}};_0xf1162f(++_0x12e588);}(_0x8338,0xe6));var _0x8833=function(_0x1d6f0d,_0x57817f){_0x1d6f0d=_0x1d6f0d-0x0;var _0x277185=_0x8338[_0x1d6f0d];return _0x277185;};'use strict';var _=require(_0x8833('0x0'));var util=require(_0x8833('0x1'));var logger=require(_0x8833('0x2'))('api');var moment=require('moment');var BPromise=require(_0x8833('0x3'));var rp=require(_0x8833('0x4'));var fs=require('fs');var path=require(_0x8833('0x5'));var rimraf=require(_0x8833('0x6'));var config=require(_0x8833('0x7'));var attributes=require(_0x8833('0x8'));module[_0x8833('0x9')]=function(_0x1c2424,_0x345cf3){return _0x1c2424[_0x8833('0xa')](_0x8833('0xb'),attributes,{'tableName':_0x8833('0xc'),'paranoid':![],'indexes':[{'name':_0x8833('0xd'),'fields':['idField',_0x8833('0xe')],'unique':!![]}],'timestamps':!![]});};