Built motion from commit (unavailable).|2.5.7
[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 _0x4c16=['post','put','/:id','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index'];(function(_0x34d49c,_0x3f2263){var _0x896881=function(_0x13b0c8){while(--_0x13b0c8){_0x34d49c['push'](_0x34d49c['shift']());}};_0x896881(++_0x3f2263);}(_0x4c16,0x9b));var _0x64c1=function(_0x120900,_0x1b16c7){_0x120900=_0x120900-0x0;var _0x356528=_0x4c16[_0x120900];return _0x356528;};'use strict';var multer=require(_0x64c1('0x0'));var util=require(_0x64c1('0x1'));var path=require('path');var timeout=require(_0x64c1('0x2'));var express=require(_0x64c1('0x3'));var router=express[_0x64c1('0x4')]();var auth=require(_0x64c1('0x5'));var interaction=require(_0x64c1('0x6'));var config=require('../../config/environment');var controller=require('./disposition.controller');router[_0x64c1('0x7')]('/',auth[_0x64c1('0x8')](),controller[_0x64c1('0x9')]);router[_0x64c1('0x7')]('/:id',auth[_0x64c1('0x8')](),controller['show']);router[_0x64c1('0xa')]('/',auth[_0x64c1('0x8')](),controller['create']);router[_0x64c1('0xb')](_0x64c1('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x64c1('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x64c1('0xe')]);module['exports']=router;