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 _0xc772=['multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intVtigerField.controller','get','isAuthenticated','show','post','create','put','/:id','update','delete','destroy'];(function(_0x44389c,_0x73f05e){var _0x329b1b=function(_0x18aab4){while(--_0x18aab4){_0x44389c['push'](_0x44389c['shift']());}};_0x329b1b(++_0x73f05e);}(_0xc772,0x7e));var _0x2c77=function(_0x38ac4,_0x5f3612){_0x38ac4=_0x38ac4-0x0;var _0x4e895e=_0xc772[_0x38ac4];return _0x4e895e;};'use strict';var multer=require(_0x2c77('0x0'));var util=require(_0x2c77('0x1'));var path=require('path');var timeout=require(_0x2c77('0x2'));var express=require(_0x2c77('0x3'));var router=express[_0x2c77('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x2c77('0x5'));var config=require(_0x2c77('0x6'));var controller=require(_0x2c77('0x7'));router[_0x2c77('0x8')]('/',auth[_0x2c77('0x9')](),controller['index']);router['get']('/:id',auth[_0x2c77('0x9')](),controller[_0x2c77('0xa')]);router[_0x2c77('0xb')]('/',auth[_0x2c77('0x9')](),controller[_0x2c77('0xc')]);router[_0x2c77('0xd')](_0x2c77('0xe'),auth[_0x2c77('0x9')](),controller[_0x2c77('0xf')]);router[_0x2c77('0x10')](_0x2c77('0xe'),auth[_0x2c77('0x9')](),controller[_0x2c77('0x11')]);module['exports']=router;