a157962e4c403f3aa0ff91369d1fc5dbb06a03c9
[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 _0x2e28=['idField','FieldId','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index'];(function(_0x8544c0,_0x3095e7){var _0x1d0b9c=function(_0x5656e4){while(--_0x5656e4){_0x8544c0['push'](_0x8544c0['shift']());}};_0x1d0b9c(++_0x3095e7);}(_0x2e28,0x12e));var _0x82e2=function(_0x513315,_0x30ae66){_0x513315=_0x513315-0x0;var _0x1ceb7b=_0x2e28[_0x513315];return _0x1ceb7b;};'use strict';var _=require('lodash');var util=require(_0x82e2('0x0'));var logger=require(_0x82e2('0x1'))(_0x82e2('0x2'));var moment=require(_0x82e2('0x3'));var BPromise=require(_0x82e2('0x4'));var rp=require(_0x82e2('0x5'));var fs=require('fs');var path=require(_0x82e2('0x6'));var rimraf=require(_0x82e2('0x7'));var config=require('../../config/environment');var attributes=require('./intServicenowField.attributes');module[_0x82e2('0x8')]=function(_0x51e0dc,_0x1f3ede){return _0x51e0dc[_0x82e2('0x9')](_0x82e2('0xa'),attributes,{'tableName':_0x82e2('0xb'),'paranoid':![],'indexes':[{'name':_0x82e2('0xc'),'fields':[_0x82e2('0xd'),_0x82e2('0xe')],'unique':!![]}],'timestamps':!![]});};