Built motion from commit 4c281f94.|2.6.31
[motion2.git] / server / api / cmHopperAdditionalPhone / 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 _0x57fa=['get','isAuthenticated','show','post','create','/:id','update','delete','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperAdditionalPhone.controller'];(function(_0x3998b5,_0x388968){var _0x18b750=function(_0x53e082){while(--_0x53e082){_0x3998b5['push'](_0x3998b5['shift']());}};_0x18b750(++_0x388968);}(_0x57fa,0x127));var _0xa57f=function(_0x55cdd7,_0x5f18a9){_0x55cdd7=_0x55cdd7-0x0;var _0x54dfca=_0x57fa[_0x55cdd7];return _0x54dfca;};'use strict';var multer=require(_0xa57f('0x0'));var util=require(_0xa57f('0x1'));var path=require('path');var timeout=require(_0xa57f('0x2'));var express=require('express');var router=express[_0xa57f('0x3')]();var fs_extra=require(_0xa57f('0x4'));var auth=require(_0xa57f('0x5'));var interaction=require(_0xa57f('0x6'));var config=require(_0xa57f('0x7'));var controller=require(_0xa57f('0x8'));router[_0xa57f('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xa57f('0x9')]('/:id',auth[_0xa57f('0xa')](),controller[_0xa57f('0xb')]);router[_0xa57f('0xc')]('/',auth[_0xa57f('0xa')](),controller[_0xa57f('0xd')]);router['put'](_0xa57f('0xe'),auth[_0xa57f('0xa')](),controller[_0xa57f('0xf')]);router[_0xa57f('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xa57f('0x11')]);module[_0xa57f('0x12')]=router;