b2d26e9dc0cae53c34df7d07a0f57f8b894af355
[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 _0x2af8=['exports','define','Attachment','attachments','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./attachment.attributes'];(function(_0x59a29b,_0x39edee){var _0x12ee26=function(_0x48ffac){while(--_0x48ffac){_0x59a29b['push'](_0x59a29b['shift']());}};_0x12ee26(++_0x39edee);}(_0x2af8,0x1a8));var _0x82af=function(_0x1d2ef2,_0x1a7599){_0x1d2ef2=_0x1d2ef2-0x0;var _0x345183=_0x2af8[_0x1d2ef2];return _0x345183;};'use strict';var _=require(_0x82af('0x0'));var util=require(_0x82af('0x1'));var logger=require(_0x82af('0x2'))(_0x82af('0x3'));var moment=require(_0x82af('0x4'));var BPromise=require('bluebird');var rp=require(_0x82af('0x5'));var fs=require('fs');var path=require(_0x82af('0x6'));var rimraf=require(_0x82af('0x7'));var config=require(_0x82af('0x8'));var attributes=require(_0x82af('0x9'));module[_0x82af('0xa')]=function(_0x4b736e,_0x23e91e){return _0x4b736e[_0x82af('0xb')](_0x82af('0xc'),attributes,{'tableName':_0x82af('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};