c7dcc907d2ad535ed12e2fe30112a67b42382da4
[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 _0x6e20=['destroy','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperAdditionalPhone.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete'];(function(_0x3d1ecd,_0x246892){var _0x509e93=function(_0x4d85af){while(--_0x4d85af){_0x3d1ecd['push'](_0x3d1ecd['shift']());}};_0x509e93(++_0x246892);}(_0x6e20,0x1e1));var _0x06e2=function(_0x2b10c6,_0x185590){_0x2b10c6=_0x2b10c6-0x0;var _0x3789d2=_0x6e20[_0x2b10c6];return _0x3789d2;};'use strict';var multer=require(_0x06e2('0x0'));var util=require(_0x06e2('0x1'));var path=require(_0x06e2('0x2'));var timeout=require('connect-timeout');var express=require(_0x06e2('0x3'));var router=express['Router']();var fs_extra=require(_0x06e2('0x4'));var auth=require(_0x06e2('0x5'));var interaction=require(_0x06e2('0x6'));var config=require(_0x06e2('0x7'));var controller=require(_0x06e2('0x8'));router[_0x06e2('0x9')]('/',auth[_0x06e2('0xa')](),controller[_0x06e2('0xb')]);router[_0x06e2('0x9')](_0x06e2('0xc'),auth['isAuthenticated'](),controller[_0x06e2('0xd')]);router[_0x06e2('0xe')]('/',auth[_0x06e2('0xa')](),controller[_0x06e2('0xf')]);router[_0x06e2('0x10')](_0x06e2('0xc'),auth[_0x06e2('0xa')](),controller[_0x06e2('0x11')]);router[_0x06e2('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x06e2('0x13')]);module['exports']=router;