Built motion from commit 19a84241.|2.5.34
[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 _0x8a20=['get','show','post','/:id/clone','isAuthenticated','clone','create','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./trunk.controller'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0x8a20,0xb4));var _0x08a2=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x8a20[_0x3ab51d];return _0x29a04e;};'use strict';var multer=require(_0x08a2('0x0'));var util=require(_0x08a2('0x1'));var path=require(_0x08a2('0x2'));var timeout=require(_0x08a2('0x3'));var express=require(_0x08a2('0x4'));var router=express[_0x08a2('0x5')]();var fs_extra=require(_0x08a2('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x08a2('0x7'));var config=require('../../config/environment');var controller=require(_0x08a2('0x8'));router[_0x08a2('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x08a2('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x08a2('0xa')]);router[_0x08a2('0xb')](_0x08a2('0xc'),auth[_0x08a2('0xd')](),controller[_0x08a2('0xe')]);router['post']('/',auth[_0x08a2('0xd')](),controller[_0x08a2('0xf')]);router[_0x08a2('0x10')](_0x08a2('0x11'),auth[_0x08a2('0xd')](),controller[_0x08a2('0x12')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x08a2('0x13')]);module[_0x08a2('0x14')]=router;