Built motion from commit a679711e.|2.6.15
[motion2.git] / server / services / ami / rpc / trigger.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 _0xe46b=['operator','value','Action','action','data2','data3','data4','data5','data6','../client','Request','GetTrigger','name','channel','Condition','field'];(function(_0x1861d4,_0x295ec8){var _0x4df574=function(_0x3838bf){while(--_0x3838bf){_0x1861d4['push'](_0x1861d4['shift']());}};_0x4df574(++_0x295ec8);}(_0xe46b,0x169));var _0xbe46=function(_0x8a2c79,_0x44600b){_0x8a2c79=_0x8a2c79-0x0;var _0x5f3ea3=_0xe46b[_0x8a2c79];return _0x5f3ea3;};'use strict';var client=require(_0xbe46('0x0'));exports['getTriggers']=function(_0xf3abfe){return function(_0x17ae0c){return client[_0xbe46('0x1')](_0xbe46('0x2'),{'options':{'raw':![],'attributes':['id',_0xbe46('0x3'),_0xbe46('0x4'),'status'],'include':[{'model':_0xbe46('0x5'),'as':'AllConditions','attributes':['id',_0xbe46('0x6'),_0xbe46('0x7'),_0xbe46('0x8')]},{'model':_0xbe46('0x5'),'as':'AnyConditions','attributes':['id','field','operator',_0xbe46('0x8')]},{'model':_0xbe46('0x9'),'as':'Actions','attributes':['id',_0xbe46('0xa'),'data1',_0xbe46('0xb'),_0xbe46('0xc'),_0xbe46('0xd'),_0xbe46('0xe'),_0xbe46('0xf'),'data7']}]},'log':_0xbe46('0x2')});};};