ed2b907e4d13997f79cc6083157a629191d4cee9
[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 _0x2f86=['define','CloudProvider','util','../../config/logger','api','request-promise','path','exports'];(function(_0x2f97d5,_0x285487){var _0x256716=function(_0x3a7726){while(--_0x3a7726){_0x2f97d5['push'](_0x2f97d5['shift']());}};_0x256716(++_0x285487);}(_0x2f86,0x1c2));var _0x62f8=function(_0xc67528,_0x24e2fb){_0xc67528=_0xc67528-0x0;var _0x38e26d=_0x2f86[_0xc67528];return _0x38e26d;};'use strict';var _=require('lodash');var util=require(_0x62f8('0x0'));var logger=require(_0x62f8('0x1'))(_0x62f8('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x62f8('0x3'));var fs=require('fs');var path=require(_0x62f8('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./cloudProvider.attributes');module[_0x62f8('0x5')]=function(_0x2593e,_0x4a6f6d){return _0x2593e[_0x62f8('0x6')](_0x62f8('0x7'),attributes,{'tableName':'cloud_providers','paranoid':![],'indexes':[],'timestamps':!![]});};