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 _0x5790=['path','rimraf','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','../../config/logger','api','moment'];(function(_0x5a35fe,_0x3a72c3){var _0x5933d4=function(_0x23c3e0){while(--_0x23c3e0){_0x5a35fe['push'](_0x5a35fe['shift']());}};_0x5933d4(++_0x3a72c3);}(_0x5790,0x1b7));var _0x0579=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x5790[_0x167cc1];return _0x10bc4b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x0579('0x0'))(_0x0579('0x1'));var moment=require(_0x0579('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x0579('0x3'));var rimraf=require(_0x0579('0x4'));var config=require(_0x0579('0x5'));var attributes=require(_0x0579('0x6'));module[_0x0579('0x7')]=function(_0x3fb6b7,_0xca0ee4){return _0x3fb6b7[_0x0579('0x8')](_0x0579('0x9'),attributes,{'tableName':_0x0579('0xa'),'paranoid':![],'indexes':[{'name':_0x0579('0xb'),'fields':[_0x0579('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};