5871ef64316d1e15b9e68ca7b0eb2463adac2353
[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 _0xf505=['moment','bluebird','request-promise','path','../../config/environment','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','util','../../config/logger','api'];(function(_0x1a0875,_0x5596d3){var _0x1888f4=function(_0x3890c7){while(--_0x3890c7){_0x1a0875['push'](_0x1a0875['shift']());}};_0x1888f4(++_0x5596d3);}(_0xf505,0x1cb));var _0x5f50=function(_0x4bc428,_0xf56dd9){_0x4bc428=_0x4bc428-0x0;var _0x3ca37f=_0xf505[_0x4bc428];return _0x3ca37f;};'use strict';var _=require('lodash');var util=require(_0x5f50('0x0'));var logger=require(_0x5f50('0x1'))(_0x5f50('0x2'));var moment=require(_0x5f50('0x3'));var BPromise=require(_0x5f50('0x4'));var rp=require(_0x5f50('0x5'));var fs=require('fs');var path=require(_0x5f50('0x6'));var rimraf=require('rimraf');var config=require(_0x5f50('0x7'));var attributes=require('./intServicenowField.attributes');module[_0x5f50('0x8')]=function(_0x59d6c6,_0xccfd54){return _0x59d6c6[_0x5f50('0x9')](_0x5f50('0xa'),attributes,{'tableName':_0x5f50('0xb'),'paranoid':![],'indexes':[{'name':_0x5f50('0xc'),'fields':[_0x5f50('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};