Built motion from commit (unavailable).|2.5.4
[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 _0x6ac0=['post','create','put','/:id','update','delete','destroy','exports','multer','util','path','Router','../../components/interaction/service','./intServicenowConfiguration.controller','get','isAuthenticated','index','show','/:id/subjects','getSubjects','/:id/descriptions'];(function(_0x1623be,_0x582355){var _0x23f9df=function(_0xb98c4e){while(--_0xb98c4e){_0x1623be['push'](_0x1623be['shift']());}};_0x23f9df(++_0x582355);}(_0x6ac0,0x119));var _0x06ac=function(_0x54fed0,_0x349159){_0x54fed0=_0x54fed0-0x0;var _0x527ced=_0x6ac0[_0x54fed0];return _0x527ced;};'use strict';var multer=require(_0x06ac('0x0'));var util=require(_0x06ac('0x1'));var path=require(_0x06ac('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x06ac('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x06ac('0x4'));var config=require('../../config/environment');var controller=require(_0x06ac('0x5'));router[_0x06ac('0x6')]('/',auth[_0x06ac('0x7')](),controller[_0x06ac('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x06ac('0x9')]);router[_0x06ac('0x6')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router[_0x06ac('0x6')](_0x06ac('0xa'),auth[_0x06ac('0x7')](),controller[_0x06ac('0xb')]);router[_0x06ac('0x6')](_0x06ac('0xc'),auth[_0x06ac('0x7')](),controller['getDescriptions']);router[_0x06ac('0xd')]('/',auth['isAuthenticated'](),controller[_0x06ac('0xe')]);router[_0x06ac('0xf')](_0x06ac('0x10'),auth[_0x06ac('0x7')](),controller[_0x06ac('0x11')]);router[_0x06ac('0x12')](_0x06ac('0x10'),auth[_0x06ac('0x7')](),controller[_0x06ac('0x13')]);module[_0x06ac('0x14')]=router;