80bdfa6977cb67b73f542aa77403cb86664467d7
[motion2.git] / server / services / ami / rpc / trunk.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 _0x5ab4=['Request','name','registry','defaultuser','GetTrunk','../client','getTrunks'];(function(_0x9c2427,_0x17c865){var _0x51984f=function(_0x177af6){while(--_0x177af6){_0x9c2427['push'](_0x9c2427['shift']());}};_0x51984f(++_0x17c865);}(_0x5ab4,0x9f));var _0x45ab=function(_0x2530d1,_0x462b06){_0x2530d1=_0x2530d1-0x0;var _0x1484ed=_0x5ab4[_0x2530d1];return _0x1484ed;};'use strict';var client=require(_0x45ab('0x0'));exports[_0x45ab('0x1')]=function(_0x17df82){return function(_0x3be6fb){return client[_0x45ab('0x2')]('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x45ab('0x3'),_0x45ab('0x4'),_0x45ab('0x5')]},'log':_0x45ab('0x6')});};};