aae266df2525d8bed9c677357655af551b307de0
[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 _0x5917=['../../config/logger','api','bluebird','request-promise','rimraf','./trunk.attributes','exports','define','Trunk','tools_trunks','lodash','util'];(function(_0x4e2fd4,_0x1ffc3f){var _0x5b5c60=function(_0x13a960){while(--_0x13a960){_0x4e2fd4['push'](_0x4e2fd4['shift']());}};_0x5b5c60(++_0x1ffc3f);}(_0x5917,0x82));var _0x7591=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x5917[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require(_0x7591('0x0'));var util=require(_0x7591('0x1'));var logger=require(_0x7591('0x2'))(_0x7591('0x3'));var moment=require('moment');var BPromise=require(_0x7591('0x4'));var rp=require(_0x7591('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7591('0x6'));var config=require('../../config/environment');var attributes=require(_0x7591('0x7'));module[_0x7591('0x8')]=function(_0x39d8d6,_0x45fe62){return _0x39d8d6[_0x7591('0x9')](_0x7591('0xa'),attributes,{'tableName':_0x7591('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};