Built motion from commit 3c2ce842.|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 _0x6002=['/:id','update','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','create','put'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0x6002,0x103));var _0x2600=function(_0x1a6278,_0x298782){_0x1a6278=_0x1a6278-0x0;var _0x557688=_0x6002[_0x1a6278];return _0x557688;};'use strict';var multer=require(_0x2600('0x0'));var util=require(_0x2600('0x1'));var path=require('path');var timeout=require(_0x2600('0x2'));var express=require(_0x2600('0x3'));var router=express['Router']();var fs_extra=require(_0x2600('0x4'));var auth=require(_0x2600('0x5'));var interaction=require(_0x2600('0x6'));var config=require('../../config/environment');var controller=require('./cmHopperAdditionalPhone.controller');router['get']('/',auth[_0x2600('0x7')](),controller[_0x2600('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x2600('0x7')](),controller[_0x2600('0x9')]);router[_0x2600('0xa')](_0x2600('0xb'),auth[_0x2600('0x7')](),controller[_0x2600('0xc')]);router['delete'](_0x2600('0xb'),auth[_0x2600('0x7')](),controller[_0x2600('0xd')]);module[_0x2600('0xe')]=router;