690c6df98fb002528eb371ebcc6654f821758f60
[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 _0x3f53=['bluebird','rimraf','../../config/environment','exports','define','Automation','tools_automations','api','moment'];(function(_0x5eb22e,_0x27cbac){var _0x27fed5=function(_0x565467){while(--_0x565467){_0x5eb22e['push'](_0x5eb22e['shift']());}};_0x27fed5(++_0x27cbac);}(_0x3f53,0x1d2));var _0x33f5=function(_0x45d349,_0x9fc6b4){_0x45d349=_0x45d349-0x0;var _0x17ddfb=_0x3f53[_0x45d349];return _0x17ddfb;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x33f5('0x0'));var moment=require(_0x33f5('0x1'));var BPromise=require(_0x33f5('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x33f5('0x3'));var config=require(_0x33f5('0x4'));var attributes=require('./automation.attributes');module[_0x33f5('0x5')]=function(_0x386a9a,_0x5449d5){return _0x386a9a[_0x33f5('0x6')](_0x33f5('0x7'),attributes,{'tableName':_0x33f5('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};