Built motion from commit (unavailable).|2.4.21
[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 _0x2f56=['attachments','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x55da73,_0x2533dc){var _0x18dc35=function(_0x58aa75){while(--_0x58aa75){_0x55da73['push'](_0x55da73['shift']());}};_0x18dc35(++_0x2533dc);}(_0x2f56,0xb5));var _0x62f5=function(_0x49895f,_0x3097d5){_0x49895f=_0x49895f-0x0;var _0x1ba801=_0x2f56[_0x49895f];return _0x1ba801;};'use strict';var _=require(_0x62f5('0x0'));var util=require(_0x62f5('0x1'));var logger=require(_0x62f5('0x2'))(_0x62f5('0x3'));var moment=require('moment');var BPromise=require(_0x62f5('0x4'));var rp=require(_0x62f5('0x5'));var fs=require('fs');var path=require(_0x62f5('0x6'));var rimraf=require(_0x62f5('0x7'));var config=require(_0x62f5('0x8'));var attributes=require('./attachment.attributes');module[_0x62f5('0x9')]=function(_0x3c6ce8,_0x15fc7e){return _0x3c6ce8[_0x62f5('0xa')]('Attachment',attributes,{'tableName':_0x62f5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};