3d2c673defa5a6c20c9c804ed84c257e8652d682
[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 _0x5667=['rimraf','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','util','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x5363b6,_0x20e896){var _0x334133=function(_0x414bb1){while(--_0x414bb1){_0x5363b6['push'](_0x5363b6['shift']());}};_0x334133(++_0x20e896);}(_0x5667,0xcc));var _0x7566=function(_0x5ebe9d,_0x145664){_0x5ebe9d=_0x5ebe9d-0x0;var _0x23a220=_0x5667[_0x5ebe9d];return _0x23a220;};'use strict';var _=require('lodash');var util=require(_0x7566('0x0'));var logger=require(_0x7566('0x1'))('api');var moment=require(_0x7566('0x2'));var BPromise=require(_0x7566('0x3'));var rp=require(_0x7566('0x4'));var fs=require('fs');var path=require(_0x7566('0x5'));var rimraf=require(_0x7566('0x6'));var config=require('../../config/environment');var attributes=require(_0x7566('0x7'));module[_0x7566('0x8')]=function(_0x1d2187,_0x51ea1a){return _0x1d2187[_0x7566('0x9')](_0x7566('0xa'),attributes,{'tableName':_0x7566('0xb'),'paranoid':![],'indexes':[{'name':_0x7566('0xc'),'fields':[_0x7566('0xd'),_0x7566('0xe')],'unique':!![]}],'timestamps':!![]});};