Built motion from commit 936e8062.|2.5.33
[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 _0x3acc=['action','data3','data4','data5','data6','data7','../client','getTriggers','Request','GetTrigger','name','status','Condition','AllConditions','field','value','AnyConditions','operator','Action'];(function(_0x24ced1,_0x208682){var _0xb101a3=function(_0x8fca97){while(--_0x8fca97){_0x24ced1['push'](_0x24ced1['shift']());}};_0xb101a3(++_0x208682);}(_0x3acc,0x15c));var _0xc3ac=function(_0x309319,_0xbeb7){_0x309319=_0x309319-0x0;var _0x4888e3=_0x3acc[_0x309319];return _0x4888e3;};'use strict';var client=require(_0xc3ac('0x0'));exports[_0xc3ac('0x1')]=function(_0x3c0a8c){return function(_0x196861){return client[_0xc3ac('0x2')](_0xc3ac('0x3'),{'options':{'raw':![],'attributes':['id',_0xc3ac('0x4'),'channel',_0xc3ac('0x5')],'include':[{'model':_0xc3ac('0x6'),'as':_0xc3ac('0x7'),'attributes':['id',_0xc3ac('0x8'),'operator',_0xc3ac('0x9')]},{'model':'Condition','as':_0xc3ac('0xa'),'attributes':['id',_0xc3ac('0x8'),_0xc3ac('0xb'),'value']},{'model':_0xc3ac('0xc'),'as':'Actions','attributes':['id',_0xc3ac('0xd'),'data1','data2',_0xc3ac('0xe'),_0xc3ac('0xf'),_0xc3ac('0x10'),_0xc3ac('0x11'),_0xc3ac('0x12')]}]},'log':_0xc3ac('0x3')});};};