71baff501c24c614428eb08dfac33bf72773213a
[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 _0xbf81=['idField','util','api','moment','bluebird','request-promise','path','rimraf','./intServicenowField.attributes','exports','define','ServicenowField'];(function(_0x33385c,_0x13ac69){var _0x14e17e=function(_0x41dd24){while(--_0x41dd24){_0x33385c['push'](_0x33385c['shift']());}};_0x14e17e(++_0x13ac69);}(_0xbf81,0x175));var _0x1bf8=function(_0x545809,_0x1e9efc){_0x545809=_0x545809-0x0;var _0x363e7f=_0xbf81[_0x545809];return _0x363e7f;};'use strict';var _=require('lodash');var util=require(_0x1bf8('0x0'));var logger=require('../../config/logger')(_0x1bf8('0x1'));var moment=require(_0x1bf8('0x2'));var BPromise=require(_0x1bf8('0x3'));var rp=require(_0x1bf8('0x4'));var fs=require('fs');var path=require(_0x1bf8('0x5'));var rimraf=require(_0x1bf8('0x6'));var config=require('../../config/environment');var attributes=require(_0x1bf8('0x7'));module[_0x1bf8('0x8')]=function(_0x5091bb,_0x2b523e){return _0x5091bb[_0x1bf8('0x9')](_0x1bf8('0xa'),attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0x1bf8('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};