Built motion from commit (unavailable).|2.5.14
[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 _0xab04=['../client','getTriggers','Request','GetTrigger','name','Condition','AllConditions','field','value','AnyConditions','operator','Action','Actions','action','data1','data2','data3','data5','data6','data7'];(function(_0x47cd53,_0x43e9b4){var _0x2d128c=function(_0x585312){while(--_0x585312){_0x47cd53['push'](_0x47cd53['shift']());}};_0x2d128c(++_0x43e9b4);}(_0xab04,0x1b8));var _0x4ab0=function(_0x2b27a0,_0x2ee33){_0x2b27a0=_0x2b27a0-0x0;var _0x44ec6b=_0xab04[_0x2b27a0];return _0x44ec6b;};'use strict';var client=require(_0x4ab0('0x0'));exports[_0x4ab0('0x1')]=function(_0xd9d99f){return function(_0x57a05f){return client[_0x4ab0('0x2')](_0x4ab0('0x3'),{'options':{'raw':![],'attributes':['id',_0x4ab0('0x4'),'channel','status'],'include':[{'model':_0x4ab0('0x5'),'as':_0x4ab0('0x6'),'attributes':['id',_0x4ab0('0x7'),'operator',_0x4ab0('0x8')]},{'model':_0x4ab0('0x5'),'as':_0x4ab0('0x9'),'attributes':['id',_0x4ab0('0x7'),_0x4ab0('0xa'),_0x4ab0('0x8')]},{'model':_0x4ab0('0xb'),'as':_0x4ab0('0xc'),'attributes':['id',_0x4ab0('0xd'),_0x4ab0('0xe'),_0x4ab0('0xf'),_0x4ab0('0x10'),'data4',_0x4ab0('0x11'),_0x4ab0('0x12'),_0x4ab0('0x13')]}]},'log':'GetTrigger'});};};