Built motion from commit 9d1906d1.|2.5.40
[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 _0x945e=['isAuthenticated','show','post','/:id/clone','create','put','update','destroy','exports','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','index','/:id'];(function(_0xd5bb22,_0x5cfccb){var _0x2d105a=function(_0x54b74c){while(--_0x54b74c){_0xd5bb22['push'](_0xd5bb22['shift']());}};_0x2d105a(++_0x5cfccb);}(_0x945e,0x15f));var _0xe945=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x945e[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xe945('0x0'));var express=require(_0xe945('0x1'));var router=express['Router']();var fs_extra=require(_0xe945('0x2'));var auth=require(_0xe945('0x3'));var interaction=require(_0xe945('0x4'));var config=require(_0xe945('0x5'));var controller=require(_0xe945('0x6'));router[_0xe945('0x7')]('/',auth['isAuthenticated'](),controller[_0xe945('0x8')]);router[_0xe945('0x7')](_0xe945('0x9'),auth[_0xe945('0xa')](),controller[_0xe945('0xb')]);router[_0xe945('0xc')](_0xe945('0xd'),auth[_0xe945('0xa')](),controller['clone']);router[_0xe945('0xc')]('/',auth[_0xe945('0xa')](),controller[_0xe945('0xe')]);router[_0xe945('0xf')]('/:id',auth[_0xe945('0xa')](),controller[_0xe945('0x10')]);router['delete'](_0xe945('0x9'),auth[_0xe945('0xa')](),controller[_0xe945('0x11')]);module[_0xe945('0x12')]=router;