Built motion from commit 9efc8423.|2.6.31
[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 _0x08e8=['../../config/environment','./cannedAnswer.attributes','exports','CannedAnswer','utf8mb4','utf8mb4_unicode_ci','util','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x2467ae,_0x322985){var _0x31d4e1=function(_0x35624e){while(--_0x35624e){_0x2467ae['push'](_0x2467ae['shift']());}};_0x31d4e1(++_0x322985);}(_0x08e8,0xc9));var _0x808e=function(_0x36ebb3,_0x56b4c2){_0x36ebb3=_0x36ebb3-0x0;var _0xf57008=_0x08e8[_0x36ebb3];return _0xf57008;};'use strict';var _=require('lodash');var util=require(_0x808e('0x0'));var logger=require('../../config/logger')(_0x808e('0x1'));var moment=require(_0x808e('0x2'));var BPromise=require(_0x808e('0x3'));var rp=require(_0x808e('0x4'));var fs=require('fs');var path=require(_0x808e('0x5'));var rimraf=require(_0x808e('0x6'));var config=require(_0x808e('0x7'));var attributes=require(_0x808e('0x8'));module[_0x808e('0x9')]=function(_0xb4cdbe,_0x5c4278){return _0xb4cdbe['define'](_0x808e('0xa'),attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x808e('0xb'),'collate':_0x808e('0xc')});};