e216c165f8cf991a17f87d87c95e8bcdc1d60a10
[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 _0xc9c3=['apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Subjects','type','content','variableName','Variable','FreshsalesField','Descriptions','key','keyType','GetFreshsalesccount','GetFreshsalesAccount','name','username'];(function(_0x59967d,_0x1c3e96){var _0x1a4d47=function(_0x179f58){while(--_0x179f58){_0x59967d['push'](_0x59967d['shift']());}};_0x1a4d47(++_0x1c3e96);}(_0xc9c3,0x96));var _0x3c9c=function(_0x4ee7bd,_0x3c6094){_0x4ee7bd=_0x4ee7bd-0x0;var _0x41ea3a=_0xc9c3[_0x4ee7bd];return _0x41ea3a;};'use strict';var client=require('../../client');exports['getFreshsalesAccounts']=function(){return function(_0x3fcbeb){return client['Request'](_0x3c9c('0x0'),{'options':{'raw':![],'attributes':['id',_0x3c9c('0x1'),_0x3c9c('0x2'),_0x3c9c('0x3'),_0x3c9c('0x4'),_0x3c9c('0x5')],'include':[{'model':_0x3c9c('0x6'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'FreshsalesField','as':_0x3c9c('0x7'),'attributes':['id',_0x3c9c('0x8'),_0x3c9c('0x9'),_0x3c9c('0xa')],'include':[{'model':_0x3c9c('0xb'),'as':_0x3c9c('0xb'),'attributes':['id',_0x3c9c('0x1')]}]},{'model':_0x3c9c('0xc'),'as':_0x3c9c('0xd'),'attributes':['id',_0x3c9c('0x8'),'content',_0x3c9c('0xe'),_0x3c9c('0xf'),'keyContent',_0x3c9c('0xa')],'include':[{'model':'Variable','as':_0x3c9c('0xb'),'attributes':['id',_0x3c9c('0x1')]}]}]}]},'log':_0x3c9c('0x10')});};};