bcc0654afd01c38a0ae348aeeb3995f0edcd4466
[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 _0xfd6f=['rimraf','../../config/environment','exports','define','tools_automations','lodash','util','../../config/logger','api','moment','request-promise','path'];(function(_0x4c0b0a,_0x31d5ed){var _0x4cd561=function(_0x1d1c6d){while(--_0x1d1c6d){_0x4c0b0a['push'](_0x4c0b0a['shift']());}};_0x4cd561(++_0x31d5ed);}(_0xfd6f,0x19d));var _0xffd6=function(_0x79b7d8,_0x1c998e){_0x79b7d8=_0x79b7d8-0x0;var _0xeef95e=_0xfd6f[_0x79b7d8];return _0xeef95e;};'use strict';var _=require(_0xffd6('0x0'));var util=require(_0xffd6('0x1'));var logger=require(_0xffd6('0x2'))(_0xffd6('0x3'));var moment=require(_0xffd6('0x4'));var BPromise=require('bluebird');var rp=require(_0xffd6('0x5'));var fs=require('fs');var path=require(_0xffd6('0x6'));var rimraf=require(_0xffd6('0x7'));var config=require(_0xffd6('0x8'));var attributes=require('./automation.attributes');module[_0xffd6('0x9')]=function(_0x380073,_0x3f3cd8){return _0x380073[_0xffd6('0xa')]('Automation',attributes,{'tableName':_0xffd6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};