Built motion from commit 87cd5f02.|2.5.48
[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 _0x36c3=['keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','FreshsalesField','Subjects','type','variableName','Variable','Descriptions','content','key','keyType'];(function(_0x11dc39,_0x491115){var _0x457277=function(_0x1d77cd){while(--_0x1d77cd){_0x11dc39['push'](_0x11dc39['shift']());}};_0x457277(++_0x491115);}(_0x36c3,0x1a6));var _0x336c=function(_0x2a6ab8,_0x5eb621){_0x2a6ab8=_0x2a6ab8-0x0;var _0x5752ab=_0x36c3[_0x2a6ab8];return _0x5752ab;};'use strict';var client=require(_0x336c('0x0'));exports[_0x336c('0x1')]=function(){return function(_0x4c7eb5){return client[_0x336c('0x2')](_0x336c('0x3'),{'options':{'raw':![],'attributes':['id',_0x336c('0x4'),_0x336c('0x5'),_0x336c('0x6'),_0x336c('0x7'),_0x336c('0x8')],'include':[{'model':'FreshsalesConfiguration','as':_0x336c('0x9'),'attributes':['id',_0x336c('0x4')],'include':[{'model':_0x336c('0xa'),'as':_0x336c('0xb'),'attributes':['id',_0x336c('0xc'),'content',_0x336c('0xd')],'include':[{'model':_0x336c('0xe'),'as':_0x336c('0xe'),'attributes':['id',_0x336c('0x4')]}]},{'model':_0x336c('0xa'),'as':_0x336c('0xf'),'attributes':['id',_0x336c('0xc'),_0x336c('0x10'),_0x336c('0x11'),_0x336c('0x12'),_0x336c('0x13'),_0x336c('0xd')],'include':[{'model':_0x336c('0xe'),'as':_0x336c('0xe'),'attributes':['id',_0x336c('0x4')]}]}]}]},'log':_0x336c('0x14')});};};