Built motion from commit f7863d46.|2.5.41
[motion2.git] / server / api / intServicenowField / 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 _0x1bf3=['put','delete','destroy','exports','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create'];(function(_0x4a037e,_0xe35e83){var _0x3daa3c=function(_0x372a8a){while(--_0x372a8a){_0x4a037e['push'](_0x4a037e['shift']());}};_0x3daa3c(++_0xe35e83);}(_0x1bf3,0x1d8));var _0x31bf=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x1bf3[_0x57b54c];return _0x59cc19;};'use strict';var multer=require('multer');var util=require(_0x31bf('0x0'));var path=require('path');var timeout=require(_0x31bf('0x1'));var express=require('express');var router=express[_0x31bf('0x2')]();var fs_extra=require(_0x31bf('0x3'));var auth=require(_0x31bf('0x4'));var interaction=require(_0x31bf('0x5'));var config=require(_0x31bf('0x6'));var controller=require('./intServicenowField.controller');router['get']('/',auth[_0x31bf('0x7')](),controller[_0x31bf('0x8')]);router[_0x31bf('0x9')](_0x31bf('0xa'),auth[_0x31bf('0x7')](),controller[_0x31bf('0xb')]);router[_0x31bf('0xc')]('/',auth['isAuthenticated'](),controller[_0x31bf('0xd')]);router[_0x31bf('0xe')](_0x31bf('0xa'),auth[_0x31bf('0x7')](),controller['update']);router[_0x31bf('0xf')]('/:id',auth[_0x31bf('0x7')](),controller[_0x31bf('0x10')]);module[_0x31bf('0x11')]=router;