4116c4ae802eb4393b4c0364489b38dfb26fc9e9
[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 _0xe647=['../client','getTrunks','Request','GetTrunk','defaultuser'];(function(_0x457eb9,_0x20c963){var _0x415226=function(_0x35ff59){while(--_0x35ff59){_0x457eb9['push'](_0x457eb9['shift']());}};_0x415226(++_0x20c963);}(_0xe647,0x16d));var _0x7e64=function(_0x1b3a7c,_0x2f5fea){_0x1b3a7c=_0x1b3a7c-0x0;var _0x2473c9=_0xe647[_0x1b3a7c];return _0x2473c9;};'use strict';var client=require(_0x7e64('0x0'));exports[_0x7e64('0x1')]=function(_0x54aaab){return function(_0x41d99f){return client[_0x7e64('0x2')](_0x7e64('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name','registry',_0x7e64('0x4')]},'log':_0x7e64('0x3')});};};