10f411c55236e8d63f785534486729a54c09c300
[motion2.git] / server / api / automation / automation.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 _0x342f=['./automation.attributes','exports','define','Automation','lodash','util','api','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x344984,_0x242ba3){var _0x27715c=function(_0x49d428){while(--_0x49d428){_0x344984['push'](_0x344984['shift']());}};_0x27715c(++_0x242ba3);}(_0x342f,0x12d));var _0xf342=function(_0x14b5a5,_0x231b3a){_0x14b5a5=_0x14b5a5-0x0;var _0x2a7706=_0x342f[_0x14b5a5];return _0x2a7706;};'use strict';var _=require(_0xf342('0x0'));var util=require(_0xf342('0x1'));var logger=require('../../config/logger')(_0xf342('0x2'));var moment=require('moment');var BPromise=require(_0xf342('0x3'));var rp=require(_0xf342('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf342('0x5'));var config=require(_0xf342('0x6'));var attributes=require(_0xf342('0x7'));module[_0xf342('0x8')]=function(_0x2af8fc,_0x5a6871){return _0x2af8fc[_0xf342('0x9')](_0xf342('0xa'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};