5bfa7ed24fdc6292bfecc8d445db7d8fee7789f8
[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 _0xf2f6=['./intServicenowField.attributes','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x51a0ab,_0x56f62b){var _0x22d8fe=function(_0x350fa9){while(--_0x350fa9){_0x51a0ab['push'](_0x51a0ab['shift']());}};_0x22d8fe(++_0x56f62b);}(_0xf2f6,0xca));var _0x6f2f=function(_0x66efd2,_0x98dd94){_0x66efd2=_0x66efd2-0x0;var _0x5944ea=_0xf2f6[_0x66efd2];return _0x5944ea;};'use strict';var _=require('lodash');var util=require(_0x6f2f('0x0'));var logger=require(_0x6f2f('0x1'))(_0x6f2f('0x2'));var moment=require('moment');var BPromise=require(_0x6f2f('0x3'));var rp=require(_0x6f2f('0x4'));var fs=require('fs');var path=require(_0x6f2f('0x5'));var rimraf=require(_0x6f2f('0x6'));var config=require(_0x6f2f('0x7'));var attributes=require(_0x6f2f('0x8'));module['exports']=function(_0x42d5d0,_0x201566){return _0x42d5d0['define'](_0x6f2f('0x9'),attributes,{'tableName':_0x6f2f('0xa'),'paranoid':![],'indexes':[{'name':_0x6f2f('0xb'),'fields':[_0x6f2f('0xc'),_0x6f2f('0xd')],'unique':!![]}],'timestamps':!![]});};