47059367082ffb5fef4fabba0a654313d0775c70
[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 _0x6a72=['multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','index','/:id','show','post','isAuthenticated','create','put','update','destroy'];(function(_0x20ec0c,_0x3b2c26){var _0x3b52a0=function(_0x1e02ab){while(--_0x1e02ab){_0x20ec0c['push'](_0x20ec0c['shift']());}};_0x3b52a0(++_0x3b2c26);}(_0x6a72,0xd8));var _0x26a7=function(_0x38854e,_0x23cbc9){_0x38854e=_0x38854e-0x0;var _0x3f8415=_0x6a72[_0x38854e];return _0x3f8415;};'use strict';var multer=require(_0x26a7('0x0'));var util=require(_0x26a7('0x1'));var path=require('path');var timeout=require(_0x26a7('0x2'));var express=require(_0x26a7('0x3'));var router=express[_0x26a7('0x4')]();var fs_extra=require(_0x26a7('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x26a7('0x6'));var config=require(_0x26a7('0x7'));var controller=require('./intServicenowField.controller');router[_0x26a7('0x8')]('/',auth['isAuthenticated'](),controller[_0x26a7('0x9')]);router[_0x26a7('0x8')](_0x26a7('0xa'),auth['isAuthenticated'](),controller[_0x26a7('0xb')]);router[_0x26a7('0xc')]('/',auth[_0x26a7('0xd')](),controller[_0x26a7('0xe')]);router[_0x26a7('0xf')]('/:id',auth[_0x26a7('0xd')](),controller[_0x26a7('0x10')]);router['delete'](_0x26a7('0xa'),auth[_0x26a7('0xd')](),controller[_0x26a7('0x11')]);module['exports']=router;