4aa0a3fb05dd10ae6564f70338e9df6f5a413b62
[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 _0x3929=['request-promise','path','rimraf','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','lodash','util','moment','bluebird'];(function(_0x550c57,_0x545d16){var _0x12a674=function(_0xb04668){while(--_0xb04668){_0x550c57['push'](_0x550c57['shift']());}};_0x12a674(++_0x545d16);}(_0x3929,0xdc));var _0x9392=function(_0x4ac716,_0x40243f){_0x4ac716=_0x4ac716-0x0;var _0x35f56b=_0x3929[_0x4ac716];return _0x35f56b;};'use strict';var _=require(_0x9392('0x0'));var util=require(_0x9392('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x9392('0x2'));var BPromise=require(_0x9392('0x3'));var rp=require(_0x9392('0x4'));var fs=require('fs');var path=require(_0x9392('0x5'));var rimraf=require(_0x9392('0x6'));var config=require(_0x9392('0x7'));var attributes=require(_0x9392('0x8'));module[_0x9392('0x9')]=function(_0x575b1c,_0x336fc8){return _0x575b1c[_0x9392('0xa')](_0x9392('0xb'),attributes,{'tableName':_0x9392('0xc'),'paranoid':![],'indexes':[{'name':_0x9392('0xd'),'fields':[_0x9392('0xe'),_0x9392('0xf')],'unique':!![]}],'timestamps':!![]});};