b26e1e44d346d26e011aca7e42e358f2d5693bba
[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 _0x90c9=['multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index','/:id','show','post','put','update','destroy','exports'];(function(_0x110924,_0x1374bb){var _0x12905b=function(_0x47d32c){while(--_0x47d32c){_0x110924['push'](_0x110924['shift']());}};_0x12905b(++_0x1374bb);}(_0x90c9,0x1b5));var _0x990c=function(_0x2b01a2,_0x3b4040){_0x2b01a2=_0x2b01a2-0x0;var _0xcce4ab=_0x90c9[_0x2b01a2];return _0xcce4ab;};'use strict';var multer=require(_0x990c('0x0'));var util=require(_0x990c('0x1'));var path=require('path');var timeout=require(_0x990c('0x2'));var express=require(_0x990c('0x3'));var router=express[_0x990c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x990c('0x5'));var interaction=require(_0x990c('0x6'));var config=require(_0x990c('0x7'));var controller=require(_0x990c('0x8'));router[_0x990c('0x9')]('/',auth[_0x990c('0xa')](),controller[_0x990c('0xb')]);router[_0x990c('0x9')](_0x990c('0xc'),auth[_0x990c('0xa')](),controller[_0x990c('0xd')]);router[_0x990c('0xe')]('/',auth[_0x990c('0xa')](),controller['create']);router[_0x990c('0xf')]('/:id',auth[_0x990c('0xa')](),controller[_0x990c('0x10')]);router['delete'](_0x990c('0xc'),auth[_0x990c('0xa')](),controller[_0x990c('0x11')]);module[_0x990c('0x12')]=router;