Built motion from commit ddca4d0d.|2.5.47
[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 _0x01a1=['path','rimraf','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','util','moment'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x01a1,0x172));var _0x101a=function(_0x1600eb,_0x6c2d5c){_0x1600eb=_0x1600eb-0x0;var _0xbde592=_0x01a1[_0x1600eb];return _0xbde592;};'use strict';var _=require('lodash');var util=require(_0x101a('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x101a('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x101a('0x2'));var rimraf=require(_0x101a('0x3'));var config=require(_0x101a('0x4'));var attributes=require(_0x101a('0x5'));module[_0x101a('0x6')]=function(_0x2cbd4f,_0x47b9d6){return _0x2cbd4f[_0x101a('0x7')](_0x101a('0x8'),attributes,{'tableName':_0x101a('0x9'),'paranoid':![],'indexes':[{'name':_0x101a('0xa'),'fields':[_0x101a('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};