Built motion from commit 44b1f254.|2.6.26
[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 _0x1106=['show','/:id/clone','post','create','put','update','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id'];(function(_0x4eda15,_0x28fa8c){var _0x292fe7=function(_0x2474f4){while(--_0x2474f4){_0x4eda15['push'](_0x4eda15['shift']());}};_0x292fe7(++_0x28fa8c);}(_0x1106,0x128));var _0x6110=function(_0x2d1ff8,_0xf72038){_0x2d1ff8=_0x2d1ff8-0x0;var _0x175754=_0x1106[_0x2d1ff8];return _0x175754;};'use strict';var multer=require(_0x6110('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6110('0x1'));var express=require(_0x6110('0x2'));var router=express[_0x6110('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x6110('0x4'));var interaction=require(_0x6110('0x5'));var config=require(_0x6110('0x6'));var controller=require('./trunk.controller');router[_0x6110('0x7')]('/',auth[_0x6110('0x8')](),controller['index']);router[_0x6110('0x7')](_0x6110('0x9'),auth['isAuthenticated'](),controller[_0x6110('0xa')]);router['post'](_0x6110('0xb'),auth[_0x6110('0x8')](),controller['clone']);router[_0x6110('0xc')]('/',auth[_0x6110('0x8')](),controller[_0x6110('0xd')]);router[_0x6110('0xe')](_0x6110('0x9'),auth['isAuthenticated'](),controller[_0x6110('0xf')]);router['delete'](_0x6110('0x9'),auth[_0x6110('0x8')](),controller['destroy']);module[_0x6110('0x10')]=router;