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