de1ee7901c770554aa7cf17bf87e359c43782e76
[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 _0xa354=['delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intServicenowConfiguration.controller','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create','put','update'];(function(_0x431004,_0xc7125a){var _0x4b739c=function(_0x582822){while(--_0x582822){_0x431004['push'](_0x431004['shift']());}};_0x4b739c(++_0xc7125a);}(_0xa354,0xab));var _0x4a35=function(_0x578157,_0x762d0a){_0x578157=_0x578157-0x0;var _0x3005db=_0xa354[_0x578157];return _0x3005db;};'use strict';var multer=require(_0x4a35('0x0'));var util=require(_0x4a35('0x1'));var path=require('path');var timeout=require(_0x4a35('0x2'));var express=require(_0x4a35('0x3'));var router=express[_0x4a35('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x4a35('0x5'));var config=require(_0x4a35('0x6'));var controller=require(_0x4a35('0x7'));router[_0x4a35('0x8')]('/',auth[_0x4a35('0x9')](),controller[_0x4a35('0xa')]);router[_0x4a35('0x8')](_0x4a35('0xb'),auth[_0x4a35('0x9')](),controller[_0x4a35('0xc')]);router[_0x4a35('0x8')]('/:id/fields',auth[_0x4a35('0x9')](),controller[_0x4a35('0xd')]);router[_0x4a35('0x8')](_0x4a35('0xe'),auth[_0x4a35('0x9')](),controller[_0x4a35('0xf')]);router[_0x4a35('0x8')](_0x4a35('0x10'),auth[_0x4a35('0x9')](),controller[_0x4a35('0x11')]);router['post']('/',auth[_0x4a35('0x9')](),controller[_0x4a35('0x12')]);router[_0x4a35('0x13')](_0x4a35('0xb'),auth[_0x4a35('0x9')](),controller[_0x4a35('0x14')]);router[_0x4a35('0x15')](_0x4a35('0xb'),auth[_0x4a35('0x9')](),controller[_0x4a35('0x16')]);module[_0x4a35('0x17')]=router;