Built motion from commit 67e5df37.|2.0.66
[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 _0x8793=['exports','define','tools_canned_answers','lodash','api','moment','request-promise'];(function(_0x4f50c4,_0x36e7ab){var _0x4195fd=function(_0xf191af){while(--_0xf191af){_0x4f50c4['push'](_0x4f50c4['shift']());}};_0x4195fd(++_0x36e7ab);}(_0x8793,0x1e6));var _0x3879=function(_0x556927,_0x34b53f){_0x556927=_0x556927-0x0;var _0x5f1235=_0x8793[_0x556927];return _0x5f1235;};'use strict';var _=require(_0x3879('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x3879('0x1'));var moment=require(_0x3879('0x2'));var BPromise=require('bluebird');var rp=require(_0x3879('0x3'));var attributes=require('./cannedAnswer.attributes');module[_0x3879('0x4')]=function(_0x3c0907,_0x4b793b){return _0x3c0907[_0x3879('0x5')]('CannedAnswer',attributes,{'tableName':_0x3879('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};