Built motion from commit d5e4af8c.|2.6.23
[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 _0x8b30=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','exports','define','Trunk','tools_trunks'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x8b30,0x108));var _0x08b3=function(_0x369151,_0x179f72){_0x369151=_0x369151-0x0;var _0x4292d5=_0x8b30[_0x369151];return _0x4292d5;};'use strict';var _=require(_0x08b3('0x0'));var util=require(_0x08b3('0x1'));var logger=require(_0x08b3('0x2'))(_0x08b3('0x3'));var moment=require(_0x08b3('0x4'));var BPromise=require(_0x08b3('0x5'));var rp=require(_0x08b3('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x08b3('0x7'));var attributes=require('./trunk.attributes');module[_0x08b3('0x8')]=function(_0x3824b8,_0x436280){return _0x3824b8[_0x08b3('0x9')](_0x08b3('0xa'),attributes,{'tableName':_0x08b3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};