Built motion from commit (unavailable).|2.4.19
[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 _0xe0c0=['name','apiKey','remoteUri','serverUrl','Configurations','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','../../client','Request','GetFreshsalesAccount'];(function(_0x54edc9,_0x345f01){var _0x2ae7a9=function(_0x24a545){while(--_0x24a545){_0x54edc9['push'](_0x54edc9['shift']());}};_0x2ae7a9(++_0x345f01);}(_0xe0c0,0xa7));var _0x0e0c=function(_0x413ec4,_0x4a0242){_0x413ec4=_0x413ec4-0x0;var _0x36ef49=_0xe0c0[_0x413ec4];return _0x36ef49;};'use strict';var client=require(_0x0e0c('0x0'));exports['getFreshsalesAccounts']=function(){return function(_0x22d512){return client[_0x0e0c('0x1')](_0x0e0c('0x2'),{'options':{'raw':![],'attributes':['id',_0x0e0c('0x3'),'username',_0x0e0c('0x4'),_0x0e0c('0x5'),_0x0e0c('0x6')],'include':[{'model':'FreshsalesConfiguration','as':_0x0e0c('0x7'),'attributes':['id',_0x0e0c('0x3')],'include':[{'model':'FreshsalesField','as':_0x0e0c('0x8'),'attributes':['id',_0x0e0c('0x9'),_0x0e0c('0xa'),_0x0e0c('0xb')],'include':[{'model':_0x0e0c('0xc'),'as':'Variable','attributes':['id','name']}]},{'model':'FreshsalesField','as':_0x0e0c('0xd'),'attributes':['id','type',_0x0e0c('0xa'),_0x0e0c('0xe'),_0x0e0c('0xf'),_0x0e0c('0x10'),_0x0e0c('0xb')],'include':[{'model':_0x0e0c('0xc'),'as':_0x0e0c('0xc'),'attributes':['id',_0x0e0c('0x3')]}]}]}]},'log':'GetFreshsalesccount'});};};