Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / ami / rpc / faxAccount.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 _0x3a6d=['minrate','maxrate','modem','gateway','faxdetect','t38timeout','TrunkId','ListId','key','Trunk','callerid','active','getFaxAccount','Request','NotifyFaxAccount','../client','getFaxAccounts','GetFaxAccount','name','description','ecm','headerinfo'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x3a6d,0x143));var _0xd3a6=function(_0xa148b7,_0x2f3eb2){_0xa148b7=_0xa148b7-0x0;var _0x51efd3=_0x3a6d[_0xa148b7];return _0x51efd3;};'use strict';var client=require(_0xd3a6('0x0'));exports[_0xd3a6('0x1')]=function(){return function(){return client['Request'](_0xd3a6('0x2'),{'options':{'raw':![],'attributes':['id',_0xd3a6('0x3'),_0xd3a6('0x4'),_0xd3a6('0x5'),_0xd3a6('0x6'),'localstationid',_0xd3a6('0x7'),_0xd3a6('0x8'),_0xd3a6('0x9'),_0xd3a6('0xa'),_0xd3a6('0xb'),_0xd3a6('0xc'),'tech',_0xd3a6('0xd'),_0xd3a6('0xe'),_0xd3a6('0xf')],'include':[{'model':_0xd3a6('0x10'),'as':_0xd3a6('0x10'),'attributes':['id',_0xd3a6('0x3'),_0xd3a6('0x11'),_0xd3a6('0x12')]}]},'log':_0xd3a6('0x13')});};};exports['notify']=function(_0x172513,_0x1a00f7){return client[_0xd3a6('0x14')](_0xd3a6('0x15'),{'account':{'id':_0x172513},'body':_0x1a00f7,'log':_0xd3a6('0x15')});};