ee852f1f99fd6336742e2f358e30bf9c21c25ea5
[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 _0xa338=['post','create','put','/:id','update','destroy','exports','multer','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','index','show'];(function(_0x3c0f3e,_0x8c0b56){var _0x38300e=function(_0x1985ec){while(--_0x1985ec){_0x3c0f3e['push'](_0x3c0f3e['shift']());}};_0x38300e(++_0x8c0b56);}(_0xa338,0x85));var _0x8a33=function(_0x15cda9,_0x35861f){_0x15cda9=_0x15cda9-0x0;var _0x416e0b=_0xa338[_0x15cda9];return _0x416e0b;};'use strict';var multer=require(_0x8a33('0x0'));var util=require('util');var path=require(_0x8a33('0x1'));var timeout=require('connect-timeout');var express=require(_0x8a33('0x2'));var router=express['Router']();var auth=require(_0x8a33('0x3'));var interaction=require(_0x8a33('0x4'));var config=require(_0x8a33('0x5'));var controller=require(_0x8a33('0x6'));router[_0x8a33('0x7')]('/',auth[_0x8a33('0x8')](),controller[_0x8a33('0x9')]);router[_0x8a33('0x7')]('/:id',auth[_0x8a33('0x8')](),controller[_0x8a33('0xa')]);router[_0x8a33('0xb')]('/',auth['isAuthenticated'](),controller[_0x8a33('0xc')]);router[_0x8a33('0xd')](_0x8a33('0xe'),auth['isAuthenticated'](),controller[_0x8a33('0xf')]);router['delete']('/:id',auth[_0x8a33('0x8')](),controller[_0x8a33('0x10')]);module[_0x8a33('0x11')]=router;