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 _0xfed3=['moment','request-promise','path','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','util','api'];(function(_0x26b3e4,_0x230936){var _0x24b741=function(_0x4190ae){while(--_0x4190ae){_0x26b3e4['push'](_0x26b3e4['shift']());}};_0x24b741(++_0x230936);}(_0xfed3,0x1df));var _0x3fed=function(_0x286bfb,_0x46ac3c){_0x286bfb=_0x286bfb-0x0;var _0x52b683=_0xfed3[_0x286bfb];return _0x52b683;};'use strict';var _=require('lodash');var util=require(_0x3fed('0x0'));var logger=require('../../config/logger')(_0x3fed('0x1'));var moment=require(_0x3fed('0x2'));var BPromise=require('bluebird');var rp=require(_0x3fed('0x3'));var fs=require('fs');var path=require(_0x3fed('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x3fed('0x5'));module[_0x3fed('0x6')]=function(_0xcba565,_0xd9b698){return _0xcba565[_0x3fed('0x7')](_0x3fed('0x8'),attributes,{'tableName':_0x3fed('0x9'),'paranoid':![],'indexes':[{'name':_0x3fed('0xa'),'fields':[_0x3fed('0xb'),_0x3fed('0xc')],'unique':!![]}],'timestamps':!![]});};