0964da0a3d1d27df08c53258d40fc16208581361
[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 _0x31c2=['Descriptions','content','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','FreshsalesConfiguration','Configurations','FreshsalesField','type','variableName','Variable'];(function(_0x3d4ac8,_0x1ef781){var _0x250096=function(_0x41eedb){while(--_0x41eedb){_0x3d4ac8['push'](_0x3d4ac8['shift']());}};_0x250096(++_0x1ef781);}(_0x31c2,0x1e1));var _0x231c=function(_0x399478,_0x2d0f38){_0x399478=_0x399478-0x0;var _0x1c2ce9=_0x31c2[_0x399478];return _0x1c2ce9;};'use strict';var client=require(_0x231c('0x0'));exports[_0x231c('0x1')]=function(){return function(_0x3bb038){return client[_0x231c('0x2')](_0x231c('0x3'),{'options':{'raw':![],'attributes':['id',_0x231c('0x4'),_0x231c('0x5'),_0x231c('0x6'),'remoteUri','serverUrl'],'include':[{'model':_0x231c('0x7'),'as':_0x231c('0x8'),'attributes':['id',_0x231c('0x4')],'include':[{'model':_0x231c('0x9'),'as':'Subjects','attributes':['id',_0x231c('0xa'),'content',_0x231c('0xb')],'include':[{'model':_0x231c('0xc'),'as':_0x231c('0xc'),'attributes':['id','name']}]},{'model':_0x231c('0x9'),'as':_0x231c('0xd'),'attributes':['id',_0x231c('0xa'),_0x231c('0xe'),_0x231c('0xf'),_0x231c('0x10'),_0x231c('0x11'),'variableName'],'include':[{'model':_0x231c('0xc'),'as':_0x231c('0xc'),'attributes':['id','name']}]}]}]},'log':_0x231c('0x12')});};};