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 _0x42cf=['bluebird','path','rimraf','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','util','api','moment'];(function(_0x57142b,_0x458e84){var _0x136771=function(_0x285644){while(--_0x285644){_0x57142b['push'](_0x57142b['shift']());}};_0x136771(++_0x458e84);}(_0x42cf,0x99));var _0xf42c=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x42cf[_0x17d9e3];return _0x14192d;};'use strict';var _=require('lodash');var util=require(_0xf42c('0x0'));var logger=require('../../config/logger')(_0xf42c('0x1'));var moment=require(_0xf42c('0x2'));var BPromise=require(_0xf42c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf42c('0x4'));var rimraf=require(_0xf42c('0x5'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0xf42c('0x6')]=function(_0x3aea7c,_0x32c88b){return _0x3aea7c[_0xf42c('0x7')](_0xf42c('0x8'),attributes,{'tableName':_0xf42c('0x9'),'paranoid':![],'indexes':[{'name':_0xf42c('0xa'),'fields':[_0xf42c('0xb'),_0xf42c('0xc')],'unique':!![]}],'timestamps':!![]});};