bfe3998c577541604c9d380c75551367055da8d2
[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 _0xce1f=['Attachment','attachments','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x181c12,_0x42241d){var _0x219ffd=function(_0x2808aa){while(--_0x2808aa){_0x181c12['push'](_0x181c12['shift']());}};_0x219ffd(++_0x42241d);}(_0xce1f,0x1ba));var _0xfce1=function(_0x4e06ad,_0x1d806b){_0x4e06ad=_0x4e06ad-0x0;var _0x1d715e=_0xce1f[_0x4e06ad];return _0x1d715e;};'use strict';var _=require('lodash');var util=require(_0xfce1('0x0'));var logger=require(_0xfce1('0x1'))('api');var moment=require(_0xfce1('0x2'));var BPromise=require('bluebird');var rp=require(_0xfce1('0x3'));var fs=require('fs');var path=require(_0xfce1('0x4'));var rimraf=require(_0xfce1('0x5'));var config=require(_0xfce1('0x6'));var attributes=require('./attachment.attributes');module[_0xfce1('0x7')]=function(_0x1925b3,_0x532e95){return _0x1925b3[_0xfce1('0x8')](_0xfce1('0x9'),attributes,{'tableName':_0xfce1('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};