89177f5ed0e17b4806af9b6c5ecaf8074462fe48
[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 _0x0fe4=['destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../config/environment','./intServicenowField.controller','isAuthenticated','index','get','/:id','show','create','put','update','delete'];(function(_0x39dd63,_0x68919e){var _0x2ef1e7=function(_0x456b02){while(--_0x456b02){_0x39dd63['push'](_0x39dd63['shift']());}};_0x2ef1e7(++_0x68919e);}(_0x0fe4,0xa4));var _0x40fe=function(_0x337627,_0x5f0682){_0x337627=_0x337627-0x0;var _0x1457ed=_0x0fe4[_0x337627];return _0x1457ed;};'use strict';var multer=require(_0x40fe('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x40fe('0x1'));var express=require(_0x40fe('0x2'));var router=express[_0x40fe('0x3')]();var fs_extra=require(_0x40fe('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x40fe('0x5'));var controller=require(_0x40fe('0x6'));router['get']('/',auth[_0x40fe('0x7')](),controller[_0x40fe('0x8')]);router[_0x40fe('0x9')](_0x40fe('0xa'),auth['isAuthenticated'](),controller[_0x40fe('0xb')]);router['post']('/',auth[_0x40fe('0x7')](),controller[_0x40fe('0xc')]);router[_0x40fe('0xd')](_0x40fe('0xa'),auth[_0x40fe('0x7')](),controller[_0x40fe('0xe')]);router[_0x40fe('0xf')](_0x40fe('0xa'),auth[_0x40fe('0x7')](),controller[_0x40fe('0x10')]);module[_0x40fe('0x11')]=router;