Built motion from commit 167bccf5.|2.6.7
[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 _0xfdca=['tools_automations','lodash','util','../../config/logger','api','path','./automation.attributes','exports','define','Automation'];(function(_0x2a276d,_0x482b0c){var _0x2914cd=function(_0x452b8b){while(--_0x452b8b){_0x2a276d['push'](_0x2a276d['shift']());}};_0x2914cd(++_0x482b0c);}(_0xfdca,0x15f));var _0xafdc=function(_0x7e7ce2,_0x540184){_0x7e7ce2=_0x7e7ce2-0x0;var _0x19169a=_0xfdca[_0x7e7ce2];return _0x19169a;};'use strict';var _=require(_0xafdc('0x0'));var util=require(_0xafdc('0x1'));var logger=require(_0xafdc('0x2'))(_0xafdc('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xafdc('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xafdc('0x5'));module[_0xafdc('0x6')]=function(_0x11c4c0,_0x439a3e){return _0x11c4c0[_0xafdc('0x7')](_0xafdc('0x8'),attributes,{'tableName':_0xafdc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};