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 _0xb982=['index','/:id','isAuthenticated','show','post','create','put','delete','destroy','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get'];(function(_0x316efa,_0x20a1e1){var _0x4d96cc=function(_0x4a0648){while(--_0x4a0648){_0x316efa['push'](_0x316efa['shift']());}};_0x4d96cc(++_0x20a1e1);}(_0xb982,0x15e));var _0x2b98=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xb982[_0x20a584];return _0x4b41a8;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2b98('0x0'));var timeout=require(_0x2b98('0x1'));var express=require(_0x2b98('0x2'));var router=express[_0x2b98('0x3')]();var fs_extra=require(_0x2b98('0x4'));var auth=require(_0x2b98('0x5'));var interaction=require(_0x2b98('0x6'));var config=require(_0x2b98('0x7'));var controller=require(_0x2b98('0x8'));router[_0x2b98('0x9')]('/',auth['isAuthenticated'](),controller[_0x2b98('0xa')]);router[_0x2b98('0x9')](_0x2b98('0xb'),auth[_0x2b98('0xc')](),controller[_0x2b98('0xd')]);router[_0x2b98('0xe')]('/',auth['isAuthenticated'](),controller[_0x2b98('0xf')]);router[_0x2b98('0x10')]('/:id',auth[_0x2b98('0xc')](),controller['update']);router[_0x2b98('0x11')](_0x2b98('0xb'),auth[_0x2b98('0xc')](),controller[_0x2b98('0x12')]);module[_0x2b98('0x13')]=router;