Built motion from commit a61a4a20.|2.5.46
[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 _0xb492=['/:id','post','create','/preview','getPreview','getTimezone','/previewrecall','put','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','./cmHopper.controller','get','isAuthenticated','/describe','describe','/opencontacts','getOpenContacts'];(function(_0x295a3d,_0x56d487){var _0x23a732=function(_0x15cfc2){while(--_0x15cfc2){_0x295a3d['push'](_0x295a3d['shift']());}};_0x23a732(++_0x56d487);}(_0xb492,0x105));var _0x2b49=function(_0x143cb1,_0x2258d7){_0x143cb1=_0x143cb1-0x0;var _0x3bc944=_0xb492[_0x143cb1];return _0x3bc944;};'use strict';var multer=require(_0x2b49('0x0'));var util=require(_0x2b49('0x1'));var path=require(_0x2b49('0x2'));var timeout=require(_0x2b49('0x3'));var express=require(_0x2b49('0x4'));var router=express['Router']();var fs_extra=require(_0x2b49('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x2b49('0x6'));var config=require('../../config/environment');var controller=require(_0x2b49('0x7'));router[_0x2b49('0x8')]('/',auth[_0x2b49('0x9')](),controller['index']);router[_0x2b49('0x8')](_0x2b49('0xa'),auth[_0x2b49('0x9')](),controller[_0x2b49('0xb')]);router[_0x2b49('0x8')](_0x2b49('0xc'),auth[_0x2b49('0x9')](),controller[_0x2b49('0xd')]);router[_0x2b49('0x8')]('/timezones',auth[_0x2b49('0x9')](),controller['getTimezones']);router[_0x2b49('0x8')](_0x2b49('0xe'),auth[_0x2b49('0x9')](),controller['show']);router[_0x2b49('0xf')]('/',auth['isAuthenticated'](),controller[_0x2b49('0x10')]);router[_0x2b49('0xf')](_0x2b49('0x11'),auth[_0x2b49('0x9')](),controller[_0x2b49('0x12')]);router[_0x2b49('0xf')]('/timezone',auth[_0x2b49('0x9')](),controller[_0x2b49('0x13')]);router[_0x2b49('0xf')](_0x2b49('0x14'),auth['isAuthenticated'](),controller['getPreviewRecall']);router[_0x2b49('0x15')](_0x2b49('0xe'),auth[_0x2b49('0x9')](),controller['update']);router[_0x2b49('0x16')](_0x2b49('0xe'),auth[_0x2b49('0x9')](),controller[_0x2b49('0x17')]);module[_0x2b49('0x18')]=router;