Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / cannedAnswer / 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 _0xbcee=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','index','get','/:id','isAuthenticated','show','post','create','put','delete','destroy','multer','util','Router'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0xbcee,0xc3));var _0xebce=function(_0x33013d,_0x4ff316){_0x33013d=_0x33013d-0x0;var _0x3df63f=_0xbcee[_0x33013d];return _0x3df63f;};'use strict';var multer=require(_0xebce('0x0'));var util=require(_0xebce('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xebce('0x2')]();var fs_extra=require(_0xebce('0x3'));var auth=require(_0xebce('0x4'));var interaction=require(_0xebce('0x5'));var config=require(_0xebce('0x6'));var controller=require(_0xebce('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xebce('0x8')]);router[_0xebce('0x9')](_0xebce('0xa'),auth[_0xebce('0xb')](),controller[_0xebce('0xc')]);router[_0xebce('0xd')]('/',auth[_0xebce('0xb')](),controller[_0xebce('0xe')]);router[_0xebce('0xf')](_0xebce('0xa'),auth[_0xebce('0xb')](),controller['update']);router[_0xebce('0x10')](_0xebce('0xa'),auth[_0xebce('0xb')](),controller[_0xebce('0x11')]);module['exports']=router;