8aed90ca0ab5aeb70ba0700a0710439b2f48fae5
[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 _0x6fb2=['FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','./intServicenowField.attributes','exports','ServicenowField','idField'];(function(_0x415f22,_0x512d86){var _0x110a75=function(_0x51d6fc){while(--_0x51d6fc){_0x415f22['push'](_0x415f22['shift']());}};_0x110a75(++_0x512d86);}(_0x6fb2,0x1ef));var _0x26fb=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x6fb2[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require(_0x26fb('0x0'));var util=require(_0x26fb('0x1'));var logger=require(_0x26fb('0x2'))(_0x26fb('0x3'));var moment=require('moment');var BPromise=require(_0x26fb('0x4'));var rp=require(_0x26fb('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x26fb('0x6'));var config=require(_0x26fb('0x7'));var attributes=require(_0x26fb('0x8'));module[_0x26fb('0x9')]=function(_0x12e383,_0x3fdcb4){return _0x12e383['define'](_0x26fb('0xa'),attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0x26fb('0xb'),_0x26fb('0xc')],'unique':!![]}],'timestamps':!![]});};