02a69998cc16c128150c14d22d735ae6b5efd77c
[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 _0x19f5=['util','moment','bluebird','request-promise','path','./intServicenowField.attributes','exports','define','ServicenowField','int_servicenow_fields','servicenow_unique_index','FieldId','lodash'];(function(_0xd6dd72,_0x495753){var _0xa712a2=function(_0x43f66f){while(--_0x43f66f){_0xd6dd72['push'](_0xd6dd72['shift']());}};_0xa712a2(++_0x495753);}(_0x19f5,0x103));var _0x519f=function(_0x5be692,_0x1aff5c){_0x5be692=_0x5be692-0x0;var _0x4e5793=_0x19f5[_0x5be692];return _0x4e5793;};'use strict';var _=require(_0x519f('0x0'));var util=require(_0x519f('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x519f('0x2'));var BPromise=require(_0x519f('0x3'));var rp=require(_0x519f('0x4'));var fs=require('fs');var path=require(_0x519f('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x519f('0x6'));module[_0x519f('0x7')]=function(_0xf80131,_0x39cad3){return _0xf80131[_0x519f('0x8')](_0x519f('0x9'),attributes,{'tableName':_0x519f('0xa'),'paranoid':![],'indexes':[{'name':_0x519f('0xb'),'fields':['idField',_0x519f('0xc')],'unique':!![]}],'timestamps':!![]});};