b03b40cdac7e5058903f9e028f711f1821a8ea41
[motion2.git] / server / api / intServicenowAccount / 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 _0x0fda=['destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','/:id','show','get','getConfigurations','/:id/fields','getFields','post','/:id/configurations','addConfiguration','put','update','delete'];(function(_0x30662f,_0x4d202e){var _0x40d038=function(_0x10bb41){while(--_0x10bb41){_0x30662f['push'](_0x30662f['shift']());}};_0x40d038(++_0x4d202e);}(_0x0fda,0x1a0));var _0xa0fd=function(_0x35b302,_0x523dd6){_0x35b302=_0x35b302-0x0;var _0x1603ba=_0x0fda[_0x35b302];return _0x1603ba;};'use strict';var multer=require(_0xa0fd('0x0'));var util=require('util');var path=require(_0xa0fd('0x1'));var timeout=require(_0xa0fd('0x2'));var express=require(_0xa0fd('0x3'));var router=express[_0xa0fd('0x4')]();var auth=require(_0xa0fd('0x5'));var interaction=require(_0xa0fd('0x6'));var config=require(_0xa0fd('0x7'));var controller=require('./intServicenowAccount.controller');router['get']('/',auth[_0xa0fd('0x8')](),controller['index']);router['get'](_0xa0fd('0x9'),auth[_0xa0fd('0x8')](),controller[_0xa0fd('0xa')]);router[_0xa0fd('0xb')]('/:id/configurations',auth[_0xa0fd('0x8')](),controller[_0xa0fd('0xc')]);router[_0xa0fd('0xb')](_0xa0fd('0xd'),auth['isAuthenticated'](),controller[_0xa0fd('0xe')]);router[_0xa0fd('0xf')]('/',auth[_0xa0fd('0x8')](),controller['create']);router[_0xa0fd('0xf')](_0xa0fd('0x10'),auth[_0xa0fd('0x8')](),controller[_0xa0fd('0x11')]);router[_0xa0fd('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xa0fd('0x13')]);router[_0xa0fd('0x14')]('/:id',auth[_0xa0fd('0x8')](),controller[_0xa0fd('0x15')]);module[_0xa0fd('0x16')]=router;