7954d7e9a486093a0fbe8c1dabaa1330f6ab16a4
[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 _0x33af=['key','GetFreshsalesccount','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','content','variableName','Variable','Descriptions'];(function(_0x59bb99,_0x38f58d){var _0x4247c9=function(_0x37873d){while(--_0x37873d){_0x59bb99['push'](_0x59bb99['shift']());}};_0x4247c9(++_0x38f58d);}(_0x33af,0xec));var _0xf33a=function(_0x59943d,_0x2e751b){_0x59943d=_0x59943d-0x0;var _0x46ace9=_0x33af[_0x59943d];return _0x46ace9;};'use strict';var client=require('../../client');exports[_0xf33a('0x0')]=function(){return function(_0x54b114){return client[_0xf33a('0x1')](_0xf33a('0x2'),{'options':{'raw':![],'attributes':['id',_0xf33a('0x3'),_0xf33a('0x4'),_0xf33a('0x5'),_0xf33a('0x6'),'serverUrl'],'include':[{'model':_0xf33a('0x7'),'as':_0xf33a('0x8'),'attributes':['id','name'],'include':[{'model':_0xf33a('0x9'),'as':_0xf33a('0xa'),'attributes':['id',_0xf33a('0xb'),_0xf33a('0xc'),_0xf33a('0xd')],'include':[{'model':_0xf33a('0xe'),'as':'Variable','attributes':['id',_0xf33a('0x3')]}]},{'model':_0xf33a('0x9'),'as':_0xf33a('0xf'),'attributes':['id',_0xf33a('0xb'),_0xf33a('0xc'),_0xf33a('0x10'),'keyType','keyContent',_0xf33a('0xd')],'include':[{'model':_0xf33a('0xe'),'as':_0xf33a('0xe'),'attributes':['id',_0xf33a('0x3')]}]}]}]},'log':_0xf33a('0x11')});};};