dbe0d08639d4e2312def40886506d78c0e6f672a
[motion2.git] / server / api / intServicenowField / index.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 _0x24dd=['update','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intServicenowField.controller','index','get','/:id','isAuthenticated','show','create','put'];(function(_0x4e8dba,_0x2793b3){var _0x18f12e=function(_0x4922d7){while(--_0x4922d7){_0x4e8dba['push'](_0x4e8dba['shift']());}};_0x18f12e(++_0x2793b3);}(_0x24dd,0x133));var _0xd24d=function(_0x543084,_0x4337f5){_0x543084=_0x543084-0x0;var _0x306a57=_0x24dd[_0x543084];return _0x306a57;};'use strict';var multer=require(_0xd24d('0x0'));var util=require(_0xd24d('0x1'));var path=require(_0xd24d('0x2'));var timeout=require('connect-timeout');var express=require(_0xd24d('0x3'));var router=express[_0xd24d('0x4')]();var fs_extra=require(_0xd24d('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xd24d('0x6'));var config=require(_0xd24d('0x7'));var controller=require(_0xd24d('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xd24d('0x9')]);router[_0xd24d('0xa')](_0xd24d('0xb'),auth[_0xd24d('0xc')](),controller[_0xd24d('0xd')]);router['post']('/',auth[_0xd24d('0xc')](),controller[_0xd24d('0xe')]);router[_0xd24d('0xf')](_0xd24d('0xb'),auth['isAuthenticated'](),controller[_0xd24d('0x10')]);router['delete'](_0xd24d('0xb'),auth['isAuthenticated'](),controller[_0xd24d('0x11')]);module[_0xd24d('0x12')]=router;