Built motion from commit efa66e19.|2.6.22
[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 _0x974f=['put','delete','exports','util','path','connect-timeout','express','get','isAuthenticated','index','/:id','post','create'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x974f,0x85));var _0xf974=function(_0x398f67,_0x3983db){_0x398f67=_0x398f67-0x0;var _0x5cfd44=_0x974f[_0x398f67];return _0x5cfd44;};'use strict';var multer=require('multer');var util=require(_0xf974('0x0'));var path=require(_0xf974('0x1'));var timeout=require(_0xf974('0x2'));var express=require(_0xf974('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./cmHopperAdditionalPhone.controller');router[_0xf974('0x4')]('/',auth[_0xf974('0x5')](),controller[_0xf974('0x6')]);router[_0xf974('0x4')](_0xf974('0x7'),auth[_0xf974('0x5')](),controller['show']);router[_0xf974('0x8')]('/',auth[_0xf974('0x5')](),controller[_0xf974('0x9')]);router[_0xf974('0xa')](_0xf974('0x7'),auth[_0xf974('0x5')](),controller['update']);router[_0xf974('0xb')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xf974('0xc')]=router;