Built motion from commit (unavailable).|2.5.4
[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 _0xb48d=['GetFreshsalesAccount','name','username','apiKey','serverUrl','Configurations','FreshsalesField','content','variableName','Variable','Descriptions','type','keyType','keyContent','../../client'];(function(_0x34e752,_0x32e2a2){var _0x7c6347=function(_0x4db671){while(--_0x4db671){_0x34e752['push'](_0x34e752['shift']());}};_0x7c6347(++_0x32e2a2);}(_0xb48d,0x194));var _0xdb48=function(_0x1a36a5,_0x746928){_0x1a36a5=_0x1a36a5-0x0;var _0x746243=_0xb48d[_0x1a36a5];return _0x746243;};'use strict';var client=require(_0xdb48('0x0'));exports['getFreshsalesAccounts']=function(){return function(_0x267789){return client['Request'](_0xdb48('0x1'),{'options':{'raw':![],'attributes':['id',_0xdb48('0x2'),_0xdb48('0x3'),_0xdb48('0x4'),'remoteUri',_0xdb48('0x5')],'include':[{'model':'FreshsalesConfiguration','as':_0xdb48('0x6'),'attributes':['id',_0xdb48('0x2')],'include':[{'model':_0xdb48('0x7'),'as':'Subjects','attributes':['id','type',_0xdb48('0x8'),_0xdb48('0x9')],'include':[{'model':'Variable','as':_0xdb48('0xa'),'attributes':['id',_0xdb48('0x2')]}]},{'model':'FreshsalesField','as':_0xdb48('0xb'),'attributes':['id',_0xdb48('0xc'),'content','key',_0xdb48('0xd'),_0xdb48('0xe'),_0xdb48('0x9')],'include':[{'model':'Variable','as':_0xdb48('0xa'),'attributes':['id',_0xdb48('0x2')]}]}]}]},'log':'GetFreshsalesccount'});};};