Built motion from commit 3e059bc2.|2.5.32
[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 _0x4b84=['Automation','util','api','moment','rimraf','../../config/environment','define'];(function(_0x383398,_0x279c07){var _0x20f063=function(_0x3ea1f9){while(--_0x3ea1f9){_0x383398['push'](_0x383398['shift']());}};_0x20f063(++_0x279c07);}(_0x4b84,0x1c8));var _0x44b8=function(_0x3f4dd9,_0xe0b819){_0x3f4dd9=_0x3f4dd9-0x0;var _0x31c54a=_0x4b84[_0x3f4dd9];return _0x31c54a;};'use strict';var _=require('lodash');var util=require(_0x44b8('0x0'));var logger=require('../../config/logger')(_0x44b8('0x1'));var moment=require(_0x44b8('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x44b8('0x3'));var config=require(_0x44b8('0x4'));var attributes=require('./automation.attributes');module['exports']=function(_0x201c33,_0x4575c5){return _0x201c33[_0x44b8('0x5')](_0x44b8('0x6'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};