4c043cecaa2355cb51d087719e66ef11715a5874
[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 _0xfe4a=['util','../../config/logger','moment','bluebird','request-promise','path','rimraf','exports','int_servicenow_fields','servicenow_unique_index','idField','FieldId','lodash'];(function(_0x5219fb,_0x5a69ee){var _0x30717b=function(_0x2861be){while(--_0x2861be){_0x5219fb['push'](_0x5219fb['shift']());}};_0x30717b(++_0x5a69ee);}(_0xfe4a,0x15e));var _0xafe4=function(_0xc4001c,_0x1bf8f0){_0xc4001c=_0xc4001c-0x0;var _0x49f7bc=_0xfe4a[_0xc4001c];return _0x49f7bc;};'use strict';var _=require(_0xafe4('0x0'));var util=require(_0xafe4('0x1'));var logger=require(_0xafe4('0x2'))('api');var moment=require(_0xafe4('0x3'));var BPromise=require(_0xafe4('0x4'));var rp=require(_0xafe4('0x5'));var fs=require('fs');var path=require(_0xafe4('0x6'));var rimraf=require(_0xafe4('0x7'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0xafe4('0x8')]=function(_0x5eb465,_0x4c3437){return _0x5eb465['define']('ServicenowField',attributes,{'tableName':_0xafe4('0x9'),'paranoid':![],'indexes':[{'name':_0xafe4('0xa'),'fields':[_0xafe4('0xb'),_0xafe4('0xc')],'unique':!![]}],'timestamps':!![]});};