04a782da87ae837ccfba1f109a1c8abf749c509a
[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 _0x3bcc=['index','/:id','show','post','/:id/clone','clone','put','delete','destroy','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated'];(function(_0x160876,_0x12ad17){var _0x484f5a=function(_0x4a8cd7){while(--_0x4a8cd7){_0x160876['push'](_0x160876['shift']());}};_0x484f5a(++_0x12ad17);}(_0x3bcc,0x11a));var _0xc3bc=function(_0x34b8d9,_0x10ede8){_0x34b8d9=_0x34b8d9-0x0;var _0x503172=_0x3bcc[_0x34b8d9];return _0x503172;};'use strict';var multer=require(_0xc3bc('0x0'));var util=require(_0xc3bc('0x1'));var path=require('path');var timeout=require(_0xc3bc('0x2'));var express=require(_0xc3bc('0x3'));var router=express[_0xc3bc('0x4')]();var fs_extra=require(_0xc3bc('0x5'));var auth=require(_0xc3bc('0x6'));var interaction=require(_0xc3bc('0x7'));var config=require(_0xc3bc('0x8'));var controller=require(_0xc3bc('0x9'));router[_0xc3bc('0xa')]('/',auth[_0xc3bc('0xb')](),controller[_0xc3bc('0xc')]);router[_0xc3bc('0xa')](_0xc3bc('0xd'),auth['isAuthenticated'](),controller[_0xc3bc('0xe')]);router[_0xc3bc('0xf')](_0xc3bc('0x10'),auth[_0xc3bc('0xb')](),controller[_0xc3bc('0x11')]);router[_0xc3bc('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0xc3bc('0x12')](_0xc3bc('0xd'),auth[_0xc3bc('0xb')](),controller['update']);router[_0xc3bc('0x13')](_0xc3bc('0xd'),auth[_0xc3bc('0xb')](),controller[_0xc3bc('0x14')]);module['exports']=router;