Built motion from commit 775e2a94.|2.6.3
[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 _0x61b0=['getPreviewRecall','post','/preview','getPreview','getTimezone','update','delete','destroy','exports','express','../../components/auth/service','./cmHopper.controller','get','isAuthenticated','index','/describe','describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','show'];(function(_0x46a42b,_0x1691cc){var _0x1af8f0=function(_0x4ea3f8){while(--_0x4ea3f8){_0x46a42b['push'](_0x46a42b['shift']());}};_0x1af8f0(++_0x1691cc);}(_0x61b0,0x1a7));var _0x061b=function(_0x2481d3,_0x287cf5){_0x2481d3=_0x2481d3-0x0;var _0x3c6de3=_0x61b0[_0x2481d3];return _0x3c6de3;};'use strict';var express=require(_0x061b('0x0'));var router=express['Router']();var auth=require(_0x061b('0x1'));var controller=require(_0x061b('0x2'));router[_0x061b('0x3')]('/',auth[_0x061b('0x4')](),controller[_0x061b('0x5')]);router[_0x061b('0x3')](_0x061b('0x6'),auth[_0x061b('0x4')](),controller[_0x061b('0x7')]);router[_0x061b('0x3')](_0x061b('0x8'),auth['isAuthenticated'](),controller[_0x061b('0x9')]);router[_0x061b('0x3')](_0x061b('0xa'),auth[_0x061b('0x4')](),controller[_0x061b('0xb')]);router[_0x061b('0x3')](_0x061b('0xc'),auth[_0x061b('0x4')](),controller[_0x061b('0xd')]);router[_0x061b('0x3')]('/:id/previewrecall',auth[_0x061b('0x4')](),controller[_0x061b('0xe')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x061b('0xf')](_0x061b('0x10'),auth[_0x061b('0x4')](),controller[_0x061b('0x11')]);router[_0x061b('0xf')]('/timezone',auth[_0x061b('0x4')](),controller[_0x061b('0x12')]);router['put'](_0x061b('0xc'),auth[_0x061b('0x4')](),controller[_0x061b('0x13')]);router[_0x061b('0x14')](_0x061b('0xc'),auth[_0x061b('0x4')](),controller[_0x061b('0x15')]);module[_0x061b('0x16')]=router;