65bc88ceee96f83c1eccac23934094aff3f4a642
[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 _0x61a5=['multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','index','show','getConfigurations','/:id/fields','getFields','post','/:id/configurations','addConfiguration','put','/:id','update','destroy','exports'];(function(_0x3fe47b,_0x4541c4){var _0xb14aa8=function(_0x2d7c0a){while(--_0x2d7c0a){_0x3fe47b['push'](_0x3fe47b['shift']());}};_0xb14aa8(++_0x4541c4);}(_0x61a5,0x19e));var _0x561a=function(_0x493c8c,_0x470567){_0x493c8c=_0x493c8c-0x0;var _0x17344b=_0x61a5[_0x493c8c];return _0x17344b;};'use strict';var multer=require(_0x561a('0x0'));var util=require('util');var path=require(_0x561a('0x1'));var timeout=require(_0x561a('0x2'));var express=require('express');var router=express[_0x561a('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x561a('0x4'));var interaction=require(_0x561a('0x5'));var config=require(_0x561a('0x6'));var controller=require(_0x561a('0x7'));router[_0x561a('0x8')]('/',auth[_0x561a('0x9')](),controller[_0x561a('0xa')]);router[_0x561a('0x8')]('/:id',auth[_0x561a('0x9')](),controller[_0x561a('0xb')]);router[_0x561a('0x8')]('/:id/configurations',auth[_0x561a('0x9')](),controller[_0x561a('0xc')]);router['get'](_0x561a('0xd'),auth[_0x561a('0x9')](),controller[_0x561a('0xe')]);router[_0x561a('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x561a('0xf')](_0x561a('0x10'),auth[_0x561a('0x9')](),controller[_0x561a('0x11')]);router[_0x561a('0x12')](_0x561a('0x13'),auth[_0x561a('0x9')](),controller[_0x561a('0x14')]);router['delete'](_0x561a('0x13'),auth[_0x561a('0x9')](),controller[_0x561a('0x15')]);module[_0x561a('0x16')]=router;