Built motion from commit d5e4af8c.|2.6.23
[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 _0x7f4b=['../../components/auth/service','./cmHopper.controller','get','isAuthenticated','index','describe','getOpenContacts','/timezones','/:id','getPreviewRecall','post','/preview','getPreview','getTimezone','update','destroy','exports','express','Router'];(function(_0x19017b,_0x56d52c){var _0x3becdc=function(_0x1e0fde){while(--_0x1e0fde){_0x19017b['push'](_0x19017b['shift']());}};_0x3becdc(++_0x56d52c);}(_0x7f4b,0x17a));var _0xb7f4=function(_0x15dafa,_0x3bd9b2){_0x15dafa=_0x15dafa-0x0;var _0x390812=_0x7f4b[_0x15dafa];return _0x390812;};'use strict';var express=require(_0xb7f4('0x0'));var router=express[_0xb7f4('0x1')]();var auth=require(_0xb7f4('0x2'));var controller=require(_0xb7f4('0x3'));router[_0xb7f4('0x4')]('/',auth[_0xb7f4('0x5')](),controller[_0xb7f4('0x6')]);router[_0xb7f4('0x4')]('/describe',auth['isAuthenticated'](),controller[_0xb7f4('0x7')]);router['get']('/opencontacts',auth[_0xb7f4('0x5')](),controller[_0xb7f4('0x8')]);router[_0xb7f4('0x4')](_0xb7f4('0x9'),auth[_0xb7f4('0x5')](),controller['getTimezones']);router['get'](_0xb7f4('0xa'),auth[_0xb7f4('0x5')](),controller['show']);router[_0xb7f4('0x4')]('/:id/previewrecall',auth['isAuthenticated'](),controller[_0xb7f4('0xb')]);router[_0xb7f4('0xc')]('/',auth[_0xb7f4('0x5')](),controller['create']);router[_0xb7f4('0xc')](_0xb7f4('0xd'),auth[_0xb7f4('0x5')](),controller[_0xb7f4('0xe')]);router['post']('/timezone',auth[_0xb7f4('0x5')](),controller[_0xb7f4('0xf')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xb7f4('0x10')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xb7f4('0x11')]);module[_0xb7f4('0x12')]=router;