Built motion from commit bab6f49e.|2.6.17
[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 _0x9e31=['util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./intServicenowField.attributes','exports','ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','lodash'];(function(_0x4a423e,_0x59ba7b){var _0x4ad91f=function(_0x55e261){while(--_0x55e261){_0x4a423e['push'](_0x4a423e['shift']());}};_0x4ad91f(++_0x59ba7b);}(_0x9e31,0xa7));var _0x19e3=function(_0x4b01eb,_0x3be755){_0x4b01eb=_0x4b01eb-0x0;var _0x3ba620=_0x9e31[_0x4b01eb];return _0x3ba620;};'use strict';var _=require(_0x19e3('0x0'));var util=require(_0x19e3('0x1'));var logger=require(_0x19e3('0x2'))('api');var moment=require('moment');var BPromise=require(_0x19e3('0x3'));var rp=require(_0x19e3('0x4'));var fs=require('fs');var path=require(_0x19e3('0x5'));var rimraf=require(_0x19e3('0x6'));var config=require(_0x19e3('0x7'));var attributes=require(_0x19e3('0x8'));module[_0x19e3('0x9')]=function(_0x31391b,_0x34bd19){return _0x31391b['define'](_0x19e3('0xa'),attributes,{'tableName':_0x19e3('0xb'),'paranoid':![],'indexes':[{'name':_0x19e3('0xc'),'fields':['idField',_0x19e3('0xd')],'unique':!![]}],'timestamps':!![]});};