69cab9a53b493b90591f93d5f622e5cf32b7e2e7
[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 _0x315c=['/:id/status','addAgents','put','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsAccount.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/dispositions','getAnswers','getInteractions','/:id/users','post','addDisposition','/:id/canned_answers','/:id/notify','notify','/:id/applications','addApplications','/:id/send','send'];(function(_0x36884e,_0x48008f){var _0x1cc367=function(_0x388a78){while(--_0x388a78){_0x36884e['push'](_0x36884e['shift']());}};_0x1cc367(++_0x48008f);}(_0x315c,0xe1));var _0xc315=function(_0x1e86df,_0x128230){_0x1e86df=_0x1e86df-0x0;var _0x5140c0=_0x315c[_0x1e86df];return _0x5140c0;};'use strict';var multer=require(_0xc315('0x0'));var util=require(_0xc315('0x1'));var path=require('path');var timeout=require(_0xc315('0x2'));var express=require('express');var router=express[_0xc315('0x3')]();var auth=require(_0xc315('0x4'));var interaction=require(_0xc315('0x5'));var config=require(_0xc315('0x6'));var controller=require(_0xc315('0x7'));router[_0xc315('0x8')]('/',auth[_0xc315('0x9')](),controller[_0xc315('0xa')]);router[_0xc315('0x8')](_0xc315('0xb'),auth[_0xc315('0x9')](),controller[_0xc315('0xc')]);router[_0xc315('0x8')](_0xc315('0xd'),auth[_0xc315('0x9')](),controller['show']);router[_0xc315('0x8')](_0xc315('0xe'),auth[_0xc315('0x9')](),controller['getDispositions']);router[_0xc315('0x8')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xc315('0xf')]);router[_0xc315('0x8')]('/:id/applications',auth[_0xc315('0x9')](),controller['getApplications']);router[_0xc315('0x8')]('/:id/interactions',auth[_0xc315('0x9')](),controller[_0xc315('0x10')]);router['get']('/:id/status',controller['statusGet']);router[_0xc315('0x8')](_0xc315('0x11'),auth['isAuthenticated'](),controller['getAgents']);router[_0xc315('0x12')]('/',auth[_0xc315('0x9')](),controller['create']);router['post'](_0xc315('0xe'),auth['isAuthenticated'](),controller[_0xc315('0x13')]);router[_0xc315('0x12')](_0xc315('0x14'),auth[_0xc315('0x9')](),controller['addAnswer']);router[_0xc315('0x12')](_0xc315('0x15'),controller[_0xc315('0x16')]);router['post'](_0xc315('0x17'),auth[_0xc315('0x9')](),controller[_0xc315('0x18')]);router['post'](_0xc315('0x19'),auth[_0xc315('0x9')](),controller[_0xc315('0x1a')]);router[_0xc315('0x12')](_0xc315('0x1b'),controller['status']);router[_0xc315('0x12')](_0xc315('0x11'),auth[_0xc315('0x9')](),controller[_0xc315('0x1c')]);router[_0xc315('0x1d')]('/:id',auth['isAuthenticated'](),controller[_0xc315('0x1e')]);router[_0xc315('0x1f')]('/:id',auth[_0xc315('0x9')](),controller[_0xc315('0x20')]);router[_0xc315('0x1f')]('/:id/dispositions',auth[_0xc315('0x9')](),controller[_0xc315('0x21')]);router['delete']('/:id/canned_answers',auth[_0xc315('0x9')](),controller[_0xc315('0x22')]);router['delete'](_0xc315('0x11'),auth['isAuthenticated'](),controller[_0xc315('0x23')]);module['exports']=router;