Built motion from commit (unavailable).|2.5.9
[motion2.git] / server / services / ami / rpc / integrations / freshsales.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 _0x8fcf=['getFreshsalesAccounts','GetFreshsalesAccount','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','name','FreshsalesField','Subjects','type','variableName','Variable','Descriptions','key','keyType','GetFreshsalesccount','../../client'];(function(_0x2e440b,_0x540f27){var _0x46e1a4=function(_0x953321){while(--_0x953321){_0x2e440b['push'](_0x2e440b['shift']());}};_0x46e1a4(++_0x540f27);}(_0x8fcf,0x1db));var _0xf8fc=function(_0x59efd8,_0x49efe3){_0x59efd8=_0x59efd8-0x0;var _0x417860=_0x8fcf[_0x59efd8];return _0x417860;};'use strict';var client=require(_0xf8fc('0x0'));exports[_0xf8fc('0x1')]=function(){return function(_0x32229e){return client['Request'](_0xf8fc('0x2'),{'options':{'raw':![],'attributes':['id','name','username','apiKey',_0xf8fc('0x3'),_0xf8fc('0x4')],'include':[{'model':_0xf8fc('0x5'),'as':_0xf8fc('0x6'),'attributes':['id',_0xf8fc('0x7')],'include':[{'model':_0xf8fc('0x8'),'as':_0xf8fc('0x9'),'attributes':['id',_0xf8fc('0xa'),'content',_0xf8fc('0xb')],'include':[{'model':'Variable','as':_0xf8fc('0xc'),'attributes':['id',_0xf8fc('0x7')]}]},{'model':_0xf8fc('0x8'),'as':_0xf8fc('0xd'),'attributes':['id',_0xf8fc('0xa'),'content',_0xf8fc('0xe'),_0xf8fc('0xf'),'keyContent',_0xf8fc('0xb')],'include':[{'model':_0xf8fc('0xc'),'as':_0xf8fc('0xc'),'attributes':['id',_0xf8fc('0x7')]}]}]}]},'log':_0xf8fc('0x10')});};};