Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0x97a8=['../../config/environment','./cannedAnswer.attributes','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x56342b,_0x20e8cf){var _0x2680d5=function(_0x26a2da){while(--_0x26a2da){_0x56342b['push'](_0x56342b['shift']());}};_0x2680d5(++_0x20e8cf);}(_0x97a8,0xe3));var _0x897a=function(_0x33ac53,_0x2a4ab5){_0x33ac53=_0x33ac53-0x0;var _0x2811b6=_0x97a8[_0x33ac53];return _0x2811b6;};'use strict';var _=require('lodash');var util=require(_0x897a('0x0'));var logger=require(_0x897a('0x1'))(_0x897a('0x2'));var moment=require(_0x897a('0x3'));var BPromise=require(_0x897a('0x4'));var rp=require(_0x897a('0x5'));var fs=require('fs');var path=require(_0x897a('0x6'));var rimraf=require('rimraf');var config=require(_0x897a('0x7'));var attributes=require(_0x897a('0x8'));module['exports']=function(_0x5adcfd,_0x55e647){return _0x5adcfd['define'](_0x897a('0x9'),attributes,{'tableName':_0x897a('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x897a('0xb'),'collate':_0x897a('0xc')});};