Built motion from commit 25580385.|2.6.2
[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 _0x1324=['ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define'];(function(_0x31f201,_0x49649f){var _0x407796=function(_0x23fc83){while(--_0x23fc83){_0x31f201['push'](_0x31f201['shift']());}};_0x407796(++_0x49649f);}(_0x1324,0x163));var _0x4132=function(_0x94084f,_0x146371){_0x94084f=_0x94084f-0x0;var _0x33ae15=_0x1324[_0x94084f];return _0x33ae15;};'use strict';var _=require('lodash');var util=require(_0x4132('0x0'));var logger=require(_0x4132('0x1'))('api');var moment=require(_0x4132('0x2'));var BPromise=require(_0x4132('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4132('0x4'));var rimraf=require(_0x4132('0x5'));var config=require(_0x4132('0x6'));var attributes=require('./intServicenowField.attributes');module[_0x4132('0x7')]=function(_0x37c486,_0x5f5924){return _0x37c486[_0x4132('0x8')](_0x4132('0x9'),attributes,{'tableName':_0x4132('0xa'),'paranoid':![],'indexes':[{'name':_0x4132('0xb'),'fields':[_0x4132('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};