Built motion from commit ce9a7520.|2.5.39
[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 _0x7fdf=['define','Attachment','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x10b2d5,_0x5a7743){var _0x14b8d1=function(_0x3b888c){while(--_0x3b888c){_0x10b2d5['push'](_0x10b2d5['shift']());}};_0x14b8d1(++_0x5a7743);}(_0x7fdf,0xde));var _0xf7fd=function(_0x36940e,_0x11f338){_0x36940e=_0x36940e-0x0;var _0x3283f2=_0x7fdf[_0x36940e];return _0x3283f2;};'use strict';var _=require(_0xf7fd('0x0'));var util=require(_0xf7fd('0x1'));var logger=require(_0xf7fd('0x2'))('api');var moment=require('moment');var BPromise=require(_0xf7fd('0x3'));var rp=require(_0xf7fd('0x4'));var fs=require('fs');var path=require(_0xf7fd('0x5'));var rimraf=require(_0xf7fd('0x6'));var config=require(_0xf7fd('0x7'));var attributes=require('./attachment.attributes');module['exports']=function(_0x5a8435,_0x524990){return _0x5a8435[_0xf7fd('0x8')](_0xf7fd('0x9'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};