Built motion from commit ffdca78c.|2.6.24
[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 _0xbed4=['moment','bluebird','request-promise','exports','servicenow_unique_index','idField','FieldId','lodash','util'];(function(_0xb1647a,_0x220518){var _0x571081=function(_0x7eda9c){while(--_0x7eda9c){_0xb1647a['push'](_0xb1647a['shift']());}};_0x571081(++_0x220518);}(_0xbed4,0x142));var _0x4bed=function(_0x32e294,_0x410872){_0x32e294=_0x32e294-0x0;var _0x2d8a99=_0xbed4[_0x32e294];return _0x2d8a99;};'use strict';var _=require(_0x4bed('0x0'));var util=require(_0x4bed('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x4bed('0x2'));var BPromise=require(_0x4bed('0x3'));var rp=require(_0x4bed('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0x4bed('0x5')]=function(_0x12e53c,_0x45f6bf){return _0x12e53c['define']('ServicenowField',attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':_0x4bed('0x6'),'fields':[_0x4bed('0x7'),_0x4bed('0x8')],'unique':!![]}],'timestamps':!![]});};