Built motion from commit a61a4a20.|2.5.46
[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 _0x1e43=['define','CannedAnswer','utf8mb4','lodash','util','moment','bluebird','rimraf','../../config/environment','./cannedAnswer.attributes','exports'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x1e43,0x1d1));var _0x31e4=function(_0x533437,_0x4d59d1){_0x533437=_0x533437-0x0;var _0x53f4ce=_0x1e43[_0x533437];return _0x53f4ce;};'use strict';var _=require(_0x31e4('0x0'));var util=require(_0x31e4('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x31e4('0x2'));var BPromise=require(_0x31e4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x31e4('0x4'));var config=require(_0x31e4('0x5'));var attributes=require(_0x31e4('0x6'));module[_0x31e4('0x7')]=function(_0x274a52,_0x6e71fe){return _0x274a52[_0x31e4('0x8')](_0x31e4('0x9'),attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x31e4('0xa'),'collate':'utf8mb4_unicode_ci'});};