df12434c689ada9a37eee4f4c7662d875a5c4343
[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 _0xb281=['multer','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','index','isAuthenticated','get','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','/:id','update','delete','destroy','exports'];(function(_0x2fd8fb,_0xf582c6){var _0x48debf=function(_0x145052){while(--_0x145052){_0x2fd8fb['push'](_0x2fd8fb['shift']());}};_0x48debf(++_0xf582c6);}(_0xb281,0x176));var _0x1b28=function(_0x20b80a,_0x252e33){_0x20b80a=_0x20b80a-0x0;var _0x127750=_0xb281[_0x20b80a];return _0x127750;};'use strict';var multer=require(_0x1b28('0x0'));var util=require('util');var path=require(_0x1b28('0x1'));var timeout=require('connect-timeout');var express=require(_0x1b28('0x2'));var router=express[_0x1b28('0x3')]();var fs_extra=require(_0x1b28('0x4'));var auth=require(_0x1b28('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1b28('0x6'));var controller=require('./intServicenowAccount.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x1b28('0x7')]);router['get']('/:id',auth[_0x1b28('0x8')](),controller['show']);router[_0x1b28('0x9')](_0x1b28('0xa'),auth[_0x1b28('0x8')](),controller['getConfigurations']);router['get'](_0x1b28('0xb'),auth[_0x1b28('0x8')](),controller[_0x1b28('0xc')]);router[_0x1b28('0xd')]('/',auth['isAuthenticated'](),controller[_0x1b28('0xe')]);router[_0x1b28('0xd')](_0x1b28('0xa'),auth[_0x1b28('0x8')](),controller[_0x1b28('0xf')]);router[_0x1b28('0x10')](_0x1b28('0x11'),auth['isAuthenticated'](),controller[_0x1b28('0x12')]);router[_0x1b28('0x13')](_0x1b28('0x11'),auth[_0x1b28('0x8')](),controller[_0x1b28('0x14')]);module[_0x1b28('0x15')]=router;