318e1ce343660c85df43ce6c8f0138ad99b2ee05
[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 _0x9500=['path','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','lodash','util','api','bluebird'];(function(_0x375fa4,_0x12d344){var _0x1ed0cc=function(_0x2259ac){while(--_0x2259ac){_0x375fa4['push'](_0x375fa4['shift']());}};_0x1ed0cc(++_0x12d344);}(_0x9500,0x134));var _0x0950=function(_0x34167b,_0x5630f3){_0x34167b=_0x34167b-0x0;var _0x498e0c=_0x9500[_0x34167b];return _0x498e0c;};'use strict';var _=require(_0x0950('0x0'));var util=require(_0x0950('0x1'));var logger=require('../../config/logger')(_0x0950('0x2'));var moment=require('moment');var BPromise=require(_0x0950('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0950('0x4'));var rimraf=require('rimraf');var config=require(_0x0950('0x5'));var attributes=require(_0x0950('0x6'));module[_0x0950('0x7')]=function(_0x4b5969,_0x433e6d){return _0x4b5969[_0x0950('0x8')](_0x0950('0x9'),attributes,{'tableName':_0x0950('0xa'),'paranoid':![],'indexes':[{'name':_0x0950('0xb'),'fields':['idField',_0x0950('0xc')],'unique':!![]}],'timestamps':!![]});};