Built motion from commit 4d4d9a88.|2.6.26
[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 _0xf40b=['Descriptions','key','keyContent','variableName','GetFreshsalesccount','getFreshsalesAccounts','Request','GetFreshsalesAccount','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','name','FreshsalesField','Subjects','type','content','Variable'];(function(_0x561f79,_0x2bf857){var _0xef104e=function(_0x2c7884){while(--_0x2c7884){_0x561f79['push'](_0x561f79['shift']());}};_0xef104e(++_0x2bf857);}(_0xf40b,0xb0));var _0xbf40=function(_0x4bfb94,_0x57e844){_0x4bfb94=_0x4bfb94-0x0;var _0x55bde6=_0xf40b[_0x4bfb94];return _0x55bde6;};'use strict';var client=require('../../client');exports[_0xbf40('0x0')]=function(){return function(_0x31cc68){return client[_0xbf40('0x1')](_0xbf40('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xbf40('0x3'),_0xbf40('0x4'),_0xbf40('0x5'),_0xbf40('0x6')],'include':[{'model':_0xbf40('0x7'),'as':'Configurations','attributes':['id',_0xbf40('0x8')],'include':[{'model':_0xbf40('0x9'),'as':_0xbf40('0xa'),'attributes':['id',_0xbf40('0xb'),_0xbf40('0xc'),'variableName'],'include':[{'model':_0xbf40('0xd'),'as':_0xbf40('0xd'),'attributes':['id',_0xbf40('0x8')]}]},{'model':_0xbf40('0x9'),'as':_0xbf40('0xe'),'attributes':['id',_0xbf40('0xb'),_0xbf40('0xc'),_0xbf40('0xf'),'keyType',_0xbf40('0x10'),_0xbf40('0x11')],'include':[{'model':_0xbf40('0xd'),'as':_0xbf40('0xd'),'attributes':['id',_0xbf40('0x8')]}]}]}]},'log':_0xbf40('0x12')});};};