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