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 _0xdc24=['name','channel','status','Condition','AllConditions','value','AnyConditions','field','operator','Actions','data3','data5','data6','data7','../client','Request','GetTrigger'];(function(_0x3c1b2d,_0x23b1b9){var _0x412475=function(_0x1245ad){while(--_0x1245ad){_0x3c1b2d['push'](_0x3c1b2d['shift']());}};_0x412475(++_0x23b1b9);}(_0xdc24,0x74));var _0x4dc2=function(_0x426d1c,_0x2cb46a){_0x426d1c=_0x426d1c-0x0;var _0x1d53d4=_0xdc24[_0x426d1c];return _0x1d53d4;};'use strict';var client=require(_0x4dc2('0x0'));exports['getTriggers']=function(_0x93371b){return function(_0x2b6729){return client[_0x4dc2('0x1')](_0x4dc2('0x2'),{'options':{'raw':![],'attributes':['id',_0x4dc2('0x3'),_0x4dc2('0x4'),_0x4dc2('0x5')],'include':[{'model':_0x4dc2('0x6'),'as':_0x4dc2('0x7'),'attributes':['id','field','operator',_0x4dc2('0x8')]},{'model':_0x4dc2('0x6'),'as':_0x4dc2('0x9'),'attributes':['id',_0x4dc2('0xa'),_0x4dc2('0xb'),_0x4dc2('0x8')]},{'model':'Action','as':_0x4dc2('0xc'),'attributes':['id','action','data1','data2',_0x4dc2('0xd'),'data4',_0x4dc2('0xe'),_0x4dc2('0xf'),_0x4dc2('0x10')]}]},'log':_0x4dc2('0x2')});};};