7ac33830b86406ca67ae82ebc8810107425813f5
[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 _0xaedc=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./trunk.attributes','define','Trunk','tools_trunks','api'];(function(_0x105c0b,_0x310735){var _0x5c7b2b=function(_0x1effc0){while(--_0x1effc0){_0x105c0b['push'](_0x105c0b['shift']());}};_0x5c7b2b(++_0x310735);}(_0xaedc,0x154));var _0xcaed=function(_0x4cc423,_0x42b130){_0x4cc423=_0x4cc423-0x0;var _0xe1b81f=_0xaedc[_0x4cc423];return _0xe1b81f;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xcaed('0x0'));var moment=require(_0xcaed('0x1'));var BPromise=require(_0xcaed('0x2'));var rp=require(_0xcaed('0x3'));var fs=require('fs');var path=require(_0xcaed('0x4'));var rimraf=require(_0xcaed('0x5'));var config=require(_0xcaed('0x6'));var attributes=require(_0xcaed('0x7'));module['exports']=function(_0xb8b517,_0x8deb59){return _0xb8b517[_0xcaed('0x8')](_0xcaed('0x9'),attributes,{'tableName':_0xcaed('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};