Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xaaca=['variableName','Variable','Descriptions','type','key','keyType','Fields','idField','nameField','customField','Request','GetVtigerAccount','description','username','serverUrl','VtigerConfiguration','name','VtigerField','content'];(function(_0x4484a3,_0x5342da){var _0x59fc24=function(_0xb1b318){while(--_0xb1b318){_0x4484a3['push'](_0x4484a3['shift']());}};_0x59fc24(++_0x5342da);}(_0xaaca,0x1ac));var _0xaaac=function(_0x2f3ecd,_0x57976b){_0x2f3ecd=_0x2f3ecd-0x0;var _0xffdc44=_0xaaca[_0x2f3ecd];return _0xffdc44;};'use strict';var client=require('../../client');exports['getVtigerAccounts']=function(){return function(_0x101264){return client[_0xaaac('0x0')](_0xaaac('0x1'),{'options':{'raw':![],'attributes':['id','name',_0xaaac('0x2'),_0xaaac('0x3'),'accessKey','remoteUri',_0xaaac('0x4')],'include':[{'model':_0xaaac('0x5'),'as':'Configurations','attributes':['id',_0xaaac('0x6')],'include':[{'model':_0xaaac('0x7'),'as':'Subjects','attributes':['id','type',_0xaaac('0x8'),_0xaaac('0x9')],'include':[{'model':_0xaaac('0xa'),'as':_0xaaac('0xa'),'attributes':['id',_0xaaac('0x6')]}]},{'model':_0xaaac('0x7'),'as':_0xaaac('0xb'),'attributes':['id',_0xaaac('0xc'),_0xaaac('0x8'),_0xaaac('0xd'),_0xaaac('0xe'),'keyContent',_0xaaac('0x9')],'include':[{'model':_0xaaac('0xa'),'as':_0xaaac('0xa'),'attributes':['id',_0xaaac('0x6')]}]},{'model':_0xaaac('0x7'),'as':_0xaaac('0xf'),'attributes':['id','type','content',_0xaaac('0x10'),_0xaaac('0x11'),_0xaaac('0x12'),'variableName'],'include':[{'model':_0xaaac('0xa'),'as':_0xaaac('0xa'),'attributes':['id','name']}]}]}]},'log':_0xaaac('0x1')});};};