dc07c0360aa763bacb19b86c717f218b7fdbe965
[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 _0x8e0b=['api','bluebird','request-promise','path','rimraf','exports','define','int_servicenow_fields','servicenow_unique_index','FieldId','util','../../config/logger'];(function(_0x366e6e,_0x22c171){var _0x39c86a=function(_0x26d17a){while(--_0x26d17a){_0x366e6e['push'](_0x366e6e['shift']());}};_0x39c86a(++_0x22c171);}(_0x8e0b,0x11e));var _0xb8e0=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8e0b[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0xb8e0('0x0'));var logger=require(_0xb8e0('0x1'))(_0xb8e0('0x2'));var moment=require('moment');var BPromise=require(_0xb8e0('0x3'));var rp=require(_0xb8e0('0x4'));var fs=require('fs');var path=require(_0xb8e0('0x5'));var rimraf=require(_0xb8e0('0x6'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0xb8e0('0x7')]=function(_0x5dab34,_0x53a8be){return _0x5dab34[_0xb8e0('0x8')]('ServicenowField',attributes,{'tableName':_0xb8e0('0x9'),'paranoid':![],'indexes':[{'name':_0xb8e0('0xa'),'fields':['idField',_0xb8e0('0xb')],'unique':!![]}],'timestamps':!![]});};