Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / disposition / 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 _0x1453=['put','update','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./disposition.controller','isAuthenticated','index','get','/:id','show','post','create'];(function(_0x3fc448,_0x22060d){var _0x3618f4=function(_0x430c5e){while(--_0x430c5e){_0x3fc448['push'](_0x3fc448['shift']());}};_0x3618f4(++_0x22060d);}(_0x1453,0x1e4));var _0x3145=function(_0x27f8b8,_0x6acb65){_0x27f8b8=_0x27f8b8-0x0;var _0x2cd274=_0x1453[_0x27f8b8];return _0x2cd274;};'use strict';var multer=require(_0x3145('0x0'));var util=require('util');var path=require(_0x3145('0x1'));var timeout=require(_0x3145('0x2'));var express=require(_0x3145('0x3'));var router=express[_0x3145('0x4')]();var fs_extra=require(_0x3145('0x5'));var auth=require(_0x3145('0x6'));var interaction=require(_0x3145('0x7'));var config=require('../../config/environment');var controller=require(_0x3145('0x8'));router['get']('/',auth[_0x3145('0x9')](),controller[_0x3145('0xa')]);router[_0x3145('0xb')](_0x3145('0xc'),auth[_0x3145('0x9')](),controller[_0x3145('0xd')]);router[_0x3145('0xe')]('/',auth['isAuthenticated'](),controller[_0x3145('0xf')]);router[_0x3145('0x10')](_0x3145('0xc'),auth[_0x3145('0x9')](),controller[_0x3145('0x11')]);router[_0x3145('0x12')]('/:id',auth[_0x3145('0x9')](),controller[_0x3145('0x13')]);module['exports']=router;