1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x58ab=['../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','idField','lodash','util','api','request-promise','path','rimraf'];(function(_0x34af5f,_0x2938fd){var _0xd88b8d=function(_0x23d35e){while(--_0x23d35e){_0x34af5f['push'](_0x34af5f['shift']());}};_0xd88b8d(++_0x2938fd);}(_0x58ab,0xe4));var _0xb58a=function(_0x102f39,_0x35e82e){_0x102f39=_0x102f39-0x0;var _0x1aa102=_0x58ab[_0x102f39];return _0x1aa102;};'use strict';var _=require(_0xb58a('0x0'));var util=require(_0xb58a('0x1'));var logger=require('../../config/logger')(_0xb58a('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xb58a('0x3'));var fs=require('fs');var path=require(_0xb58a('0x4'));var rimraf=require(_0xb58a('0x5'));var config=require(_0xb58a('0x6'));var attributes=require(_0xb58a('0x7'));module[_0xb58a('0x8')]=function(_0x4ed5e4,_0x165fa2){return _0x4ed5e4[_0xb58a('0x9')](_0xb58a('0xa'),attributes,{'tableName':_0xb58a('0xb'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0xb58a('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};