Built motion from commit c116dc8b.|2.6.30
[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 _0x9f63=['int_servicenow_fields','idField','FieldId','lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intServicenowField.attributes','define','ServicenowField'];(function(_0xb42ec4,_0x4d30bf){var _0x20efce=function(_0x117894){while(--_0x117894){_0xb42ec4['push'](_0xb42ec4['shift']());}};_0x20efce(++_0x4d30bf);}(_0x9f63,0x161));var _0x39f6=function(_0x415853,_0x43c025){_0x415853=_0x415853-0x0;var _0x17411d=_0x9f63[_0x415853];return _0x17411d;};'use strict';var _=require(_0x39f6('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x39f6('0x1'));var moment=require(_0x39f6('0x2'));var BPromise=require(_0x39f6('0x3'));var rp=require(_0x39f6('0x4'));var fs=require('fs');var path=require(_0x39f6('0x5'));var rimraf=require(_0x39f6('0x6'));var config=require(_0x39f6('0x7'));var attributes=require(_0x39f6('0x8'));module['exports']=function(_0x252f7b,_0x3fc69f){return _0x252f7b[_0x39f6('0x9')](_0x39f6('0xa'),attributes,{'tableName':_0x39f6('0xb'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0x39f6('0xc'),_0x39f6('0xd')],'unique':!![]}],'timestamps':!![]});};