8510c1d830d679db1ca97817069d1c714881ac6b
[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 _0x2b6d=['int_servicenow_fields','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField'];(function(_0x34557c,_0x13537e){var _0x307c1c=function(_0x1bd4c1){while(--_0x1bd4c1){_0x34557c['push'](_0x34557c['shift']());}};_0x307c1c(++_0x13537e);}(_0x2b6d,0xa8));var _0xd2b6=function(_0x5d6897,_0xd4f8b5){_0x5d6897=_0x5d6897-0x0;var _0x52f3c6=_0x2b6d[_0x5d6897];return _0x52f3c6;};'use strict';var _=require(_0xd2b6('0x0'));var util=require(_0xd2b6('0x1'));var logger=require(_0xd2b6('0x2'))(_0xd2b6('0x3'));var moment=require(_0xd2b6('0x4'));var BPromise=require(_0xd2b6('0x5'));var rp=require(_0xd2b6('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xd2b6('0x7'));var attributes=require(_0xd2b6('0x8'));module[_0xd2b6('0x9')]=function(_0x2174eb,_0x5e2dbc){return _0x2174eb[_0xd2b6('0xa')](_0xd2b6('0xb'),attributes,{'tableName':_0xd2b6('0xc'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0xd2b6('0xd'),_0xd2b6('0xe')],'unique':!![]}],'timestamps':!![]});};