Built motion from commit 47436d59.|2.6.7
[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 _0xdc09=['int_servicenow_fields','servicenow_unique_index','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','exports','define'];(function(_0x33c1b1,_0x2355fb){var _0x2c2037=function(_0x1200fd){while(--_0x1200fd){_0x33c1b1['push'](_0x33c1b1['shift']());}};_0x2c2037(++_0x2355fb);}(_0xdc09,0x65));var _0x9dc0=function(_0x26641c,_0x1ba2a5){_0x26641c=_0x26641c-0x0;var _0x42c01a=_0xdc09[_0x26641c];return _0x42c01a;};'use strict';var _=require(_0x9dc0('0x0'));var util=require(_0x9dc0('0x1'));var logger=require(_0x9dc0('0x2'))(_0x9dc0('0x3'));var moment=require(_0x9dc0('0x4'));var BPromise=require(_0x9dc0('0x5'));var rp=require(_0x9dc0('0x6'));var fs=require('fs');var path=require(_0x9dc0('0x7'));var rimraf=require(_0x9dc0('0x8'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0x9dc0('0x9')]=function(_0x3705cd,_0x3a9af6){return _0x3705cd[_0x9dc0('0xa')]('ServicenowField',attributes,{'tableName':_0x9dc0('0xb'),'paranoid':![],'indexes':[{'name':_0x9dc0('0xc'),'fields':['idField',_0x9dc0('0xd')],'unique':!![]}],'timestamps':!![]});};