Built motion from commit 616d3211.|2.6.4
[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 _0x524e=['Subjects','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','GetFreshsalesccount','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField'];(function(_0x2c11e0,_0x58e76d){var _0xb58007=function(_0x4b41d4){while(--_0x4b41d4){_0x2c11e0['push'](_0x2c11e0['shift']());}};_0xb58007(++_0x58e76d);}(_0x524e,0x15e));var _0xe524=function(_0x5e1d2e,_0x4bc4cd){_0x5e1d2e=_0x5e1d2e-0x0;var _0x24be34=_0x524e[_0x5e1d2e];return _0x24be34;};'use strict';var client=require('../../client');exports['getFreshsalesAccounts']=function(){return function(_0x353d8a){return client[_0xe524('0x0')](_0xe524('0x1'),{'options':{'raw':![],'attributes':['id',_0xe524('0x2'),_0xe524('0x3'),_0xe524('0x4'),_0xe524('0x5'),_0xe524('0x6')],'include':[{'model':_0xe524('0x7'),'as':_0xe524('0x8'),'attributes':['id','name'],'include':[{'model':_0xe524('0x9'),'as':_0xe524('0xa'),'attributes':['id',_0xe524('0xb'),'content',_0xe524('0xc')],'include':[{'model':_0xe524('0xd'),'as':_0xe524('0xd'),'attributes':['id',_0xe524('0x2')]}]},{'model':_0xe524('0x9'),'as':_0xe524('0xe'),'attributes':['id',_0xe524('0xb'),_0xe524('0xf'),_0xe524('0x10'),_0xe524('0x11'),_0xe524('0x12'),_0xe524('0xc')],'include':[{'model':_0xe524('0xd'),'as':_0xe524('0xd'),'attributes':['id',_0xe524('0x2')]}]}]}]},'log':_0xe524('0x13')});};};