25c830cf8e137113041ed4c287a393d10c04c4d2
[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 _0xb5d4=['/:id/fields','getFields','post','create','update','delete','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations'];(function(_0x9a28a8,_0x1baa60){var _0x5acfa7=function(_0xcd2ad5){while(--_0xcd2ad5){_0x9a28a8['push'](_0x9a28a8['shift']());}};_0x5acfa7(++_0x1baa60);}(_0xb5d4,0xcc));var _0x4b5d=function(_0x370e4b,_0x1eb510){_0x370e4b=_0x370e4b-0x0;var _0xafbbb5=_0xb5d4[_0x370e4b];return _0xafbbb5;};'use strict';var multer=require(_0x4b5d('0x0'));var util=require(_0x4b5d('0x1'));var path=require(_0x4b5d('0x2'));var timeout=require(_0x4b5d('0x3'));var express=require(_0x4b5d('0x4'));var router=express[_0x4b5d('0x5')]();var auth=require(_0x4b5d('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x4b5d('0x7'));var controller=require(_0x4b5d('0x8'));router[_0x4b5d('0x9')]('/',auth[_0x4b5d('0xa')](),controller[_0x4b5d('0xb')]);router[_0x4b5d('0x9')](_0x4b5d('0xc'),auth[_0x4b5d('0xa')](),controller[_0x4b5d('0xd')]);router['get'](_0x4b5d('0xe'),auth[_0x4b5d('0xa')](),controller[_0x4b5d('0xf')]);router[_0x4b5d('0x9')](_0x4b5d('0x10'),auth[_0x4b5d('0xa')](),controller[_0x4b5d('0x11')]);router[_0x4b5d('0x12')]('/',auth['isAuthenticated'](),controller[_0x4b5d('0x13')]);router[_0x4b5d('0x12')](_0x4b5d('0xe'),auth['isAuthenticated'](),controller['addConfiguration']);router['put'](_0x4b5d('0xc'),auth[_0x4b5d('0xa')](),controller[_0x4b5d('0x14')]);router[_0x4b5d('0x15')](_0x4b5d('0xc'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;