Built motion from commit (unavailable).|2.4.21
[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 _0x80a5=['lodash','util','api','moment','bluebird','request-promise','../../config/environment','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField','FieldId'];(function(_0x251343,_0x26a17b){var _0x49dc1c=function(_0x3a7c4c){while(--_0x3a7c4c){_0x251343['push'](_0x251343['shift']());}};_0x49dc1c(++_0x26a17b);}(_0x80a5,0xb4));var _0x580a=function(_0x3b071b,_0x1022e9){_0x3b071b=_0x3b071b-0x0;var _0x4844af=_0x80a5[_0x3b071b];return _0x4844af;};'use strict';var _=require(_0x580a('0x0'));var util=require(_0x580a('0x1'));var logger=require('../../config/logger')(_0x580a('0x2'));var moment=require(_0x580a('0x3'));var BPromise=require(_0x580a('0x4'));var rp=require(_0x580a('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x580a('0x6'));var attributes=require(_0x580a('0x7'));module[_0x580a('0x8')]=function(_0x3e0b47,_0x3f98b6){return _0x3e0b47[_0x580a('0x9')](_0x580a('0xa'),attributes,{'tableName':_0x580a('0xb'),'paranoid':![],'indexes':[{'name':_0x580a('0xc'),'fields':[_0x580a('0xd'),_0x580a('0xe')],'unique':!![]}],'timestamps':!![]});};