Built motion from commit 9e1ec266.|2.6.28
[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 _0x02ff=['bluebird','path','rimraf','../../config/environment','exports','ServicenowField','int_servicenow_fields','idField','FieldId','lodash','util','../../config/logger','api','moment'];(function(_0x5c5921,_0x333609){var _0x3870cf=function(_0x53f3fd){while(--_0x53f3fd){_0x5c5921['push'](_0x5c5921['shift']());}};_0x3870cf(++_0x333609);}(_0x02ff,0x183));var _0xf02f=function(_0x5f0d26,_0x41fe72){_0x5f0d26=_0x5f0d26-0x0;var _0x1c66cc=_0x02ff[_0x5f0d26];return _0x1c66cc;};'use strict';var _=require(_0xf02f('0x0'));var util=require(_0xf02f('0x1'));var logger=require(_0xf02f('0x2'))(_0xf02f('0x3'));var moment=require(_0xf02f('0x4'));var BPromise=require(_0xf02f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf02f('0x6'));var rimraf=require(_0xf02f('0x7'));var config=require(_0xf02f('0x8'));var attributes=require('./intServicenowField.attributes');module[_0xf02f('0x9')]=function(_0x4031b6,_0xdadd9){return _0x4031b6['define'](_0xf02f('0xa'),attributes,{'tableName':_0xf02f('0xb'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0xf02f('0xc'),_0xf02f('0xd')],'unique':!![]}],'timestamps':!![]});};