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 _0x5c12=['./trunk.controller','get','index','/:id','post','/:id/clone','isAuthenticated','clone','create','put','update','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x68549,_0x317635){var _0x19df84=function(_0x4926d1){while(--_0x4926d1){_0x68549['push'](_0x68549['shift']());}};_0x19df84(++_0x317635);}(_0x5c12,0x188));var _0x25c1=function(_0x5f25b3,_0x35481a){_0x5f25b3=_0x5f25b3-0x0;var _0x4ab9bf=_0x5c12[_0x5f25b3];return _0x4ab9bf;};'use strict';var multer=require('multer');var util=require(_0x25c1('0x0'));var path=require(_0x25c1('0x1'));var timeout=require('connect-timeout');var express=require(_0x25c1('0x2'));var router=express[_0x25c1('0x3')]();var auth=require(_0x25c1('0x4'));var interaction=require(_0x25c1('0x5'));var config=require(_0x25c1('0x6'));var controller=require(_0x25c1('0x7'));router[_0x25c1('0x8')]('/',auth['isAuthenticated'](),controller[_0x25c1('0x9')]);router[_0x25c1('0x8')](_0x25c1('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x25c1('0xb')](_0x25c1('0xc'),auth[_0x25c1('0xd')](),controller[_0x25c1('0xe')]);router[_0x25c1('0xb')]('/',auth['isAuthenticated'](),controller[_0x25c1('0xf')]);router[_0x25c1('0x10')](_0x25c1('0xa'),auth[_0x25c1('0xd')](),controller[_0x25c1('0x11')]);router['delete'](_0x25c1('0xa'),auth[_0x25c1('0xd')](),controller['destroy']);module[_0x25c1('0x12')]=router;