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 _0xeb82=['../../config/logger','api','request-promise','path','rimraf','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','lodash','util'];(function(_0x472266,_0x13b9aa){var _0x5ed7ef=function(_0x318194){while(--_0x318194){_0x472266['push'](_0x472266['shift']());}};_0x5ed7ef(++_0x13b9aa);}(_0xeb82,0xdb));var _0x2eb8=function(_0x417f6d,_0x5b05ae){_0x417f6d=_0x417f6d-0x0;var _0x4fdd7f=_0xeb82[_0x417f6d];return _0x4fdd7f;};'use strict';var _=require(_0x2eb8('0x0'));var util=require(_0x2eb8('0x1'));var logger=require(_0x2eb8('0x2'))(_0x2eb8('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2eb8('0x4'));var fs=require('fs');var path=require(_0x2eb8('0x5'));var rimraf=require(_0x2eb8('0x6'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0x2eb8('0x7')]=function(_0x5dfed0,_0x52217d){return _0x5dfed0[_0x2eb8('0x8')](_0x2eb8('0x9'),attributes,{'tableName':_0x2eb8('0xa'),'paranoid':![],'indexes':[{'name':_0x2eb8('0xb'),'fields':['idField',_0x2eb8('0xc')],'unique':!![]}],'timestamps':!![]});};