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 _0xd39c=['exports','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','post','clone','put','delete','/:id','destroy'];(function(_0x1477ef,_0x54a5d6){var _0x164acd=function(_0x139149){while(--_0x139149){_0x1477ef['push'](_0x1477ef['shift']());}};_0x164acd(++_0x54a5d6);}(_0xd39c,0x9a));var _0xcd39=function(_0x2fd8b9,_0x4f4e62){_0x2fd8b9=_0x2fd8b9-0x0;var _0x1be372=_0xd39c[_0x2fd8b9];return _0x1be372;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xcd39('0x0'));var express=require(_0xcd39('0x1'));var router=express[_0xcd39('0x2')]();var fs_extra=require(_0xcd39('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xcd39('0x4'));var config=require(_0xcd39('0x5'));var controller=require('./trunk.controller');router[_0xcd39('0x6')]('/',auth['isAuthenticated'](),controller[_0xcd39('0x7')]);router[_0xcd39('0x6')]('/:id',auth[_0xcd39('0x8')](),controller[_0xcd39('0x9')]);router[_0xcd39('0xa')]('/:id/clone',auth[_0xcd39('0x8')](),controller[_0xcd39('0xb')]);router[_0xcd39('0xa')]('/',auth[_0xcd39('0x8')](),controller['create']);router[_0xcd39('0xc')]('/:id',auth[_0xcd39('0x8')](),controller['update']);router[_0xcd39('0xd')](_0xcd39('0xe'),auth[_0xcd39('0x8')](),controller[_0xcd39('0xf')]);module[_0xcd39('0x10')]=router;