1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x2c31=['util','api','moment','request-promise','./trunk.attributes','exports','define','Trunk','tools_trunks','lodash'];(function(_0x5f519b,_0x5b606f){var _0x2461e2=function(_0x510241){while(--_0x510241){_0x5f519b['push'](_0x5f519b['shift']());}};_0x2461e2(++_0x5b606f);}(_0x2c31,0x13f));var _0x12c3=function(_0xaa4af4,_0x30bb71){_0xaa4af4=_0xaa4af4-0x0;var _0x54abc7=_0x2c31[_0xaa4af4];return _0x54abc7;};'use strict';var _=require(_0x12c3('0x0'));var util=require(_0x12c3('0x1'));var logger=require('../../config/logger')(_0x12c3('0x2'));var moment=require(_0x12c3('0x3'));var BPromise=require('bluebird');var rp=require(_0x12c3('0x4'));var attributes=require(_0x12c3('0x5'));module[_0x12c3('0x6')]=function(_0x3a2923,_0x24050d){return _0x3a2923[_0x12c3('0x7')](_0x12c3('0x8'),attributes,{'tableName':_0x12c3('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};