5237892d0150510cda694ced7c358c5c1b869853
[motion2.git] / server / api / trigger / trigger.model.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 _0xf210=['exports','define','tools_triggers','lodash','util','../../config/logger','api','moment','bluebird','path','../../config/environment'];(function(_0x293ff3,_0xaf4417){var _0x3c6fef=function(_0x8b2de9){while(--_0x8b2de9){_0x293ff3['push'](_0x293ff3['shift']());}};_0x3c6fef(++_0xaf4417);}(_0xf210,0x1e7));var _0x0f21=function(_0x5f4d67,_0x2e7676){_0x5f4d67=_0x5f4d67-0x0;var _0x33597e=_0xf210[_0x5f4d67];return _0x33597e;};'use strict';var _=require(_0x0f21('0x0'));var util=require(_0x0f21('0x1'));var logger=require(_0x0f21('0x2'))(_0x0f21('0x3'));var moment=require(_0x0f21('0x4'));var BPromise=require(_0x0f21('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0f21('0x6'));var rimraf=require('rimraf');var config=require(_0x0f21('0x7'));var attributes=require('./trigger.attributes');module[_0x0f21('0x8')]=function(_0xa07a8d,_0x672810){return _0xa07a8d[_0x0f21('0x9')]('Trigger',attributes,{'tableName':_0x0f21('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};