13122e1832d720684a092bdead89c69e3895e97d
[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 _0x63c6=['variableName','Variable','FreshsalesField','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','Subjects','type','content'];(function(_0x28d91e,_0x50ec33){var _0x53fdb4=function(_0x4b8739){while(--_0x4b8739){_0x28d91e['push'](_0x28d91e['shift']());}};_0x53fdb4(++_0x50ec33);}(_0x63c6,0xbb));var _0x663c=function(_0x5ea501,_0x4fcd1d){_0x5ea501=_0x5ea501-0x0;var _0x5d6456=_0x63c6[_0x5ea501];return _0x5d6456;};'use strict';var client=require(_0x663c('0x0'));exports[_0x663c('0x1')]=function(){return function(_0x599175){return client['Request'](_0x663c('0x2'),{'options':{'raw':![],'attributes':['id',_0x663c('0x3'),_0x663c('0x4'),_0x663c('0x5'),_0x663c('0x6'),_0x663c('0x7')],'include':[{'model':_0x663c('0x8'),'as':_0x663c('0x9'),'attributes':['id',_0x663c('0x3')],'include':[{'model':'FreshsalesField','as':_0x663c('0xa'),'attributes':['id',_0x663c('0xb'),_0x663c('0xc'),_0x663c('0xd')],'include':[{'model':'Variable','as':_0x663c('0xe'),'attributes':['id','name']}]},{'model':_0x663c('0xf'),'as':'Descriptions','attributes':['id',_0x663c('0xb'),_0x663c('0xc'),_0x663c('0x10'),_0x663c('0x11'),_0x663c('0x12'),_0x663c('0xd')],'include':[{'model':_0x663c('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x663c('0x13')});};};