598625bf8dab490186e96aeb76b4b6f813630296
[motion2.git] / server / api / migration / migration.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 _0xe8f9=['define','Migration','migrations','lodash','util','api','moment','request-promise','path','../../config/environment','./migration.attributes','exports'];(function(_0x4e38fd,_0x13d776){var _0x2fe8b7=function(_0x22127a){while(--_0x22127a){_0x4e38fd['push'](_0x4e38fd['shift']());}};_0x2fe8b7(++_0x13d776);}(_0xe8f9,0xf3));var _0x9e8f=function(_0x12628b,_0x155dc7){_0x12628b=_0x12628b-0x0;var _0x17d4ec=_0xe8f9[_0x12628b];return _0x17d4ec;};'use strict';var _=require(_0x9e8f('0x0'));var util=require(_0x9e8f('0x1'));var logger=require('../../config/logger')(_0x9e8f('0x2'));var moment=require(_0x9e8f('0x3'));var BPromise=require('bluebird');var rp=require(_0x9e8f('0x4'));var fs=require('fs');var path=require(_0x9e8f('0x5'));var rimraf=require('rimraf');var config=require(_0x9e8f('0x6'));var attributes=require(_0x9e8f('0x7'));module[_0x9e8f('0x8')]=function(_0x3b1a34,_0x11c8b5){return _0x3b1a34[_0x9e8f('0x9')](_0x9e8f('0xa'),attributes,{'tableName':_0x9e8f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};