Built motion from commit (unavailable).|2.5.9
[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 _0xc0c5=['put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','isAuthenticated','/:id','show','post','create'];(function(_0x273948,_0x25b22c){var _0x20912b=function(_0x330aba){while(--_0x330aba){_0x273948['push'](_0x273948['shift']());}};_0x20912b(++_0x25b22c);}(_0xc0c5,0x148));var _0x5c0c=function(_0x470e67,_0x4a596d){_0x470e67=_0x470e67-0x0;var _0x28bbde=_0xc0c5[_0x470e67];return _0x28bbde;};'use strict';var multer=require('multer');var util=require(_0x5c0c('0x0'));var path=require(_0x5c0c('0x1'));var timeout=require(_0x5c0c('0x2'));var express=require(_0x5c0c('0x3'));var router=express[_0x5c0c('0x4')]();var auth=require(_0x5c0c('0x5'));var interaction=require(_0x5c0c('0x6'));var config=require(_0x5c0c('0x7'));var controller=require(_0x5c0c('0x8'));router['get']('/',auth[_0x5c0c('0x9')](),controller['index']);router['get'](_0x5c0c('0xa'),auth[_0x5c0c('0x9')](),controller[_0x5c0c('0xb')]);router[_0x5c0c('0xc')]('/',auth[_0x5c0c('0x9')](),controller[_0x5c0c('0xd')]);router[_0x5c0c('0xe')](_0x5c0c('0xa'),auth['isAuthenticated'](),controller[_0x5c0c('0xf')]);router[_0x5c0c('0x10')](_0x5c0c('0xa'),auth[_0x5c0c('0x9')](),controller[_0x5c0c('0x11')]);module[_0x5c0c('0x12')]=router;