a6112018d6b75f4950957e4b561578fa52a72019
[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 _0xa10a=['../../config/environment','./disposition.controller','isAuthenticated','index','get','/:id','post','create','put','update','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x414eff,_0x850822){var _0x5cfec9=function(_0x3aaeaf){while(--_0x3aaeaf){_0x414eff['push'](_0x414eff['shift']());}};_0x5cfec9(++_0x850822);}(_0xa10a,0xf0));var _0xaa10=function(_0x365d5c,_0x228ae5){_0x365d5c=_0x365d5c-0x0;var _0x355a64=_0xa10a[_0x365d5c];return _0x355a64;};'use strict';var multer=require(_0xaa10('0x0'));var util=require('util');var path=require(_0xaa10('0x1'));var timeout=require(_0xaa10('0x2'));var express=require(_0xaa10('0x3'));var router=express[_0xaa10('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xaa10('0x5'));var interaction=require(_0xaa10('0x6'));var config=require(_0xaa10('0x7'));var controller=require(_0xaa10('0x8'));router['get']('/',auth[_0xaa10('0x9')](),controller[_0xaa10('0xa')]);router[_0xaa10('0xb')](_0xaa10('0xc'),auth[_0xaa10('0x9')](),controller['show']);router[_0xaa10('0xd')]('/',auth[_0xaa10('0x9')](),controller[_0xaa10('0xe')]);router[_0xaa10('0xf')](_0xaa10('0xc'),auth['isAuthenticated'](),controller[_0xaa10('0x10')]);router['delete'](_0xaa10('0xc'),auth[_0xaa10('0x9')](),controller[_0xaa10('0x11')]);module[_0xaa10('0x12')]=router;