a2fcf82a893a49a718f2d10efa156778e24b2236
[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 _0x51fe=['/:id/configurations','getFields','post','create','addConfiguration','put','delete','destroy','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show'];(function(_0x417c78,_0x1b34a1){var _0x485add=function(_0x316e49){while(--_0x316e49){_0x417c78['push'](_0x417c78['shift']());}};_0x485add(++_0x1b34a1);}(_0x51fe,0x1d0));var _0xe51f=function(_0x1349e6,_0x119138){_0x1349e6=_0x1349e6-0x0;var _0x4762d0=_0x51fe[_0x1349e6];return _0x4762d0;};'use strict';var multer=require('multer');var util=require(_0xe51f('0x0'));var path=require(_0xe51f('0x1'));var timeout=require(_0xe51f('0x2'));var express=require('express');var router=express[_0xe51f('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xe51f('0x4'));var config=require(_0xe51f('0x5'));var controller=require('./intServicenowAccount.controller');router[_0xe51f('0x6')]('/',auth[_0xe51f('0x7')](),controller[_0xe51f('0x8')]);router[_0xe51f('0x6')](_0xe51f('0x9'),auth[_0xe51f('0x7')](),controller[_0xe51f('0xa')]);router[_0xe51f('0x6')](_0xe51f('0xb'),auth['isAuthenticated'](),controller['getConfigurations']);router[_0xe51f('0x6')]('/:id/fields',auth[_0xe51f('0x7')](),controller[_0xe51f('0xc')]);router[_0xe51f('0xd')]('/',auth[_0xe51f('0x7')](),controller[_0xe51f('0xe')]);router[_0xe51f('0xd')]('/:id/configurations',auth[_0xe51f('0x7')](),controller[_0xe51f('0xf')]);router[_0xe51f('0x10')](_0xe51f('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xe51f('0x11')](_0xe51f('0x9'),auth[_0xe51f('0x7')](),controller[_0xe51f('0x12')]);module['exports']=router;