Built motion from commit bab6f49e.|2.6.17
[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 _0x303a=['defaultuser','../client','Request','GetTrunk','registry'];(function(_0x1bb0b8,_0x24add2){var _0x22fc67=function(_0x2e051d){while(--_0x2e051d){_0x1bb0b8['push'](_0x1bb0b8['shift']());}};_0x22fc67(++_0x24add2);}(_0x303a,0x1a0));var _0xa303=function(_0x5f5df5,_0x2f41c8){_0x5f5df5=_0x5f5df5-0x0;var _0x511d12=_0x303a[_0x5f5df5];return _0x511d12;};'use strict';var client=require(_0xa303('0x0'));exports['getTrunks']=function(_0x387608){return function(_0x262522){return client[_0xa303('0x1')](_0xa303('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0xa303('0x3'),_0xa303('0x4')]},'log':_0xa303('0x2')});};};