Built motion from commit (unavailable).|2.4.18
[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 _0xe97d=['FieldId','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./intServicenowField.attributes','exports','ServicenowField','int_servicenow_fields','servicenow_unique_index','idField'];(function(_0x4af72f,_0xd67b2e){var _0x5a25e4=function(_0x3f7724){while(--_0x3f7724){_0x4af72f['push'](_0x4af72f['shift']());}};_0x5a25e4(++_0xd67b2e);}(_0xe97d,0x1e1));var _0xde97=function(_0x196a3b,_0x5f13ce){_0x196a3b=_0x196a3b-0x0;var _0x1f3d3c=_0xe97d[_0x196a3b];return _0x1f3d3c;};'use strict';var _=require('lodash');var util=require(_0xde97('0x0'));var logger=require(_0xde97('0x1'))(_0xde97('0x2'));var moment=require(_0xde97('0x3'));var BPromise=require(_0xde97('0x4'));var rp=require(_0xde97('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xde97('0x6'));var config=require(_0xde97('0x7'));var attributes=require(_0xde97('0x8'));module[_0xde97('0x9')]=function(_0x1de0bb,_0x2e57a1){return _0x1de0bb['define'](_0xde97('0xa'),attributes,{'tableName':_0xde97('0xb'),'paranoid':![],'indexes':[{'name':_0xde97('0xc'),'fields':[_0xde97('0xd'),_0xde97('0xe')],'unique':!![]}],'timestamps':!![]});};