f7811ac6b9f0059d7c50544f1030c69325206022
[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 _0x0c09=['exports','define','Attachment','util','../../config/logger','request-promise','path','rimraf','../../config/environment','./attachment.attributes'];(function(_0x570717,_0x2f9220){var _0x2667b5=function(_0x245a8f){while(--_0x245a8f){_0x570717['push'](_0x570717['shift']());}};_0x2667b5(++_0x2f9220);}(_0x0c09,0xcb));var _0x90c0=function(_0x54d213,_0xa0f779){_0x54d213=_0x54d213-0x0;var _0x1f18c6=_0x0c09[_0x54d213];return _0x1f18c6;};'use strict';var _=require('lodash');var util=require(_0x90c0('0x0'));var logger=require(_0x90c0('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x90c0('0x2'));var fs=require('fs');var path=require(_0x90c0('0x3'));var rimraf=require(_0x90c0('0x4'));var config=require(_0x90c0('0x5'));var attributes=require(_0x90c0('0x6'));module[_0x90c0('0x7')]=function(_0x837aed,_0x8faac2){return _0x837aed[_0x90c0('0x8')](_0x90c0('0x9'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};