Built motion from commit 4c281f94.|2.6.31
[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 _0x7f91=['delete','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','/:id/clone','put','update'];(function(_0x53cfff,_0x341a9f){var _0x4a5d72=function(_0x271ee2){while(--_0x271ee2){_0x53cfff['push'](_0x53cfff['shift']());}};_0x4a5d72(++_0x341a9f);}(_0x7f91,0x1ca));var _0x17f9=function(_0x553c2a,_0x592c23){_0x553c2a=_0x553c2a-0x0;var _0x37988b=_0x7f91[_0x553c2a];return _0x37988b;};'use strict';var multer=require(_0x17f9('0x0'));var util=require(_0x17f9('0x1'));var path=require('path');var timeout=require(_0x17f9('0x2'));var express=require(_0x17f9('0x3'));var router=express['Router']();var fs_extra=require(_0x17f9('0x4'));var auth=require(_0x17f9('0x5'));var interaction=require(_0x17f9('0x6'));var config=require(_0x17f9('0x7'));var controller=require('./trunk.controller');router[_0x17f9('0x8')]('/',auth['isAuthenticated'](),controller[_0x17f9('0x9')]);router[_0x17f9('0x8')](_0x17f9('0xa'),auth[_0x17f9('0xb')](),controller[_0x17f9('0xc')]);router[_0x17f9('0xd')](_0x17f9('0xe'),auth[_0x17f9('0xb')](),controller['clone']);router[_0x17f9('0xd')]('/',auth[_0x17f9('0xb')](),controller['create']);router[_0x17f9('0xf')](_0x17f9('0xa'),auth[_0x17f9('0xb')](),controller[_0x17f9('0x10')]);router[_0x17f9('0x11')](_0x17f9('0xa'),auth[_0x17f9('0xb')](),controller['destroy']);module[_0x17f9('0x12')]=router;