Built motion from commit (unavailable).|2.5.22
[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 _0xffc0=['request-promise','path','rimraf','../../config/environment','exports','attachments','util','api','moment','bluebird'];(function(_0x11505c,_0x3be5b7){var _0x389e04=function(_0x3e4d3a){while(--_0x3e4d3a){_0x11505c['push'](_0x11505c['shift']());}};_0x389e04(++_0x3be5b7);}(_0xffc0,0x1a0));var _0x0ffc=function(_0x5c60d8,_0x2cf3cd){_0x5c60d8=_0x5c60d8-0x0;var _0x98199=_0xffc0[_0x5c60d8];return _0x98199;};'use strict';var _=require('lodash');var util=require(_0x0ffc('0x0'));var logger=require('../../config/logger')(_0x0ffc('0x1'));var moment=require(_0x0ffc('0x2'));var BPromise=require(_0x0ffc('0x3'));var rp=require(_0x0ffc('0x4'));var fs=require('fs');var path=require(_0x0ffc('0x5'));var rimraf=require(_0x0ffc('0x6'));var config=require(_0x0ffc('0x7'));var attributes=require('./attachment.attributes');module[_0x0ffc('0x8')]=function(_0x23d3e0,_0x426ce2){return _0x23d3e0['define']('Attachment',attributes,{'tableName':_0x0ffc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};