fe438607f883b887dcc74f2982c82a1c17e0d3ba
[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 _0xde97=['./intServicenowField.attributes','exports','define','ServicenowField','servicenow_unique_index','FieldId','../../config/logger','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x28cf8e,_0x304f57){var _0xbb995c=function(_0x28d9ca){while(--_0x28d9ca){_0x28cf8e['push'](_0x28cf8e['shift']());}};_0xbb995c(++_0x304f57);}(_0xde97,0x192));var _0x7de9=function(_0x309d93,_0x157662){_0x309d93=_0x309d93-0x0;var _0x2dd61d=_0xde97[_0x309d93];return _0x2dd61d;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7de9('0x0'))('api');var moment=require(_0x7de9('0x1'));var BPromise=require(_0x7de9('0x2'));var rp=require(_0x7de9('0x3'));var fs=require('fs');var path=require(_0x7de9('0x4'));var rimraf=require('rimraf');var config=require(_0x7de9('0x5'));var attributes=require(_0x7de9('0x6'));module[_0x7de9('0x7')]=function(_0x2a97f0,_0x18c3e7){return _0x2a97f0[_0x7de9('0x8')](_0x7de9('0x9'),attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':_0x7de9('0xa'),'fields':['idField',_0x7de9('0xb')],'unique':!![]}],'timestamps':!![]});};