Built motion from commit b0a9a629.|2.6.33
[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 _0x78dc=['int_servicenow_fields','idField','FieldId','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./intServicenowField.attributes','exports','ServicenowField'];(function(_0x4b055c,_0x4b870b){var _0x4b62bb=function(_0x4884c2){while(--_0x4884c2){_0x4b055c['push'](_0x4b055c['shift']());}};_0x4b62bb(++_0x4b870b);}(_0x78dc,0x199));var _0xc78d=function(_0x3ff2f9,_0x544ba1){_0x3ff2f9=_0x3ff2f9-0x0;var _0x3b0913=_0x78dc[_0x3ff2f9];return _0x3b0913;};'use strict';var _=require(_0xc78d('0x0'));var util=require('util');var logger=require(_0xc78d('0x1'))(_0xc78d('0x2'));var moment=require(_0xc78d('0x3'));var BPromise=require(_0xc78d('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc78d('0x5'));var rimraf=require(_0xc78d('0x6'));var config=require(_0xc78d('0x7'));var attributes=require(_0xc78d('0x8'));module[_0xc78d('0x9')]=function(_0x2ebc33,_0xd55dc){return _0x2ebc33['define'](_0xc78d('0xa'),attributes,{'tableName':_0xc78d('0xb'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0xc78d('0xc'),_0xc78d('0xd')],'unique':!![]}],'timestamps':!![]});};