Built motion from commit (unavailable).|2.5.2
[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 _0x9ca8=['destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller','get','isAuthenticated','index','/:id','show','create','update','delete'];(function(_0x27bd53,_0x4cb40c){var _0x4eb180=function(_0x16b5b2){while(--_0x16b5b2){_0x27bd53['push'](_0x27bd53['shift']());}};_0x4eb180(++_0x4cb40c);}(_0x9ca8,0x123));var _0x89ca=function(_0xbc4560,_0x4020b8){_0xbc4560=_0xbc4560-0x0;var _0x298cfb=_0x9ca8[_0xbc4560];return _0x298cfb;};'use strict';var multer=require('multer');var util=require(_0x89ca('0x0'));var path=require('path');var timeout=require(_0x89ca('0x1'));var express=require(_0x89ca('0x2'));var router=express[_0x89ca('0x3')]();var auth=require(_0x89ca('0x4'));var interaction=require(_0x89ca('0x5'));var config=require('../../config/environment');var controller=require(_0x89ca('0x6'));router[_0x89ca('0x7')]('/',auth[_0x89ca('0x8')](),controller[_0x89ca('0x9')]);router[_0x89ca('0x7')](_0x89ca('0xa'),auth[_0x89ca('0x8')](),controller[_0x89ca('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x89ca('0xc')]);router['put']('/:id',auth[_0x89ca('0x8')](),controller[_0x89ca('0xd')]);router[_0x89ca('0xe')]('/:id',auth[_0x89ca('0x8')](),controller[_0x89ca('0xf')]);module[_0x89ca('0x10')]=router;