2cb6f039188868a4ee764b64291247a8c75b9f8b
[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 _0x7ebf=['define','Attachment','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./attachment.attributes','exports'];(function(_0x5e0eca,_0x4d6326){var _0x165ffe=function(_0x25c5b1){while(--_0x25c5b1){_0x5e0eca['push'](_0x5e0eca['shift']());}};_0x165ffe(++_0x4d6326);}(_0x7ebf,0xa7));var _0xf7eb=function(_0x12f5f7,_0xa58b52){_0x12f5f7=_0x12f5f7-0x0;var _0x345c1b=_0x7ebf[_0x12f5f7];return _0x345c1b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xf7eb('0x0'))(_0xf7eb('0x1'));var moment=require(_0xf7eb('0x2'));var BPromise=require(_0xf7eb('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf7eb('0x4'));var rimraf=require(_0xf7eb('0x5'));var config=require(_0xf7eb('0x6'));var attributes=require(_0xf7eb('0x7'));module[_0xf7eb('0x8')]=function(_0x55c4b5,_0x661a41){return _0x55c4b5[_0xf7eb('0x9')](_0xf7eb('0xa'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};