1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8d8e=['fs-extra','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','/:id','show','post','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x39096d,_0x51f8a0){var _0x13da4f=function(_0x11e6b2){while(--_0x11e6b2){_0x39096d['push'](_0x39096d['shift']());}};_0x13da4f(++_0x51f8a0);}(_0x8d8e,0x12a));var _0xe8d8=function(_0x42245d,_0x51758f){_0x42245d=_0x42245d-0x0;var _0x4b211a=_0x8d8e[_0x42245d];return _0x4b211a;};'use strict';var multer=require(_0xe8d8('0x0'));var util=require(_0xe8d8('0x1'));var path=require(_0xe8d8('0x2'));var timeout=require(_0xe8d8('0x3'));var express=require(_0xe8d8('0x4'));var router=express[_0xe8d8('0x5')]();var fs_extra=require(_0xe8d8('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xe8d8('0x7'));var config=require(_0xe8d8('0x8'));var controller=require(_0xe8d8('0x9'));router[_0xe8d8('0xa')]('/',auth[_0xe8d8('0xb')](),controller['index']);router['get'](_0xe8d8('0xc'),auth['isAuthenticated'](),controller[_0xe8d8('0xd')]);router[_0xe8d8('0xe')]('/',auth[_0xe8d8('0xb')](),controller['create']);router['put']('/:id',auth[_0xe8d8('0xb')](),controller[_0xe8d8('0xf')]);router[_0xe8d8('0x10')](_0xe8d8('0xc'),auth[_0xe8d8('0xb')](),controller[_0xe8d8('0x11')]);module[_0xe8d8('0x12')]=router;