Built motion from commit 5293bb2a.|2.6.30
[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 _0x23e8=['./trunk.controller','get','index','show','post','isAuthenticated','clone','create','/:id','update','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3fd6ae,_0x332c75){var _0x204d55=function(_0xe316f3){while(--_0xe316f3){_0x3fd6ae['push'](_0x3fd6ae['shift']());}};_0x204d55(++_0x332c75);}(_0x23e8,0xac));var _0x823e=function(_0x39d294,_0xcb7a37){_0x39d294=_0x39d294-0x0;var _0x37c63f=_0x23e8[_0x39d294];return _0x37c63f;};'use strict';var multer=require(_0x823e('0x0'));var util=require(_0x823e('0x1'));var path=require('path');var timeout=require(_0x823e('0x2'));var express=require(_0x823e('0x3'));var router=express[_0x823e('0x4')]();var fs_extra=require(_0x823e('0x5'));var auth=require(_0x823e('0x6'));var interaction=require(_0x823e('0x7'));var config=require('../../config/environment');var controller=require(_0x823e('0x8'));router[_0x823e('0x9')]('/',auth['isAuthenticated'](),controller[_0x823e('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x823e('0xb')]);router[_0x823e('0xc')]('/:id/clone',auth[_0x823e('0xd')](),controller[_0x823e('0xe')]);router['post']('/',auth[_0x823e('0xd')](),controller[_0x823e('0xf')]);router['put'](_0x823e('0x10'),auth['isAuthenticated'](),controller[_0x823e('0x11')]);router['delete']('/:id',auth[_0x823e('0xd')](),controller[_0x823e('0x12')]);module[_0x823e('0x13')]=router;