Built motion from commit (unavailable).|2.5.14
[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 _0x191b=['util','path','connect-timeout','express','Router','isAuthenticated','index','get','/:id','getConfigurations','/:id/fields','create','/:id/configurations','addConfiguration','put','exports'];(function(_0x2db9fc,_0x12ed7f){var _0x2b5a00=function(_0x57f392){while(--_0x57f392){_0x2db9fc['push'](_0x2db9fc['shift']());}};_0x2b5a00(++_0x12ed7f);}(_0x191b,0x100));var _0xb191=function(_0x867c76,_0x189595){_0x867c76=_0x867c76-0x0;var _0x2cf797=_0x191b[_0x867c76];return _0x2cf797;};'use strict';var multer=require('multer');var util=require(_0xb191('0x0'));var path=require(_0xb191('0x1'));var timeout=require(_0xb191('0x2'));var express=require(_0xb191('0x3'));var router=express[_0xb191('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intServicenowAccount.controller');router['get']('/',auth[_0xb191('0x5')](),controller[_0xb191('0x6')]);router[_0xb191('0x7')](_0xb191('0x8'),auth[_0xb191('0x5')](),controller['show']);router['get']('/:id/configurations',auth[_0xb191('0x5')](),controller[_0xb191('0x9')]);router['get'](_0xb191('0xa'),auth[_0xb191('0x5')](),controller['getFields']);router['post']('/',auth[_0xb191('0x5')](),controller[_0xb191('0xb')]);router['post'](_0xb191('0xc'),auth[_0xb191('0x5')](),controller[_0xb191('0xd')]);router[_0xb191('0xe')]('/:id',auth[_0xb191('0x5')](),controller['update']);router['delete'](_0xb191('0x8'),auth[_0xb191('0x5')](),controller['destroy']);module[_0xb191('0xf')]=router;