Built motion from commit 85328c08.|2.5.50
[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 _0x3edc=['field','operator','value','AnyConditions','Action','Actions','action','data1','data2','data3','data4','data6','data7','getTriggers','Request','name','channel','status','Condition','AllConditions'];(function(_0xffc0a0,_0x398010){var _0x548cbd=function(_0x31d238){while(--_0x31d238){_0xffc0a0['push'](_0xffc0a0['shift']());}};_0x548cbd(++_0x398010);}(_0x3edc,0x139));var _0xc3ed=function(_0x4f5df0,_0xeeb5a4){_0x4f5df0=_0x4f5df0-0x0;var _0x45e3b3=_0x3edc[_0x4f5df0];return _0x45e3b3;};'use strict';var client=require('../client');exports[_0xc3ed('0x0')]=function(_0x2306d1){return function(_0x193257){return client[_0xc3ed('0x1')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0xc3ed('0x2'),_0xc3ed('0x3'),_0xc3ed('0x4')],'include':[{'model':_0xc3ed('0x5'),'as':_0xc3ed('0x6'),'attributes':['id',_0xc3ed('0x7'),_0xc3ed('0x8'),_0xc3ed('0x9')]},{'model':'Condition','as':_0xc3ed('0xa'),'attributes':['id','field','operator',_0xc3ed('0x9')]},{'model':_0xc3ed('0xb'),'as':_0xc3ed('0xc'),'attributes':['id',_0xc3ed('0xd'),_0xc3ed('0xe'),_0xc3ed('0xf'),_0xc3ed('0x10'),_0xc3ed('0x11'),'data5',_0xc3ed('0x12'),_0xc3ed('0x13')]}]},'log':'GetTrigger'});};};