Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / cmHopper / 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 _0x0bf2=['/timezones','getTimezones','show','/:id/previewrecall','getPreviewRecall','post','create','/preview','getPreview','/timezone','getTimezone','/:id','update','destroy','exports','express','Router','../../components/auth/service','./cmHopper.controller','isAuthenticated','index','/describe','describe','get','/opencontacts','getOpenContacts'];(function(_0x5cac54,_0x431445){var _0x399d30=function(_0x58722d){while(--_0x58722d){_0x5cac54['push'](_0x5cac54['shift']());}};_0x399d30(++_0x431445);}(_0x0bf2,0xf9));var _0x20bf=function(_0x98df36,_0x3008fc){_0x98df36=_0x98df36-0x0;var _0x55c56a=_0x0bf2[_0x98df36];return _0x55c56a;};'use strict';var express=require(_0x20bf('0x0'));var router=express[_0x20bf('0x1')]();var auth=require(_0x20bf('0x2'));var controller=require(_0x20bf('0x3'));router['get']('/',auth[_0x20bf('0x4')](),controller[_0x20bf('0x5')]);router['get'](_0x20bf('0x6'),auth['isAuthenticated'](),controller[_0x20bf('0x7')]);router[_0x20bf('0x8')](_0x20bf('0x9'),auth['isAuthenticated'](),controller[_0x20bf('0xa')]);router['get'](_0x20bf('0xb'),auth[_0x20bf('0x4')](),controller[_0x20bf('0xc')]);router[_0x20bf('0x8')]('/:id',auth[_0x20bf('0x4')](),controller[_0x20bf('0xd')]);router[_0x20bf('0x8')](_0x20bf('0xe'),auth[_0x20bf('0x4')](),controller[_0x20bf('0xf')]);router[_0x20bf('0x10')]('/',auth[_0x20bf('0x4')](),controller[_0x20bf('0x11')]);router[_0x20bf('0x10')](_0x20bf('0x12'),auth['isAuthenticated'](),controller[_0x20bf('0x13')]);router[_0x20bf('0x10')](_0x20bf('0x14'),auth[_0x20bf('0x4')](),controller[_0x20bf('0x15')]);router['put'](_0x20bf('0x16'),auth[_0x20bf('0x4')](),controller[_0x20bf('0x17')]);router['delete'](_0x20bf('0x16'),auth['isAuthenticated'](),controller[_0x20bf('0x18')]);module[_0x20bf('0x19')]=router;