2642f90c8c2b03785f7e180d833e1c01c54fc90b
[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 _0xa3d1=['index','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated'];(function(_0x3a3e3d,_0x365f86){var _0x514fb1=function(_0x14a0c1){while(--_0x14a0c1){_0x3a3e3d['push'](_0x3a3e3d['shift']());}};_0x514fb1(++_0x365f86);}(_0xa3d1,0x126));var _0x1a3d=function(_0x490ea7,_0x304f01){_0x490ea7=_0x490ea7-0x0;var _0x3cd263=_0xa3d1[_0x490ea7];return _0x3cd263;};'use strict';var multer=require(_0x1a3d('0x0'));var util=require(_0x1a3d('0x1'));var path=require(_0x1a3d('0x2'));var timeout=require('connect-timeout');var express=require(_0x1a3d('0x3'));var router=express['Router']();var auth=require(_0x1a3d('0x4'));var interaction=require(_0x1a3d('0x5'));var config=require(_0x1a3d('0x6'));var controller=require(_0x1a3d('0x7'));router[_0x1a3d('0x8')]('/',auth[_0x1a3d('0x9')](),controller[_0x1a3d('0xa')]);router[_0x1a3d('0x8')]('/:id',auth[_0x1a3d('0x9')](),controller['show']);router[_0x1a3d('0x8')](_0x1a3d('0xb'),auth[_0x1a3d('0x9')](),controller['getConfigurations']);router[_0x1a3d('0x8')](_0x1a3d('0xc'),auth[_0x1a3d('0x9')](),controller[_0x1a3d('0xd')]);router[_0x1a3d('0xe')]('/',auth[_0x1a3d('0x9')](),controller[_0x1a3d('0xf')]);router[_0x1a3d('0xe')]('/:id/configurations',auth[_0x1a3d('0x9')](),controller[_0x1a3d('0x10')]);router[_0x1a3d('0x11')]('/:id',auth[_0x1a3d('0x9')](),controller['update']);router['delete']('/:id',auth[_0x1a3d('0x9')](),controller['destroy']);module[_0x1a3d('0x12')]=router;