03018331184992be7942c164e857d74e31fb28f8
[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 _0x86ae=['api','bluebird','request-promise','path','rimraf','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','lodash','util','../../config/logger'];(function(_0x21f884,_0xdb2582){var _0x55e6f2=function(_0x324af7){while(--_0x324af7){_0x21f884['push'](_0x21f884['shift']());}};_0x55e6f2(++_0xdb2582);}(_0x86ae,0xfd));var _0xe86a=function(_0x2bd382,_0x156cb4){_0x2bd382=_0x2bd382-0x0;var _0x2ebbf7=_0x86ae[_0x2bd382];return _0x2ebbf7;};'use strict';var _=require(_0xe86a('0x0'));var util=require(_0xe86a('0x1'));var logger=require(_0xe86a('0x2'))(_0xe86a('0x3'));var moment=require('moment');var BPromise=require(_0xe86a('0x4'));var rp=require(_0xe86a('0x5'));var fs=require('fs');var path=require(_0xe86a('0x6'));var rimraf=require(_0xe86a('0x7'));var config=require('../../config/environment');var attributes=require(_0xe86a('0x8'));module[_0xe86a('0x9')]=function(_0xafadd0,_0x213954){return _0xafadd0[_0xe86a('0xa')](_0xe86a('0xb'),attributes,{'tableName':_0xe86a('0xc'),'paranoid':![],'indexes':[{'name':_0xe86a('0xd'),'fields':[_0xe86a('0xe'),_0xe86a('0xf')],'unique':!![]}],'timestamps':!![]});};