Built motion from commit (unavailable).|2.5.27
[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 _0xff4c=['get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller'];(function(_0x453b78,_0x1d2902){var _0xe0b03=function(_0x468fa3){while(--_0x468fa3){_0x453b78['push'](_0x453b78['shift']());}};_0xe0b03(++_0x1d2902);}(_0xff4c,0x160));var _0xcff4=function(_0x496333,_0x1c47d6){_0x496333=_0x496333-0x0;var _0x44256e=_0xff4c[_0x496333];return _0x44256e;};'use strict';var multer=require(_0xcff4('0x0'));var util=require(_0xcff4('0x1'));var path=require(_0xcff4('0x2'));var timeout=require(_0xcff4('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xcff4('0x4'));var auth=require(_0xcff4('0x5'));var interaction=require(_0xcff4('0x6'));var config=require('../../config/environment');var controller=require(_0xcff4('0x7'));router[_0xcff4('0x8')]('/',auth[_0xcff4('0x9')](),controller[_0xcff4('0xa')]);router[_0xcff4('0x8')](_0xcff4('0xb'),auth['isAuthenticated'](),controller[_0xcff4('0xc')]);router[_0xcff4('0xd')]('/',auth['isAuthenticated'](),controller[_0xcff4('0xe')]);router[_0xcff4('0xf')](_0xcff4('0xb'),auth[_0xcff4('0x9')](),controller[_0xcff4('0x10')]);router[_0xcff4('0x11')]('/:id',auth[_0xcff4('0x9')](),controller[_0xcff4('0x12')]);module[_0xcff4('0x13')]=router;