Built motion from commit 753c950e.|2.5.42
[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 _0x3f1f=['../../config/environment','./trunk.controller','get','/:id','isAuthenticated','show','/:id/clone','clone','create','put','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x4d4376,_0x4396b2){var _0x2ccf85=function(_0x49561b){while(--_0x49561b){_0x4d4376['push'](_0x4d4376['shift']());}};_0x2ccf85(++_0x4396b2);}(_0x3f1f,0x1f1));var _0xf3f1=function(_0x33ecc6,_0x4bf8a6){_0x33ecc6=_0x33ecc6-0x0;var _0x5dd2c2=_0x3f1f[_0x33ecc6];return _0x5dd2c2;};'use strict';var multer=require('multer');var util=require(_0xf3f1('0x0'));var path=require(_0xf3f1('0x1'));var timeout=require(_0xf3f1('0x2'));var express=require(_0xf3f1('0x3'));var router=express[_0xf3f1('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf3f1('0x5'));var interaction=require(_0xf3f1('0x6'));var config=require(_0xf3f1('0x7'));var controller=require(_0xf3f1('0x8'));router[_0xf3f1('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf3f1('0x9')](_0xf3f1('0xa'),auth[_0xf3f1('0xb')](),controller[_0xf3f1('0xc')]);router['post'](_0xf3f1('0xd'),auth['isAuthenticated'](),controller[_0xf3f1('0xe')]);router['post']('/',auth[_0xf3f1('0xb')](),controller[_0xf3f1('0xf')]);router[_0xf3f1('0x10')]('/:id',auth[_0xf3f1('0xb')](),controller['update']);router['delete'](_0xf3f1('0xa'),auth[_0xf3f1('0xb')](),controller[_0xf3f1('0x11')]);module['exports']=router;