7ca26f2f9b7db705c86cb578dd608a7dee284913
[motion2.git] / server / api / trunk / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x25f8=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','/:id','post','update','delete','exports'];(function(_0x52f8a3,_0x207aa4){var _0x5bb341=function(_0x132515){while(--_0x132515){_0x52f8a3['push'](_0x52f8a3['shift']());}};_0x5bb341(++_0x207aa4);}(_0x25f8,0xdd));var _0x825f=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x25f8[_0x40a045];return _0x1a687c;};'use strict';var multer=require(_0x825f('0x0'));var util=require(_0x825f('0x1'));var path=require(_0x825f('0x2'));var timeout=require(_0x825f('0x3'));var express=require(_0x825f('0x4'));var router=express[_0x825f('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x825f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x825f('0x7'));var controller=require(_0x825f('0x8'));router[_0x825f('0x9')]('/',auth[_0x825f('0xa')](),controller[_0x825f('0xb')]);router[_0x825f('0x9')](_0x825f('0xc'),auth[_0x825f('0xa')](),controller['show']);router[_0x825f('0xd')]('/:id/clone',auth['isAuthenticated'](),controller['clone']);router[_0x825f('0xd')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x825f('0xc'),auth[_0x825f('0xa')](),controller[_0x825f('0xe')]);router[_0x825f('0xf')](_0x825f('0xc'),auth[_0x825f('0xa')](),controller['destroy']);module[_0x825f('0x10')]=router;