1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5bbc=['../client','Request','GetTrigger','name','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','data1','data2','data4','data5','data6'];(function(_0x2b94f7,_0x347a9b){var _0x4930a9=function(_0x2e1a9a){while(--_0x2e1a9a){_0x2b94f7['push'](_0x2b94f7['shift']());}};_0x4930a9(++_0x347a9b);}(_0x5bbc,0x1d4));var _0xc5bb=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x5bbc[_0x501510];return _0x1e6ee5;};'use strict';var client=require(_0xc5bb('0x0'));exports['getTriggers']=function(_0x5ad028){return function(_0x28bdad){return client[_0xc5bb('0x1')](_0xc5bb('0x2'),{'options':{'raw':![],'attributes':['id',_0xc5bb('0x3'),'channel',_0xc5bb('0x4')],'include':[{'model':_0xc5bb('0x5'),'as':_0xc5bb('0x6'),'attributes':['id',_0xc5bb('0x7'),_0xc5bb('0x8'),_0xc5bb('0x9')]},{'model':_0xc5bb('0x5'),'as':_0xc5bb('0xa'),'attributes':['id',_0xc5bb('0x7'),'operator',_0xc5bb('0x9')]},{'model':_0xc5bb('0xb'),'as':_0xc5bb('0xc'),'attributes':['id','action',_0xc5bb('0xd'),_0xc5bb('0xe'),'data3',_0xc5bb('0xf'),_0xc5bb('0x10'),_0xc5bb('0x11'),'data7']}]},'log':_0xc5bb('0x2')});};};