Built motion from commit d9028345.|2.5.43
[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 _0xfa39=['VtigerField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','Request','GetVtigerAccount','name','description','username','remoteUri','Configurations'];(function(_0x449d4f,_0x480153){var _0x4e5af0=function(_0x1040f8){while(--_0x1040f8){_0x449d4f['push'](_0x449d4f['shift']());}};_0x4e5af0(++_0x480153);}(_0xfa39,0x7c));var _0x9fa3=function(_0x544072,_0xc41ee1){_0x544072=_0x544072-0x0;var _0x590bf6=_0xfa39[_0x544072];return _0x590bf6;};'use strict';var client=require(_0x9fa3('0x0'));exports['getVtigerAccounts']=function(){return function(_0x199d0b){return client[_0x9fa3('0x1')](_0x9fa3('0x2'),{'options':{'raw':![],'attributes':['id',_0x9fa3('0x3'),_0x9fa3('0x4'),_0x9fa3('0x5'),'accessKey',_0x9fa3('0x6'),'serverUrl'],'include':[{'model':'VtigerConfiguration','as':_0x9fa3('0x7'),'attributes':['id',_0x9fa3('0x3')],'include':[{'model':_0x9fa3('0x8'),'as':_0x9fa3('0x9'),'attributes':['id',_0x9fa3('0xa'),_0x9fa3('0xb'),_0x9fa3('0xc')],'include':[{'model':_0x9fa3('0xd'),'as':_0x9fa3('0xd'),'attributes':['id','name']}]},{'model':_0x9fa3('0x8'),'as':_0x9fa3('0xe'),'attributes':['id','type',_0x9fa3('0xb'),_0x9fa3('0xf'),_0x9fa3('0x10'),_0x9fa3('0x11'),_0x9fa3('0xc')],'include':[{'model':_0x9fa3('0xd'),'as':_0x9fa3('0xd'),'attributes':['id',_0x9fa3('0x3')]}]},{'model':_0x9fa3('0x8'),'as':_0x9fa3('0x12'),'attributes':['id','type',_0x9fa3('0xb'),_0x9fa3('0x13'),_0x9fa3('0x14'),_0x9fa3('0x15'),_0x9fa3('0xc')],'include':[{'model':_0x9fa3('0xd'),'as':_0x9fa3('0xd'),'attributes':['id',_0x9fa3('0x3')]}]}]}]},'log':_0x9fa3('0x2')});};};