Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / intServicenowConfiguration / 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 _0x372a=['util','path','express','../../components/auth/service','../../components/interaction/service','./intServicenowConfiguration.controller','isAuthenticated','index','/:id','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create','destroy','exports'];(function(_0x4ded9d,_0x5058a6){var _0x344df9=function(_0x3271c4){while(--_0x3271c4){_0x4ded9d['push'](_0x4ded9d['shift']());}};_0x344df9(++_0x5058a6);}(_0x372a,0x156));var _0xa372=function(_0x4ffa32,_0x1f897e){_0x4ffa32=_0x4ffa32-0x0;var _0x1067cb=_0x372a[_0x4ffa32];return _0x1067cb;};'use strict';var multer=require('multer');var util=require(_0xa372('0x0'));var path=require(_0xa372('0x1'));var timeout=require('connect-timeout');var express=require(_0xa372('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa372('0x3'));var interaction=require(_0xa372('0x4'));var config=require('../../config/environment');var controller=require(_0xa372('0x5'));router['get']('/',auth[_0xa372('0x6')](),controller[_0xa372('0x7')]);router['get'](_0xa372('0x8'),auth[_0xa372('0x6')](),controller['show']);router['get'](_0xa372('0x9'),auth[_0xa372('0x6')](),controller[_0xa372('0xa')]);router['get'](_0xa372('0xb'),auth[_0xa372('0x6')](),controller[_0xa372('0xc')]);router['get'](_0xa372('0xd'),auth['isAuthenticated'](),controller[_0xa372('0xe')]);router['post']('/',auth[_0xa372('0x6')](),controller[_0xa372('0xf')]);router['put']('/:id',auth[_0xa372('0x6')](),controller['update']);router['delete']('/:id',auth[_0xa372('0x6')](),controller[_0xa372('0x10')]);module[_0xa372('0x11')]=router;