Built motion from commit 85328c08.|2.5.50
[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 _0x5e0e=['GetFreshsalesAccount','name','username','apiKey','serverUrl','Configurations','FreshsalesField','Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request'];(function(_0x4529b3,_0x390ebb){var _0x21e907=function(_0x1c19dc){while(--_0x1c19dc){_0x4529b3['push'](_0x4529b3['shift']());}};_0x21e907(++_0x390ebb);}(_0x5e0e,0x89));var _0xe5e0=function(_0x188341,_0x54ba0f){_0x188341=_0x188341-0x0;var _0x2e86cf=_0x5e0e[_0x188341];return _0x2e86cf;};'use strict';var client=require(_0xe5e0('0x0'));exports[_0xe5e0('0x1')]=function(){return function(_0x54701a){return client[_0xe5e0('0x2')](_0xe5e0('0x3'),{'options':{'raw':![],'attributes':['id',_0xe5e0('0x4'),_0xe5e0('0x5'),_0xe5e0('0x6'),'remoteUri',_0xe5e0('0x7')],'include':[{'model':'FreshsalesConfiguration','as':_0xe5e0('0x8'),'attributes':['id',_0xe5e0('0x4')],'include':[{'model':_0xe5e0('0x9'),'as':_0xe5e0('0xa'),'attributes':['id',_0xe5e0('0xb'),_0xe5e0('0xc'),'variableName'],'include':[{'model':_0xe5e0('0xd'),'as':_0xe5e0('0xd'),'attributes':['id','name']}]},{'model':_0xe5e0('0x9'),'as':_0xe5e0('0xe'),'attributes':['id',_0xe5e0('0xb'),_0xe5e0('0xc'),_0xe5e0('0xf'),_0xe5e0('0x10'),_0xe5e0('0x11'),_0xe5e0('0x12')],'include':[{'model':_0xe5e0('0xd'),'as':_0xe5e0('0xd'),'attributes':['id',_0xe5e0('0x4')]}]}]}]},'log':_0xe5e0('0x13')});};};