8261eb1aeeb07d233ca1053674486798b37ab9ab
[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 _0x2af7=['isAuthenticated','index','/:id','show','post','create','put','delete','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','get'];(function(_0x183279,_0x4e7670){var _0x50e121=function(_0x2508a0){while(--_0x2508a0){_0x183279['push'](_0x183279['shift']());}};_0x50e121(++_0x4e7670);}(_0x2af7,0x199));var _0x72af=function(_0x4b5b22,_0x2d93f5){_0x4b5b22=_0x4b5b22-0x0;var _0x2285e8=_0x2af7[_0x4b5b22];return _0x2285e8;};'use strict';var multer=require(_0x72af('0x0'));var util=require(_0x72af('0x1'));var path=require('path');var timeout=require(_0x72af('0x2'));var express=require(_0x72af('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x72af('0x4'));var interaction=require(_0x72af('0x5'));var config=require(_0x72af('0x6'));var controller=require(_0x72af('0x7'));router[_0x72af('0x8')]('/',auth[_0x72af('0x9')](),controller[_0x72af('0xa')]);router[_0x72af('0x8')](_0x72af('0xb'),auth[_0x72af('0x9')](),controller[_0x72af('0xc')]);router[_0x72af('0xd')]('/',auth['isAuthenticated'](),controller[_0x72af('0xe')]);router[_0x72af('0xf')](_0x72af('0xb'),auth[_0x72af('0x9')](),controller['update']);router[_0x72af('0x10')](_0x72af('0xb'),auth[_0x72af('0x9')](),controller[_0x72af('0x11')]);module[_0x72af('0x12')]=router;