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 _0x6f22=['ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','lodash','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x381379,_0x3f3b86){var _0x3e1063=function(_0x4c282d){while(--_0x4c282d){_0x381379['push'](_0x381379['shift']());}};_0x3e1063(++_0x3f3b86);}(_0x6f22,0x88));var _0x26f2=function(_0x2bc0f5,_0x44f336){_0x2bc0f5=_0x2bc0f5-0x0;var _0x42c6ac=_0x6f22[_0x2bc0f5];return _0x42c6ac;};'use strict';var _=require(_0x26f2('0x0'));var util=require('util');var logger=require(_0x26f2('0x1'))('api');var moment=require(_0x26f2('0x2'));var BPromise=require('bluebird');var rp=require(_0x26f2('0x3'));var fs=require('fs');var path=require(_0x26f2('0x4'));var rimraf=require(_0x26f2('0x5'));var config=require(_0x26f2('0x6'));var attributes=require('./intServicenowField.attributes');module[_0x26f2('0x7')]=function(_0x30cf73,_0x28c480){return _0x30cf73['define'](_0x26f2('0x8'),attributes,{'tableName':_0x26f2('0x9'),'paranoid':![],'indexes':[{'name':_0x26f2('0xa'),'fields':['idField',_0x26f2('0xb')],'unique':!![]}],'timestamps':!![]});};