Built motion from commit d13fb11b.|2.6.34
[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 _0x9ee8=['path','rimraf','../../config/environment','exports','define','attachments','lodash','../../config/logger','api','moment'];(function(_0x4777c1,_0x53bfce){var _0x1ad838=function(_0x40d0bf){while(--_0x40d0bf){_0x4777c1['push'](_0x4777c1['shift']());}};_0x1ad838(++_0x53bfce);}(_0x9ee8,0x1aa));var _0x89ee=function(_0x50376e,_0x4455e0){_0x50376e=_0x50376e-0x0;var _0x42917f=_0x9ee8[_0x50376e];return _0x42917f;};'use strict';var _=require(_0x89ee('0x0'));var util=require('util');var logger=require(_0x89ee('0x1'))(_0x89ee('0x2'));var moment=require(_0x89ee('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x89ee('0x4'));var rimraf=require(_0x89ee('0x5'));var config=require(_0x89ee('0x6'));var attributes=require('./attachment.attributes');module[_0x89ee('0x7')]=function(_0x27f8c0,_0x37900a){return _0x27f8c0[_0x89ee('0x8')]('Attachment',attributes,{'tableName':_0x89ee('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};