Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / attachment / attachment.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 _0x7e3e=['Attachment','attachments','util','moment','path','../../config/environment','exports','define'];(function(_0x5c5b62,_0x1a998f){var _0x2034a2=function(_0x28ce24){while(--_0x28ce24){_0x5c5b62['push'](_0x5c5b62['shift']());}};_0x2034a2(++_0x1a998f);}(_0x7e3e,0x7a));var _0xe7e3=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x7e3e[_0x17d9e3];return _0x14192d;};'use strict';var _=require('lodash');var util=require(_0xe7e3('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xe7e3('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe7e3('0x2'));var rimraf=require('rimraf');var config=require(_0xe7e3('0x3'));var attributes=require('./attachment.attributes');module[_0xe7e3('0x4')]=function(_0x340a87,_0x5ad116){return _0x340a87[_0xe7e3('0x5')](_0xe7e3('0x6'),attributes,{'tableName':_0xe7e3('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};