2236890a92f052f1e8e9e436921ee5897bd0a722
[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 _0x67ad=['idField','FieldId','lodash','../../config/logger','api','path','../../config/environment','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index'];(function(_0x5317b5,_0x4dfd6e){var _0x3b7ce2=function(_0xc146d6){while(--_0xc146d6){_0x5317b5['push'](_0x5317b5['shift']());}};_0x3b7ce2(++_0x4dfd6e);}(_0x67ad,0xaa));var _0xd67a=function(_0x22015a,_0x157c50){_0x22015a=_0x22015a-0x0;var _0x59cbbb=_0x67ad[_0x22015a];return _0x59cbbb;};'use strict';var _=require(_0xd67a('0x0'));var util=require('util');var logger=require(_0xd67a('0x1'))(_0xd67a('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xd67a('0x3'));var rimraf=require('rimraf');var config=require(_0xd67a('0x4'));var attributes=require('./intServicenowField.attributes');module[_0xd67a('0x5')]=function(_0x21552c,_0x34adb4){return _0x21552c[_0xd67a('0x6')](_0xd67a('0x7'),attributes,{'tableName':_0xd67a('0x8'),'paranoid':![],'indexes':[{'name':_0xd67a('0x9'),'fields':[_0xd67a('0xa'),_0xd67a('0xb')],'unique':!![]}],'timestamps':!![]});};