35939cc940c5a6b0a65545ef0349ff07c3d70ccc
[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 _0x6c0d=['getConfigurations','post','addConfiguration','put','update','destroy','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./intServicenowAccount.controller','get','index','/:id','isAuthenticated','show','/:id/configurations'];(function(_0x414a33,_0x5bf179){var _0x1922bd=function(_0xa5ca9c){while(--_0xa5ca9c){_0x414a33['push'](_0x414a33['shift']());}};_0x1922bd(++_0x5bf179);}(_0x6c0d,0x132));var _0xd6c0=function(_0x2c6f10,_0xc65686){_0x2c6f10=_0x2c6f10-0x0;var _0x4f78c5=_0x6c0d[_0x2c6f10];return _0x4f78c5;};'use strict';var multer=require(_0xd6c0('0x0'));var util=require(_0xd6c0('0x1'));var path=require(_0xd6c0('0x2'));var timeout=require('connect-timeout');var express=require(_0xd6c0('0x3'));var router=express[_0xd6c0('0x4')]();var auth=require(_0xd6c0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd6c0('0x6'));var controller=require(_0xd6c0('0x7'));router[_0xd6c0('0x8')]('/',auth['isAuthenticated'](),controller[_0xd6c0('0x9')]);router[_0xd6c0('0x8')](_0xd6c0('0xa'),auth[_0xd6c0('0xb')](),controller[_0xd6c0('0xc')]);router[_0xd6c0('0x8')](_0xd6c0('0xd'),auth[_0xd6c0('0xb')](),controller[_0xd6c0('0xe')]);router[_0xd6c0('0x8')]('/:id/fields',auth[_0xd6c0('0xb')](),controller['getFields']);router['post']('/',auth[_0xd6c0('0xb')](),controller['create']);router[_0xd6c0('0xf')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xd6c0('0x10')]);router[_0xd6c0('0x11')](_0xd6c0('0xa'),auth[_0xd6c0('0xb')](),controller[_0xd6c0('0x12')]);router['delete'](_0xd6c0('0xa'),auth[_0xd6c0('0xb')](),controller[_0xd6c0('0x13')]);module['exports']=router;