71a91bba0ef542b89edf84243f4391e968a4225d
[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 _0x7de1=['rimraf','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','idField','FieldId','lodash','util','../../config/logger','moment','request-promise'];(function(_0x53035a,_0xd828f7){var _0x2b4f20=function(_0x302330){while(--_0x302330){_0x53035a['push'](_0x53035a['shift']());}};_0x2b4f20(++_0xd828f7);}(_0x7de1,0xd8));var _0x17de=function(_0x31b5a5,_0x44376a){_0x31b5a5=_0x31b5a5-0x0;var _0x364cc9=_0x7de1[_0x31b5a5];return _0x364cc9;};'use strict';var _=require(_0x17de('0x0'));var util=require(_0x17de('0x1'));var logger=require(_0x17de('0x2'))('api');var moment=require(_0x17de('0x3'));var BPromise=require('bluebird');var rp=require(_0x17de('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x17de('0x5'));var config=require('../../config/environment');var attributes=require(_0x17de('0x6'));module[_0x17de('0x7')]=function(_0x1bc7b7,_0x584587){return _0x1bc7b7[_0x17de('0x8')](_0x17de('0x9'),attributes,{'tableName':_0x17de('0xa'),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0x17de('0xb'),_0x17de('0xc')],'unique':!![]}],'timestamps':!![]});};