010f7dd2d15cd037e3d08a679ade24d84cf1907e
[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 _0xacb8=['../../components/auth/service','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','getFields','post','addConfiguration','put','/:id','update','destroy','exports','multer','path','connect-timeout','express','fs-extra'];(function(_0x3a5a0d,_0x328d15){var _0x4a005f=function(_0x50ed3a){while(--_0x50ed3a){_0x3a5a0d['push'](_0x3a5a0d['shift']());}};_0x4a005f(++_0x328d15);}(_0xacb8,0x119));var _0x8acb=function(_0x1b4b23,_0x5dd6d6){_0x1b4b23=_0x1b4b23-0x0;var _0x2a325b=_0xacb8[_0x1b4b23];return _0x2a325b;};'use strict';var multer=require(_0x8acb('0x0'));var util=require('util');var path=require(_0x8acb('0x1'));var timeout=require(_0x8acb('0x2'));var express=require(_0x8acb('0x3'));var router=express['Router']();var fs_extra=require(_0x8acb('0x4'));var auth=require(_0x8acb('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x8acb('0x6'));var controller=require(_0x8acb('0x7'));router[_0x8acb('0x8')]('/',auth[_0x8acb('0x9')](),controller[_0x8acb('0xa')]);router[_0x8acb('0x8')]('/:id',auth[_0x8acb('0x9')](),controller[_0x8acb('0xb')]);router[_0x8acb('0x8')](_0x8acb('0xc'),auth[_0x8acb('0x9')](),controller[_0x8acb('0xd')]);router['get']('/:id/fields',auth[_0x8acb('0x9')](),controller[_0x8acb('0xe')]);router[_0x8acb('0xf')]('/',auth[_0x8acb('0x9')](),controller['create']);router[_0x8acb('0xf')](_0x8acb('0xc'),auth['isAuthenticated'](),controller[_0x8acb('0x10')]);router[_0x8acb('0x11')](_0x8acb('0x12'),auth[_0x8acb('0x9')](),controller[_0x8acb('0x13')]);router['delete'](_0x8acb('0x12'),auth[_0x8acb('0x9')](),controller[_0x8acb('0x14')]);module[_0x8acb('0x15')]=router;