9d8c7c711f7b26b760a8d520b49a87cfb48e10d2
[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 _0xa547=['attachments','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./attachment.attributes','exports','define'];(function(_0x2b3bb9,_0x1556ce){var _0x5d3da5=function(_0x10e14d){while(--_0x10e14d){_0x2b3bb9['push'](_0x2b3bb9['shift']());}};_0x5d3da5(++_0x1556ce);}(_0xa547,0x1c9));var _0x7a54=function(_0x16491a,_0x54405e){_0x16491a=_0x16491a-0x0;var _0x1c8afb=_0xa547[_0x16491a];return _0x1c8afb;};'use strict';var _=require('lodash');var util=require(_0x7a54('0x0'));var logger=require(_0x7a54('0x1'))(_0x7a54('0x2'));var moment=require(_0x7a54('0x3'));var BPromise=require(_0x7a54('0x4'));var rp=require(_0x7a54('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7a54('0x6'));var config=require(_0x7a54('0x7'));var attributes=require(_0x7a54('0x8'));module[_0x7a54('0x9')]=function(_0x500462,_0x47aa86){return _0x500462[_0x7a54('0xa')]('Attachment',attributes,{'tableName':_0x7a54('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};