Built motion from commit 3c2ce842.|2.6.31
[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 _0xe7db=['ServicenowField','servicenow_unique_index','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./intServicenowField.attributes','exports'];(function(_0x310bab,_0x27b562){var _0xc04981=function(_0xe847a7){while(--_0xe847a7){_0x310bab['push'](_0x310bab['shift']());}};_0xc04981(++_0x27b562);}(_0xe7db,0x1bd));var _0xbe7d=function(_0x3aaef5,_0x16cdc8){_0x3aaef5=_0x3aaef5-0x0;var _0x4c0ed5=_0xe7db[_0x3aaef5];return _0x4c0ed5;};'use strict';var _=require(_0xbe7d('0x0'));var util=require(_0xbe7d('0x1'));var logger=require(_0xbe7d('0x2'))(_0xbe7d('0x3'));var moment=require('moment');var BPromise=require(_0xbe7d('0x4'));var rp=require(_0xbe7d('0x5'));var fs=require('fs');var path=require(_0xbe7d('0x6'));var rimraf=require(_0xbe7d('0x7'));var config=require('../../config/environment');var attributes=require(_0xbe7d('0x8'));module[_0xbe7d('0x9')]=function(_0x40ceb8,_0x1b63ce){return _0x40ceb8['define'](_0xbe7d('0xa'),attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':_0xbe7d('0xb'),'fields':['idField',_0xbe7d('0xc')],'unique':!![]}],'timestamps':!![]});};