Built motion from commit 511216ff.|2.6.34
[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 _0x7df4=['lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','Trunk'];(function(_0x41c2f2,_0x22d465){var _0x59cf5f=function(_0x457ec7){while(--_0x457ec7){_0x41c2f2['push'](_0x41c2f2['shift']());}};_0x59cf5f(++_0x22d465);}(_0x7df4,0x90));var _0x47df=function(_0x1c7e82,_0x103104){_0x1c7e82=_0x1c7e82-0x0;var _0x5bec25=_0x7df4[_0x1c7e82];return _0x5bec25;};'use strict';var _=require(_0x47df('0x0'));var util=require(_0x47df('0x1'));var logger=require(_0x47df('0x2'))(_0x47df('0x3'));var moment=require(_0x47df('0x4'));var BPromise=require(_0x47df('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x47df('0x6'));var rimraf=require(_0x47df('0x7'));var config=require(_0x47df('0x8'));var attributes=require('./trunk.attributes');module[_0x47df('0x9')]=function(_0xe3ebd8,_0x55a4ec){return _0xe3ebd8[_0x47df('0xa')](_0x47df('0xb'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};