3312b0b60fbadc7f50ef7e30d1bed0fb396bcfe3
[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 _0x4a96=['util','moment','path','../../config/environment','exports','define','Automation','tools_automations','lodash'];(function(_0x5efe55,_0x17bf43){var _0x1f3b66=function(_0x41bdf5){while(--_0x41bdf5){_0x5efe55['push'](_0x5efe55['shift']());}};_0x1f3b66(++_0x17bf43);}(_0x4a96,0x19d));var _0x64a9=function(_0x5806b3,_0x4c5af9){_0x5806b3=_0x5806b3-0x0;var _0x518086=_0x4a96[_0x5806b3];return _0x518086;};'use strict';var _=require(_0x64a9('0x0'));var util=require(_0x64a9('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x64a9('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x64a9('0x3'));var rimraf=require('rimraf');var config=require(_0x64a9('0x4'));var attributes=require('./automation.attributes');module[_0x64a9('0x5')]=function(_0x48f66e,_0x3a05e3){return _0x48f66e[_0x64a9('0x6')](_0x64a9('0x7'),attributes,{'tableName':_0x64a9('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};