d6ca88a3917c8fb2661dd0c453051c8b84b2d271
[motion2.git] / server / api / trunk / trunk.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 _0x60bc=['../../config/logger','api','moment','request-promise','path','rimraf','./trunk.attributes','Trunk','tools_trunks','lodash','util'];(function(_0x43ddb5,_0x2eafc0){var _0x540961=function(_0x22ee63){while(--_0x22ee63){_0x43ddb5['push'](_0x43ddb5['shift']());}};_0x540961(++_0x2eafc0);}(_0x60bc,0x1ed));var _0xc60b=function(_0x3a83c8,_0x489ffd){_0x3a83c8=_0x3a83c8-0x0;var _0x5c89db=_0x60bc[_0x3a83c8];return _0x5c89db;};'use strict';var _=require(_0xc60b('0x0'));var util=require(_0xc60b('0x1'));var logger=require(_0xc60b('0x2'))(_0xc60b('0x3'));var moment=require(_0xc60b('0x4'));var BPromise=require('bluebird');var rp=require(_0xc60b('0x5'));var fs=require('fs');var path=require(_0xc60b('0x6'));var rimraf=require(_0xc60b('0x7'));var config=require('../../config/environment');var attributes=require(_0xc60b('0x8'));module['exports']=function(_0x4f69d5,_0x1b798c){return _0x4f69d5['define'](_0xc60b('0x9'),attributes,{'tableName':_0xc60b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};