Built motion from commit 092f8824.|2.5.49
[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 _0xf098=['util','../../config/logger','api','moment','bluebird','path','rimraf','./trunk.attributes','exports','Trunk','tools_trunks'];(function(_0x1cd674,_0x8d3638){var _0x27928f=function(_0x5e3c70){while(--_0x5e3c70){_0x1cd674['push'](_0x1cd674['shift']());}};_0x27928f(++_0x8d3638);}(_0xf098,0x8f));var _0x8f09=function(_0x8fa74f,_0x520489){_0x8fa74f=_0x8fa74f-0x0;var _0x522ffc=_0xf098[_0x8fa74f];return _0x522ffc;};'use strict';var _=require('lodash');var util=require(_0x8f09('0x0'));var logger=require(_0x8f09('0x1'))(_0x8f09('0x2'));var moment=require(_0x8f09('0x3'));var BPromise=require(_0x8f09('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8f09('0x5'));var rimraf=require(_0x8f09('0x6'));var config=require('../../config/environment');var attributes=require(_0x8f09('0x7'));module[_0x8f09('0x8')]=function(_0x57ecab,_0x55c68d){return _0x57ecab['define'](_0x8f09('0x9'),attributes,{'tableName':_0x8f09('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};