b3081cb6e997d5ca51b43f156d64fadef0c8e470
[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 _0x02ff=['exports','define','Migration','migrations','lodash','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./migration.attributes'];(function(_0x70504d,_0x34e810){var _0x47e29b=function(_0x119dfe){while(--_0x119dfe){_0x70504d['push'](_0x70504d['shift']());}};_0x47e29b(++_0x34e810);}(_0x02ff,0x122));var _0xf02f=function(_0x4ee366,_0x51fd74){_0x4ee366=_0x4ee366-0x0;var _0x5df1ab=_0x02ff[_0x4ee366];return _0x5df1ab;};'use strict';var _=require(_0xf02f('0x0'));var util=require(_0xf02f('0x1'));var logger=require(_0xf02f('0x2'))('api');var moment=require(_0xf02f('0x3'));var BPromise=require(_0xf02f('0x4'));var rp=require(_0xf02f('0x5'));var fs=require('fs');var path=require(_0xf02f('0x6'));var rimraf=require('rimraf');var config=require(_0xf02f('0x7'));var attributes=require(_0xf02f('0x8'));module[_0xf02f('0x9')]=function(_0x461e74,_0x4b9efe){return _0x461e74[_0xf02f('0xa')](_0xf02f('0xb'),attributes,{'tableName':_0xf02f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};