Built motion from commit 25580385.|2.6.2
[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 _0x8ce1=['registry','defaultuser','../client','getTrunks','Request','GetTrunk','name'];(function(_0x1b7ca0,_0x4c4ca2){var _0x4ffc13=function(_0x5ed7e9){while(--_0x5ed7e9){_0x1b7ca0['push'](_0x1b7ca0['shift']());}};_0x4ffc13(++_0x4c4ca2);}(_0x8ce1,0x183));var _0x18ce=function(_0x5c3da1,_0x2e7547){_0x5c3da1=_0x5c3da1-0x0;var _0x3da109=_0x8ce1[_0x5c3da1];return _0x3da109;};'use strict';var client=require(_0x18ce('0x0'));exports[_0x18ce('0x1')]=function(_0x22d350){return function(_0x1ba15f){return client[_0x18ce('0x2')](_0x18ce('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x18ce('0x4'),_0x18ce('0x5'),_0x18ce('0x6')]},'log':_0x18ce('0x3')});};};