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 _0x3031=['./trunk.controller','isAuthenticated','index','get','/:id','post','/:id/clone','clone','put','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x364a36,_0x1e2677){var _0x5cd6fa=function(_0x58d692){while(--_0x58d692){_0x364a36['push'](_0x364a36['shift']());}};_0x5cd6fa(++_0x1e2677);}(_0x3031,0x70));var _0x1303=function(_0x5e23d4,_0x54bf44){_0x5e23d4=_0x5e23d4-0x0;var _0x2b32a3=_0x3031[_0x5e23d4];return _0x2b32a3;};'use strict';var multer=require(_0x1303('0x0'));var util=require('util');var path=require(_0x1303('0x1'));var timeout=require(_0x1303('0x2'));var express=require(_0x1303('0x3'));var router=express[_0x1303('0x4')]();var fs_extra=require(_0x1303('0x5'));var auth=require(_0x1303('0x6'));var interaction=require(_0x1303('0x7'));var config=require('../../config/environment');var controller=require(_0x1303('0x8'));router['get']('/',auth[_0x1303('0x9')](),controller[_0x1303('0xa')]);router[_0x1303('0xb')](_0x1303('0xc'),auth[_0x1303('0x9')](),controller['show']);router[_0x1303('0xd')](_0x1303('0xe'),auth[_0x1303('0x9')](),controller[_0x1303('0xf')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x1303('0x10')](_0x1303('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x1303('0x11')](_0x1303('0xc'),auth[_0x1303('0x9')](),controller[_0x1303('0x12')]);module[_0x1303('0x13')]=router;