Built motion from commit 753c950e.|2.5.42
[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 _0xc124=['operator','value','Actions','data1','data2','data5','data7','../client','getTriggers','Request','GetTrigger','channel','status','Condition','AllConditions','field'];(function(_0xef8146,_0x459c34){var _0x5a6cb0=function(_0x2f84ec){while(--_0x2f84ec){_0xef8146['push'](_0xef8146['shift']());}};_0x5a6cb0(++_0x459c34);}(_0xc124,0x137));var _0x4c12=function(_0xae188,_0x1121c2){_0xae188=_0xae188-0x0;var _0x507a48=_0xc124[_0xae188];return _0x507a48;};'use strict';var client=require(_0x4c12('0x0'));exports[_0x4c12('0x1')]=function(_0x2219a4){return function(_0x4755db){return client[_0x4c12('0x2')](_0x4c12('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x4c12('0x4'),_0x4c12('0x5')],'include':[{'model':_0x4c12('0x6'),'as':_0x4c12('0x7'),'attributes':['id',_0x4c12('0x8'),_0x4c12('0x9'),'value']},{'model':_0x4c12('0x6'),'as':'AnyConditions','attributes':['id',_0x4c12('0x8'),_0x4c12('0x9'),_0x4c12('0xa')]},{'model':'Action','as':_0x4c12('0xb'),'attributes':['id','action',_0x4c12('0xc'),_0x4c12('0xd'),'data3','data4',_0x4c12('0xe'),'data6',_0x4c12('0xf')]}]},'log':_0x4c12('0x3')});};};