9259e7d53bc9348a94970829f0f5ed93974a3778
[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 _0x66a7=['destroy','exports','multer','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/:id','show','post','put','update','delete'];(function(_0x1e3770,_0xf28a5b){var _0x534abd=function(_0x317ee7){while(--_0x317ee7){_0x1e3770['push'](_0x1e3770['shift']());}};_0x534abd(++_0xf28a5b);}(_0x66a7,0x1ef));var _0x766a=function(_0x503a0c,_0xbc78c5){_0x503a0c=_0x503a0c-0x0;var _0x3b2e83=_0x66a7[_0x503a0c];return _0x3b2e83;};'use strict';var multer=require(_0x766a('0x0'));var util=require('util');var path=require(_0x766a('0x1'));var timeout=require(_0x766a('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x766a('0x3'));var auth=require(_0x766a('0x4'));var interaction=require(_0x766a('0x5'));var config=require('../../config/environment');var controller=require('./intServicenowField.controller');router['get']('/',auth[_0x766a('0x6')](),controller[_0x766a('0x7')]);router[_0x766a('0x8')](_0x766a('0x9'),auth['isAuthenticated'](),controller[_0x766a('0xa')]);router[_0x766a('0xb')]('/',auth[_0x766a('0x6')](),controller['create']);router[_0x766a('0xc')]('/:id',auth[_0x766a('0x6')](),controller[_0x766a('0xd')]);router[_0x766a('0xe')](_0x766a('0x9'),auth[_0x766a('0x6')](),controller[_0x766a('0xf')]);module[_0x766a('0x10')]=router;