c0f087ed8ffc8079c5290f52021bdcf24096c2b8
[motion2.git] / server / api / cloudProvider / cloudProvider.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 _0x1be6=['../../config/environment','exports','define','CloudProvider','lodash','api','moment','request-promise','path','rimraf'];(function(_0x4ae625,_0xf396d0){var _0x31accf=function(_0x3ded6b){while(--_0x3ded6b){_0x4ae625['push'](_0x4ae625['shift']());}};_0x31accf(++_0xf396d0);}(_0x1be6,0x90));var _0x61be=function(_0x1c5d12,_0x1ac034){_0x1c5d12=_0x1c5d12-0x0;var _0x22f0b5=_0x1be6[_0x1c5d12];return _0x22f0b5;};'use strict';var _=require(_0x61be('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x61be('0x1'));var moment=require(_0x61be('0x2'));var BPromise=require('bluebird');var rp=require(_0x61be('0x3'));var fs=require('fs');var path=require(_0x61be('0x4'));var rimraf=require(_0x61be('0x5'));var config=require(_0x61be('0x6'));var attributes=require('./cloudProvider.attributes');module[_0x61be('0x7')]=function(_0x24ee8b,_0x3cf84c){return _0x24ee8b[_0x61be('0x8')](_0x61be('0x9'),attributes,{'tableName':'cloud_providers','paranoid':![],'indexes':[],'timestamps':!![]});};