3a0ed61fe0112eb55b53cd2492faa6225e6108e6
[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 _0x8e51=['Request','GetTrunk','registry','defaultuser','../client','getTrunks'];(function(_0x215eab,_0x3c3938){var _0x31d024=function(_0x1389a7){while(--_0x1389a7){_0x215eab['push'](_0x215eab['shift']());}};_0x31d024(++_0x3c3938);}(_0x8e51,0x1e4));var _0x18e5=function(_0x19eee6,_0x28d61c){_0x19eee6=_0x19eee6-0x0;var _0x46fd52=_0x8e51[_0x19eee6];return _0x46fd52;};'use strict';var client=require(_0x18e5('0x0'));exports[_0x18e5('0x1')]=function(_0x5461c7){return function(_0x335d4c){return client[_0x18e5('0x2')](_0x18e5('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x18e5('0x4'),_0x18e5('0x5')]},'log':_0x18e5('0x3')});};};