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