4342d76855838b9e3f22db1dc94aeba94e8abba0
[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 _0xb5c2=['defaultuser','GetTrunk','getTrunks','name'];(function(_0x42ab00,_0x3b3f5e){var _0xd75c67=function(_0x31966a){while(--_0x31966a){_0x42ab00['push'](_0x42ab00['shift']());}};_0xd75c67(++_0x3b3f5e);}(_0xb5c2,0x1ce));var _0x2b5c=function(_0x16ce4e,_0x94d2c7){_0x16ce4e=_0x16ce4e-0x0;var _0x124d6d=_0xb5c2[_0x16ce4e];return _0x124d6d;};'use strict';var client=require('../client');exports[_0x2b5c('0x0')]=function(_0x34916e){return function(_0x1aa1b6){return client['Request']('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x2b5c('0x1'),'registry',_0x2b5c('0x2')]},'log':_0x2b5c('0x3')});};};