65c17fe78d6b8290c037e360b7e9b5142af0d93c
[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 _0x8542=['path','rimraf','ServicenowField','int_servicenow_fields','servicenow_unique_index','moment','bluebird'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x8542,0x67));var _0x2854=function(_0x513cd4,_0x471276){_0x513cd4=_0x513cd4-0x0;var _0x3e3f8a=_0x8542[_0x513cd4];return _0x3e3f8a;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x2854('0x0'));var BPromise=require(_0x2854('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2854('0x2'));var rimraf=require(_0x2854('0x3'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module['exports']=function(_0x36bfdb,_0x3722ee){return _0x36bfdb['define'](_0x2854('0x4'),attributes,{'tableName':_0x2854('0x5'),'paranoid':![],'indexes':[{'name':_0x2854('0x6'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};