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