Built motion from commit cb845558.|2.6.34
[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 _0x2c75=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./trunk.controller','isAuthenticated','index','/:id','show','post','/:id/clone','clone','create','put','update','destroy','exports','util'];(function(_0xad1f54,_0x1899cd){var _0x382340=function(_0xb2b529){while(--_0xb2b529){_0xad1f54['push'](_0xad1f54['shift']());}};_0x382340(++_0x1899cd);}(_0x2c75,0x7d));var _0x52c7=function(_0xbb091,_0x3fe7ee){_0xbb091=_0xbb091-0x0;var _0x467a04=_0x2c75[_0xbb091];return _0x467a04;};'use strict';var multer=require('multer');var util=require(_0x52c7('0x0'));var path=require(_0x52c7('0x1'));var timeout=require(_0x52c7('0x2'));var express=require(_0x52c7('0x3'));var router=express[_0x52c7('0x4')]();var fs_extra=require(_0x52c7('0x5'));var auth=require(_0x52c7('0x6'));var interaction=require(_0x52c7('0x7'));var config=require('../../config/environment');var controller=require(_0x52c7('0x8'));router['get']('/',auth[_0x52c7('0x9')](),controller[_0x52c7('0xa')]);router['get'](_0x52c7('0xb'),auth[_0x52c7('0x9')](),controller[_0x52c7('0xc')]);router[_0x52c7('0xd')](_0x52c7('0xe'),auth[_0x52c7('0x9')](),controller[_0x52c7('0xf')]);router[_0x52c7('0xd')]('/',auth[_0x52c7('0x9')](),controller[_0x52c7('0x10')]);router[_0x52c7('0x11')](_0x52c7('0xb'),auth['isAuthenticated'](),controller[_0x52c7('0x12')]);router['delete'](_0x52c7('0xb'),auth['isAuthenticated'](),controller[_0x52c7('0x13')]);module[_0x52c7('0x14')]=router;