Built motion from commit 1fa89557.|2.6.10
[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 _0x4f5a=['ServicenowField','servicenow_unique_index','idField','FieldId','lodash','util','../../config/logger','api','request-promise','../../config/environment','exports','define'];(function(_0x4f0a1e,_0xa0cfba){var _0x2457fe=function(_0x212ee3){while(--_0x212ee3){_0x4f0a1e['push'](_0x4f0a1e['shift']());}};_0x2457fe(++_0xa0cfba);}(_0x4f5a,0x16c));var _0xa4f5=function(_0x524d12,_0x17d41c){_0x524d12=_0x524d12-0x0;var _0x375ccb=_0x4f5a[_0x524d12];return _0x375ccb;};'use strict';var _=require(_0xa4f5('0x0'));var util=require(_0xa4f5('0x1'));var logger=require(_0xa4f5('0x2'))(_0xa4f5('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa4f5('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xa4f5('0x5'));var attributes=require('./intServicenowField.attributes');module[_0xa4f5('0x6')]=function(_0x2ac305,_0x2081b2){return _0x2ac305[_0xa4f5('0x7')](_0xa4f5('0x8'),attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':_0xa4f5('0x9'),'fields':[_0xa4f5('0xa'),_0xa4f5('0xb')],'unique':!![]}],'timestamps':!![]});};