99934e7a7d58351b23642ea6d2c67987a2d28f7b
[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 _0x5562=['define','ServicenowField','servicenow_unique_index','idField','FieldId','util','api','path','rimraf','../../config/environment','./intServicenowField.attributes','exports'];(function(_0x36ed48,_0x1ee0d4){var _0x51c63a=function(_0x2d0a40){while(--_0x2d0a40){_0x36ed48['push'](_0x36ed48['shift']());}};_0x51c63a(++_0x1ee0d4);}(_0x5562,0x185));var _0x2556=function(_0x4bf760,_0x960da5){_0x4bf760=_0x4bf760-0x0;var _0x7395e9=_0x5562[_0x4bf760];return _0x7395e9;};'use strict';var _=require('lodash');var util=require(_0x2556('0x0'));var logger=require('../../config/logger')(_0x2556('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x2556('0x2'));var rimraf=require(_0x2556('0x3'));var config=require(_0x2556('0x4'));var attributes=require(_0x2556('0x5'));module[_0x2556('0x6')]=function(_0x508f86,_0x400b8f){return _0x508f86[_0x2556('0x7')](_0x2556('0x8'),attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':_0x2556('0x9'),'fields':[_0x2556('0xa'),_0x2556('0xb')],'unique':!![]}],'timestamps':!![]});};