Built motion from commit 85328c08.|2.5.50
[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 _0x5248=['bluebird','request-promise','path','rimraf','../../config/environment','./attachment.attributes','exports','define','lodash','../../config/logger','api','moment'];(function(_0x232caf,_0x358822){var _0x4a5781=function(_0x33beeb){while(--_0x33beeb){_0x232caf['push'](_0x232caf['shift']());}};_0x4a5781(++_0x358822);}(_0x5248,0x1f4));var _0x8524=function(_0x1a31e5,_0x28b0da){_0x1a31e5=_0x1a31e5-0x0;var _0x14eff7=_0x5248[_0x1a31e5];return _0x14eff7;};'use strict';var _=require(_0x8524('0x0'));var util=require('util');var logger=require(_0x8524('0x1'))(_0x8524('0x2'));var moment=require(_0x8524('0x3'));var BPromise=require(_0x8524('0x4'));var rp=require(_0x8524('0x5'));var fs=require('fs');var path=require(_0x8524('0x6'));var rimraf=require(_0x8524('0x7'));var config=require(_0x8524('0x8'));var attributes=require(_0x8524('0x9'));module[_0x8524('0xa')]=function(_0x120e9d,_0x476c72){return _0x120e9d[_0x8524('0xb')]('Attachment',attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};