0a30a288c0f7d52adff08b5798dc19b103a71bfa
[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 _0x95ba=['utf8mb4','utf8mb4_unicode_ci','lodash','api','bluebird','rimraf','../../config/environment','exports','define','CannedAnswer','tools_canned_answers'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x95ba,0x70));var _0xa95b=function(_0x51c62d,_0x450753){_0x51c62d=_0x51c62d-0x0;var _0x4523ae=_0x95ba[_0x51c62d];return _0x4523ae;};'use strict';var _=require(_0xa95b('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xa95b('0x1'));var moment=require('moment');var BPromise=require(_0xa95b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xa95b('0x3'));var config=require(_0xa95b('0x4'));var attributes=require('./cannedAnswer.attributes');module[_0xa95b('0x5')]=function(_0x1f2e91,_0x2db0d2){return _0x1f2e91[_0xa95b('0x6')](_0xa95b('0x7'),attributes,{'tableName':_0xa95b('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xa95b('0x9'),'collate':_0xa95b('0xa')});};