Built motion from commit 2b9af5da.|2.6.26
[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 _0x932e=['moment','request-promise','path','rimraf','../../config/environment','./attachment.attributes','exports','define','Attachment','attachments','lodash','util','../../config/logger','api'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0x932e,0xb2));var _0xe932=function(_0x9efc3a,_0x52b1c1){_0x9efc3a=_0x9efc3a-0x0;var _0x350495=_0x932e[_0x9efc3a];return _0x350495;};'use strict';var _=require(_0xe932('0x0'));var util=require(_0xe932('0x1'));var logger=require(_0xe932('0x2'))(_0xe932('0x3'));var moment=require(_0xe932('0x4'));var BPromise=require('bluebird');var rp=require(_0xe932('0x5'));var fs=require('fs');var path=require(_0xe932('0x6'));var rimraf=require(_0xe932('0x7'));var config=require(_0xe932('0x8'));var attributes=require(_0xe932('0x9'));module[_0xe932('0xa')]=function(_0x105561,_0xefd47b){return _0x105561[_0xe932('0xb')](_0xe932('0xc'),attributes,{'tableName':_0xe932('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};