01561f6bab91094ceb0254eb13d9e692ae845de6
[motion2.git] / server / api / smsAccount / 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 _0xa96e=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsAccount.controller','get','/describe','isAuthenticated','describe','/:id','getDispositions','getAnswers','getApplications','/:id/interactions','getInteractions','/:id/status','statusGet','/:id/users','getAgents','post','/:id/dispositions','addDisposition','addAnswer','/:id/notify','notify','/:id/applications','/:id/send','addAgents','put','update','delete','destroy','removeDispositions','/:id/canned_answers','removeAnswers','removeAgents','exports','multer','util','path','express'];(function(_0x117821,_0xaa1933){var _0x4ae9ff=function(_0x253662){while(--_0x253662){_0x117821['push'](_0x117821['shift']());}};_0x4ae9ff(++_0xaa1933);}(_0xa96e,0x144));var _0xea96=function(_0x1b8149,_0x469bb9){_0x1b8149=_0x1b8149-0x0;var _0x1b29be=_0xa96e[_0x1b8149];return _0x1b29be;};'use strict';var multer=require(_0xea96('0x0'));var util=require(_0xea96('0x1'));var path=require(_0xea96('0x2'));var timeout=require('connect-timeout');var express=require(_0xea96('0x3'));var router=express[_0xea96('0x4')]();var auth=require(_0xea96('0x5'));var interaction=require(_0xea96('0x6'));var config=require(_0xea96('0x7'));var controller=require(_0xea96('0x8'));router[_0xea96('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xea96('0x9')](_0xea96('0xa'),auth[_0xea96('0xb')](),controller[_0xea96('0xc')]);router[_0xea96('0x9')](_0xea96('0xd'),auth[_0xea96('0xb')](),controller['show']);router[_0xea96('0x9')]('/:id/dispositions',auth[_0xea96('0xb')](),controller[_0xea96('0xe')]);router[_0xea96('0x9')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xea96('0xf')]);router[_0xea96('0x9')]('/:id/applications',auth['isAuthenticated'](),controller[_0xea96('0x10')]);router[_0xea96('0x9')](_0xea96('0x11'),auth[_0xea96('0xb')](),controller[_0xea96('0x12')]);router['get'](_0xea96('0x13'),controller[_0xea96('0x14')]);router[_0xea96('0x9')](_0xea96('0x15'),auth[_0xea96('0xb')](),controller[_0xea96('0x16')]);router['post']('/',auth[_0xea96('0xb')](),controller['create']);router[_0xea96('0x17')](_0xea96('0x18'),auth[_0xea96('0xb')](),controller[_0xea96('0x19')]);router['post']('/:id/canned_answers',auth[_0xea96('0xb')](),controller[_0xea96('0x1a')]);router[_0xea96('0x17')](_0xea96('0x1b'),controller[_0xea96('0x1c')]);router['post'](_0xea96('0x1d'),auth[_0xea96('0xb')](),controller['addApplications']);router[_0xea96('0x17')](_0xea96('0x1e'),auth[_0xea96('0xb')](),controller['send']);router[_0xea96('0x17')](_0xea96('0x13'),controller['status']);router['post'](_0xea96('0x15'),auth[_0xea96('0xb')](),controller[_0xea96('0x1f')]);router[_0xea96('0x20')](_0xea96('0xd'),auth[_0xea96('0xb')](),controller[_0xea96('0x21')]);router[_0xea96('0x22')](_0xea96('0xd'),auth[_0xea96('0xb')](),controller[_0xea96('0x23')]);router[_0xea96('0x22')](_0xea96('0x18'),auth['isAuthenticated'](),controller[_0xea96('0x24')]);router[_0xea96('0x22')](_0xea96('0x25'),auth[_0xea96('0xb')](),controller[_0xea96('0x26')]);router[_0xea96('0x22')]('/:id/users',auth[_0xea96('0xb')](),controller[_0xea96('0x27')]);module[_0xea96('0x28')]=router;