dc1ec291b36187fe660feeac4ca35780b91ce79e
[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 _0x451e=['data5','data6','data7','GetTrigger','../client','getTriggers','Request','channel','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','action','data1','data2','data3','data4'];(function(_0x31ced5,_0x5d5415){var _0x10d9e5=function(_0x2e51a5){while(--_0x2e51a5){_0x31ced5['push'](_0x31ced5['shift']());}};_0x10d9e5(++_0x5d5415);}(_0x451e,0x1e8));var _0xe451=function(_0x442a66,_0x30c48c){_0x442a66=_0x442a66-0x0;var _0x2f6463=_0x451e[_0x442a66];return _0x2f6463;};'use strict';var client=require(_0xe451('0x0'));exports[_0xe451('0x1')]=function(_0x1eccd8){return function(_0x4ea71d){return client[_0xe451('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id','name',_0xe451('0x3'),_0xe451('0x4')],'include':[{'model':_0xe451('0x5'),'as':_0xe451('0x6'),'attributes':['id',_0xe451('0x7'),_0xe451('0x8'),_0xe451('0x9')]},{'model':_0xe451('0x5'),'as':_0xe451('0xa'),'attributes':['id','field','operator',_0xe451('0x9')]},{'model':_0xe451('0xb'),'as':_0xe451('0xc'),'attributes':['id',_0xe451('0xd'),_0xe451('0xe'),_0xe451('0xf'),_0xe451('0x10'),_0xe451('0x11'),_0xe451('0x12'),_0xe451('0x13'),_0xe451('0x14')]}]},'log':_0xe451('0x15')});};};