204fd03b8d8037c86b0ace9270f5131b51ba96cf
[motion2.git] / server / api / intServicenowField / intServicenowField.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x0e6b=['lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField'];(function(_0x3fbef5,_0x1b2d88){var _0x45caca=function(_0x509c54){while(--_0x509c54){_0x3fbef5['push'](_0x3fbef5['shift']());}};_0x45caca(++_0x1b2d88);}(_0x0e6b,0x69));var _0xb0e6=function(_0x4cfc1d,_0x2c0927){_0x4cfc1d=_0x4cfc1d-0x0;var _0x1c01a0=_0x0e6b[_0x4cfc1d];return _0x1c01a0;};'use strict';var _=require(_0xb0e6('0x0'));var util=require(_0xb0e6('0x1'));var logger=require('../../config/logger')(_0xb0e6('0x2'));var moment=require(_0xb0e6('0x3'));var BPromise=require(_0xb0e6('0x4'));var rp=require(_0xb0e6('0x5'));var fs=require('fs');var path=require(_0xb0e6('0x6'));var rimraf=require(_0xb0e6('0x7'));var config=require(_0xb0e6('0x8'));var attributes=require('./intServicenowField.attributes');module[_0xb0e6('0x9')]=function(_0x4ea75d,_0x16cb79){return _0x4ea75d[_0xb0e6('0xa')](_0xb0e6('0xb'),attributes,{'tableName':_0xb0e6('0xc'),'paranoid':![],'indexes':[{'name':_0xb0e6('0xd'),'fields':[_0xb0e6('0xe'),'FieldId'],'unique':!![]}],'timestamps':!![]});};