0fe634754b5aa9ab1a94c8ebf025654a28fa3335
[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 _0x208f=['define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','util','../../config/logger','request-promise','path','rimraf','../../config/environment','./intServicenowField.attributes','exports'];(function(_0x3b248a,_0x2eed41){var _0x29e371=function(_0x5ad2fb){while(--_0x5ad2fb){_0x3b248a['push'](_0x3b248a['shift']());}};_0x29e371(++_0x2eed41);}(_0x208f,0x84));var _0xf208=function(_0x5f0602,_0x4e9259){_0x5f0602=_0x5f0602-0x0;var _0x484aa2=_0x208f[_0x5f0602];return _0x484aa2;};'use strict';var _=require('lodash');var util=require(_0xf208('0x0'));var logger=require(_0xf208('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf208('0x2'));var fs=require('fs');var path=require(_0xf208('0x3'));var rimraf=require(_0xf208('0x4'));var config=require(_0xf208('0x5'));var attributes=require(_0xf208('0x6'));module[_0xf208('0x7')]=function(_0x276b32,_0x4a4703){return _0x276b32[_0xf208('0x8')](_0xf208('0x9'),attributes,{'tableName':_0xf208('0xa'),'paranoid':![],'indexes':[{'name':_0xf208('0xb'),'fields':[_0xf208('0xc'),_0xf208('0xd')],'unique':!![]}],'timestamps':!![]});};