ad721a8ed2a4eb2997a08365805d25840d90de50
[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 _0x3d1b=['update','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','./intServicenowField.controller','get','isAuthenticated','index','show','post','put','/:id'];(function(_0x39f798,_0x20022c){var _0x54c225=function(_0x168ed7){while(--_0x168ed7){_0x39f798['push'](_0x39f798['shift']());}};_0x54c225(++_0x20022c);}(_0x3d1b,0xc2));var _0xb3d1=function(_0x1abd98,_0x4efa0b){_0x1abd98=_0x1abd98-0x0;var _0x547194=_0x3d1b[_0x1abd98];return _0x547194;};'use strict';var multer=require('multer');var util=require(_0xb3d1('0x0'));var path=require(_0xb3d1('0x1'));var timeout=require(_0xb3d1('0x2'));var express=require(_0xb3d1('0x3'));var router=express[_0xb3d1('0x4')]();var auth=require(_0xb3d1('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb3d1('0x6'));router[_0xb3d1('0x7')]('/',auth[_0xb3d1('0x8')](),controller[_0xb3d1('0x9')]);router['get']('/:id',auth[_0xb3d1('0x8')](),controller[_0xb3d1('0xa')]);router[_0xb3d1('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xb3d1('0xc')](_0xb3d1('0xd'),auth['isAuthenticated'](),controller[_0xb3d1('0xe')]);router['delete'](_0xb3d1('0xd'),auth[_0xb3d1('0x8')](),controller[_0xb3d1('0xf')]);module['exports']=router;